#![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 Request {
value: ::std::option::Option<Request_oneof_value>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for Request {}
#[derive(Clone,PartialEq)]
pub enum Request_oneof_value {
echo(RequestEcho),
flush(RequestFlush),
info(RequestInfo),
set_option(RequestSetOption),
deliver_tx(RequestDeliverTx),
check_tx(RequestCheckTx),
commit(RequestCommit),
query(RequestQuery),
init_chain(RequestInitChain),
begin_block(RequestBeginBlock),
end_block(RequestEndBlock),
}
impl Request {
pub fn new() -> Request {
::std::default::Default::default()
}
pub fn default_instance() -> &'static Request {
static mut instance: ::protobuf::lazy::Lazy<Request> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Request,
};
unsafe {
instance.get(Request::new)
}
}
pub fn clear_echo(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_echo(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::echo(..)) => true,
_ => false,
}
}
pub fn set_echo(&mut self, v: RequestEcho) {
self.value = ::std::option::Option::Some(Request_oneof_value::echo(v))
}
pub fn mut_echo(&mut self) -> &mut RequestEcho {
if let ::std::option::Option::Some(Request_oneof_value::echo(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::echo(RequestEcho::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::echo(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_echo(&mut self) -> RequestEcho {
if self.has_echo() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::echo(v)) => v,
_ => panic!(),
}
} else {
RequestEcho::new()
}
}
pub fn get_echo(&self) -> &RequestEcho {
match self.value {
::std::option::Option::Some(Request_oneof_value::echo(ref v)) => v,
_ => RequestEcho::default_instance(),
}
}
pub fn clear_flush(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_flush(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::flush(..)) => true,
_ => false,
}
}
pub fn set_flush(&mut self, v: RequestFlush) {
self.value = ::std::option::Option::Some(Request_oneof_value::flush(v))
}
pub fn mut_flush(&mut self) -> &mut RequestFlush {
if let ::std::option::Option::Some(Request_oneof_value::flush(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::flush(RequestFlush::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::flush(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_flush(&mut self) -> RequestFlush {
if self.has_flush() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::flush(v)) => v,
_ => panic!(),
}
} else {
RequestFlush::new()
}
}
pub fn get_flush(&self) -> &RequestFlush {
match self.value {
::std::option::Option::Some(Request_oneof_value::flush(ref v)) => v,
_ => RequestFlush::default_instance(),
}
}
pub fn clear_info(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_info(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::info(..)) => true,
_ => false,
}
}
pub fn set_info(&mut self, v: RequestInfo) {
self.value = ::std::option::Option::Some(Request_oneof_value::info(v))
}
pub fn mut_info(&mut self) -> &mut RequestInfo {
if let ::std::option::Option::Some(Request_oneof_value::info(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::info(RequestInfo::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::info(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_info(&mut self) -> RequestInfo {
if self.has_info() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::info(v)) => v,
_ => panic!(),
}
} else {
RequestInfo::new()
}
}
pub fn get_info(&self) -> &RequestInfo {
match self.value {
::std::option::Option::Some(Request_oneof_value::info(ref v)) => v,
_ => RequestInfo::default_instance(),
}
}
pub fn clear_set_option(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_set_option(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::set_option(..)) => true,
_ => false,
}
}
pub fn set_set_option(&mut self, v: RequestSetOption) {
self.value = ::std::option::Option::Some(Request_oneof_value::set_option(v))
}
pub fn mut_set_option(&mut self) -> &mut RequestSetOption {
if let ::std::option::Option::Some(Request_oneof_value::set_option(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::set_option(RequestSetOption::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::set_option(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_set_option(&mut self) -> RequestSetOption {
if self.has_set_option() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::set_option(v)) => v,
_ => panic!(),
}
} else {
RequestSetOption::new()
}
}
pub fn get_set_option(&self) -> &RequestSetOption {
match self.value {
::std::option::Option::Some(Request_oneof_value::set_option(ref v)) => v,
_ => RequestSetOption::default_instance(),
}
}
pub fn clear_deliver_tx(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_deliver_tx(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::deliver_tx(..)) => true,
_ => false,
}
}
pub fn set_deliver_tx(&mut self, v: RequestDeliverTx) {
self.value = ::std::option::Option::Some(Request_oneof_value::deliver_tx(v))
}
pub fn mut_deliver_tx(&mut self) -> &mut RequestDeliverTx {
if let ::std::option::Option::Some(Request_oneof_value::deliver_tx(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::deliver_tx(RequestDeliverTx::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::deliver_tx(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_deliver_tx(&mut self) -> RequestDeliverTx {
if self.has_deliver_tx() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::deliver_tx(v)) => v,
_ => panic!(),
}
} else {
RequestDeliverTx::new()
}
}
pub fn get_deliver_tx(&self) -> &RequestDeliverTx {
match self.value {
::std::option::Option::Some(Request_oneof_value::deliver_tx(ref v)) => v,
_ => RequestDeliverTx::default_instance(),
}
}
pub fn clear_check_tx(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_check_tx(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::check_tx(..)) => true,
_ => false,
}
}
pub fn set_check_tx(&mut self, v: RequestCheckTx) {
self.value = ::std::option::Option::Some(Request_oneof_value::check_tx(v))
}
pub fn mut_check_tx(&mut self) -> &mut RequestCheckTx {
if let ::std::option::Option::Some(Request_oneof_value::check_tx(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::check_tx(RequestCheckTx::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::check_tx(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_check_tx(&mut self) -> RequestCheckTx {
if self.has_check_tx() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::check_tx(v)) => v,
_ => panic!(),
}
} else {
RequestCheckTx::new()
}
}
pub fn get_check_tx(&self) -> &RequestCheckTx {
match self.value {
::std::option::Option::Some(Request_oneof_value::check_tx(ref v)) => v,
_ => RequestCheckTx::default_instance(),
}
}
pub fn clear_commit(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_commit(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::commit(..)) => true,
_ => false,
}
}
pub fn set_commit(&mut self, v: RequestCommit) {
self.value = ::std::option::Option::Some(Request_oneof_value::commit(v))
}
pub fn mut_commit(&mut self) -> &mut RequestCommit {
if let ::std::option::Option::Some(Request_oneof_value::commit(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::commit(RequestCommit::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::commit(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_commit(&mut self) -> RequestCommit {
if self.has_commit() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::commit(v)) => v,
_ => panic!(),
}
} else {
RequestCommit::new()
}
}
pub fn get_commit(&self) -> &RequestCommit {
match self.value {
::std::option::Option::Some(Request_oneof_value::commit(ref v)) => v,
_ => RequestCommit::default_instance(),
}
}
pub fn clear_query(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_query(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::query(..)) => true,
_ => false,
}
}
pub fn set_query(&mut self, v: RequestQuery) {
self.value = ::std::option::Option::Some(Request_oneof_value::query(v))
}
pub fn mut_query(&mut self) -> &mut RequestQuery {
if let ::std::option::Option::Some(Request_oneof_value::query(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::query(RequestQuery::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::query(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_query(&mut self) -> RequestQuery {
if self.has_query() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::query(v)) => v,
_ => panic!(),
}
} else {
RequestQuery::new()
}
}
pub fn get_query(&self) -> &RequestQuery {
match self.value {
::std::option::Option::Some(Request_oneof_value::query(ref v)) => v,
_ => RequestQuery::default_instance(),
}
}
pub fn clear_init_chain(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_init_chain(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::init_chain(..)) => true,
_ => false,
}
}
pub fn set_init_chain(&mut self, v: RequestInitChain) {
self.value = ::std::option::Option::Some(Request_oneof_value::init_chain(v))
}
pub fn mut_init_chain(&mut self) -> &mut RequestInitChain {
if let ::std::option::Option::Some(Request_oneof_value::init_chain(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::init_chain(RequestInitChain::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::init_chain(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_init_chain(&mut self) -> RequestInitChain {
if self.has_init_chain() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::init_chain(v)) => v,
_ => panic!(),
}
} else {
RequestInitChain::new()
}
}
pub fn get_init_chain(&self) -> &RequestInitChain {
match self.value {
::std::option::Option::Some(Request_oneof_value::init_chain(ref v)) => v,
_ => RequestInitChain::default_instance(),
}
}
pub fn clear_begin_block(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_begin_block(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::begin_block(..)) => true,
_ => false,
}
}
pub fn set_begin_block(&mut self, v: RequestBeginBlock) {
self.value = ::std::option::Option::Some(Request_oneof_value::begin_block(v))
}
pub fn mut_begin_block(&mut self) -> &mut RequestBeginBlock {
if let ::std::option::Option::Some(Request_oneof_value::begin_block(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::begin_block(RequestBeginBlock::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::begin_block(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_begin_block(&mut self) -> RequestBeginBlock {
if self.has_begin_block() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::begin_block(v)) => v,
_ => panic!(),
}
} else {
RequestBeginBlock::new()
}
}
pub fn get_begin_block(&self) -> &RequestBeginBlock {
match self.value {
::std::option::Option::Some(Request_oneof_value::begin_block(ref v)) => v,
_ => RequestBeginBlock::default_instance(),
}
}
pub fn clear_end_block(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_end_block(&self) -> bool {
match self.value {
::std::option::Option::Some(Request_oneof_value::end_block(..)) => true,
_ => false,
}
}
pub fn set_end_block(&mut self, v: RequestEndBlock) {
self.value = ::std::option::Option::Some(Request_oneof_value::end_block(v))
}
pub fn mut_end_block(&mut self) -> &mut RequestEndBlock {
if let ::std::option::Option::Some(Request_oneof_value::end_block(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Request_oneof_value::end_block(RequestEndBlock::new()));
}
match self.value {
::std::option::Option::Some(Request_oneof_value::end_block(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_end_block(&mut self) -> RequestEndBlock {
if self.has_end_block() {
match self.value.take() {
::std::option::Option::Some(Request_oneof_value::end_block(v)) => v,
_ => panic!(),
}
} else {
RequestEndBlock::new()
}
}
pub fn get_end_block(&self) -> &RequestEndBlock {
match self.value {
::std::option::Option::Some(Request_oneof_value::end_block(ref v)) => v,
_ => RequestEndBlock::default_instance(),
}
}
}
impl ::protobuf::Message for Request {
fn is_initialized(&self) -> bool {
if let Some(Request_oneof_value::echo(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::flush(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::info(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::set_option(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::deliver_tx(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::check_tx(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::commit(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::query(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::init_chain(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::begin_block(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Request_oneof_value::end_block(ref v)) = self.value {
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 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::echo(is.read_message()?));
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::flush(is.read_message()?));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::info(is.read_message()?));
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::set_option(is.read_message()?));
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::deliver_tx(is.read_message()?));
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::check_tx(is.read_message()?));
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::commit(is.read_message()?));
},
8 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::query(is.read_message()?));
},
9 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::init_chain(is.read_message()?));
},
10 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::begin_block(is.read_message()?));
},
11 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Request_oneof_value::end_block(is.read_message()?));
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let ::std::option::Option::Some(ref v) = self.value {
match v {
&Request_oneof_value::echo(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::flush(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::info(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::set_option(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::deliver_tx(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::check_tx(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::commit(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::query(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::init_chain(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::begin_block(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Request_oneof_value::end_block(ref v) => {
let len = v.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 ::std::option::Option::Some(ref v) = self.value {
match v {
&Request_oneof_value::echo(ref v) => {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::flush(ref v) => {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::info(ref v) => {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::set_option(ref v) => {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::deliver_tx(ref v) => {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::check_tx(ref v) => {
os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::commit(ref v) => {
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::query(ref v) => {
os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::init_chain(ref v) => {
os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::begin_block(ref v) => {
os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Request_oneof_value::end_block(ref v) => {
os.write_tag(11, ::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 Request {
fn new() -> Request {
Request::new()
}
fn descriptor_static(_: ::std::option::Option<Request>) -> &'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_message_accessor::<_, RequestEcho>(
"echo",
Request::has_echo,
Request::get_echo,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestFlush>(
"flush",
Request::has_flush,
Request::get_flush,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestInfo>(
"info",
Request::has_info,
Request::get_info,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestSetOption>(
"set_option",
Request::has_set_option,
Request::get_set_option,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestDeliverTx>(
"deliver_tx",
Request::has_deliver_tx,
Request::get_deliver_tx,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestCheckTx>(
"check_tx",
Request::has_check_tx,
Request::get_check_tx,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestCommit>(
"commit",
Request::has_commit,
Request::get_commit,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestQuery>(
"query",
Request::has_query,
Request::get_query,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestInitChain>(
"init_chain",
Request::has_init_chain,
Request::get_init_chain,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestBeginBlock>(
"begin_block",
Request::has_begin_block,
Request::get_begin_block,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RequestEndBlock>(
"end_block",
Request::has_end_block,
Request::get_end_block,
));
::protobuf::reflect::MessageDescriptor::new::<Request>(
"Request",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for Request {
fn clear(&mut self) {
self.clear_echo();
self.clear_flush();
self.clear_info();
self.clear_set_option();
self.clear_deliver_tx();
self.clear_check_tx();
self.clear_commit();
self.clear_query();
self.clear_init_chain();
self.clear_begin_block();
self.clear_end_block();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Request {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Request {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestEcho {
pub message: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestEcho {}
impl RequestEcho {
pub fn new() -> RequestEcho {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestEcho {
static mut instance: ::protobuf::lazy::Lazy<RequestEcho> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestEcho,
};
unsafe {
instance.get(RequestEcho::new)
}
}
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn set_message(&mut self, v: ::std::string::String) {
self.message = v;
}
pub fn mut_message(&mut self) -> &mut ::std::string::String {
&mut self.message
}
pub fn take_message(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.message, ::std::string::String::new())
}
pub fn get_message(&self) -> &str {
&self.message
}
fn get_message_for_reflect(&self) -> &::std::string::String {
&self.message
}
fn mut_message_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.message
}
}
impl ::protobuf::Message for RequestEcho {
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_proto3_string_into(wire_type, is, &mut self.message)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.message.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.message);
}
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 !self.message.is_empty() {
os.write_string(1, &self.message)?;
}
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 RequestEcho {
fn new() -> RequestEcho {
RequestEcho::new()
}
fn descriptor_static(_: ::std::option::Option<RequestEcho>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"message",
RequestEcho::get_message_for_reflect,
RequestEcho::mut_message_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestEcho>(
"RequestEcho",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestEcho {
fn clear(&mut self) {
self.clear_message();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestEcho {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestEcho {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestFlush {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestFlush {}
impl RequestFlush {
pub fn new() -> RequestFlush {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestFlush {
static mut instance: ::protobuf::lazy::Lazy<RequestFlush> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestFlush,
};
unsafe {
instance.get(RequestFlush::new)
}
}
}
impl ::protobuf::Message for RequestFlush {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 RequestFlush {
fn new() -> RequestFlush {
RequestFlush::new()
}
fn descriptor_static(_: ::std::option::Option<RequestFlush>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<RequestFlush>(
"RequestFlush",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestFlush {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestFlush {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestFlush {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestInfo {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestInfo {}
impl RequestInfo {
pub fn new() -> RequestInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestInfo {
static mut instance: ::protobuf::lazy::Lazy<RequestInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestInfo,
};
unsafe {
instance.get(RequestInfo::new)
}
}
}
impl ::protobuf::Message for RequestInfo {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 RequestInfo {
fn new() -> RequestInfo {
RequestInfo::new()
}
fn descriptor_static(_: ::std::option::Option<RequestInfo>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<RequestInfo>(
"RequestInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestInfo {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestInfo {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestSetOption {
pub key: ::std::string::String,
pub value: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestSetOption {}
impl RequestSetOption {
pub fn new() -> RequestSetOption {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestSetOption {
static mut instance: ::protobuf::lazy::Lazy<RequestSetOption> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestSetOption,
};
unsafe {
instance.get(RequestSetOption::new)
}
}
pub fn clear_key(&mut self) {
self.key.clear();
}
pub fn set_key(&mut self, v: ::std::string::String) {
self.key = v;
}
pub fn mut_key(&mut self) -> &mut ::std::string::String {
&mut self.key
}
pub fn take_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.key, ::std::string::String::new())
}
pub fn get_key(&self) -> &str {
&self.key
}
fn get_key_for_reflect(&self) -> &::std::string::String {
&self.key
}
fn mut_key_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.key
}
pub fn clear_value(&mut self) {
self.value.clear();
}
pub fn set_value(&mut self, v: ::std::string::String) {
self.value = v;
}
pub fn mut_value(&mut self) -> &mut ::std::string::String {
&mut self.value
}
pub fn take_value(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.value, ::std::string::String::new())
}
pub fn get_value(&self) -> &str {
&self.value
}
fn get_value_for_reflect(&self) -> &::std::string::String {
&self.value
}
fn mut_value_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.value
}
}
impl ::protobuf::Message for RequestSetOption {
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_proto3_string_into(wire_type, is, &mut self.key)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_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(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.key.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.key);
}
if !self.value.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.value);
}
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 !self.key.is_empty() {
os.write_string(1, &self.key)?;
}
if !self.value.is_empty() {
os.write_string(2, &self.value)?;
}
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 RequestSetOption {
fn new() -> RequestSetOption {
RequestSetOption::new()
}
fn descriptor_static(_: ::std::option::Option<RequestSetOption>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"key",
RequestSetOption::get_key_for_reflect,
RequestSetOption::mut_key_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"value",
RequestSetOption::get_value_for_reflect,
RequestSetOption::mut_value_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestSetOption>(
"RequestSetOption",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestSetOption {
fn clear(&mut self) {
self.clear_key();
self.clear_value();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestSetOption {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestSetOption {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestDeliverTx {
pub tx: ::std::vec::Vec<u8>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestDeliverTx {}
impl RequestDeliverTx {
pub fn new() -> RequestDeliverTx {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestDeliverTx {
static mut instance: ::protobuf::lazy::Lazy<RequestDeliverTx> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestDeliverTx,
};
unsafe {
instance.get(RequestDeliverTx::new)
}
}
pub fn clear_tx(&mut self) {
self.tx.clear();
}
pub fn set_tx(&mut self, v: ::std::vec::Vec<u8>) {
self.tx = v;
}
pub fn mut_tx(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.tx
}
pub fn take_tx(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.tx, ::std::vec::Vec::new())
}
pub fn get_tx(&self) -> &[u8] {
&self.tx
}
fn get_tx_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.tx
}
fn mut_tx_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.tx
}
}
impl ::protobuf::Message for RequestDeliverTx {
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_proto3_bytes_into(wire_type, is, &mut self.tx)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.tx.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.tx);
}
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 !self.tx.is_empty() {
os.write_bytes(1, &self.tx)?;
}
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 RequestDeliverTx {
fn new() -> RequestDeliverTx {
RequestDeliverTx::new()
}
fn descriptor_static(_: ::std::option::Option<RequestDeliverTx>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"tx",
RequestDeliverTx::get_tx_for_reflect,
RequestDeliverTx::mut_tx_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestDeliverTx>(
"RequestDeliverTx",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestDeliverTx {
fn clear(&mut self) {
self.clear_tx();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestDeliverTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestDeliverTx {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestCheckTx {
pub tx: ::std::vec::Vec<u8>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestCheckTx {}
impl RequestCheckTx {
pub fn new() -> RequestCheckTx {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestCheckTx {
static mut instance: ::protobuf::lazy::Lazy<RequestCheckTx> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestCheckTx,
};
unsafe {
instance.get(RequestCheckTx::new)
}
}
pub fn clear_tx(&mut self) {
self.tx.clear();
}
pub fn set_tx(&mut self, v: ::std::vec::Vec<u8>) {
self.tx = v;
}
pub fn mut_tx(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.tx
}
pub fn take_tx(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.tx, ::std::vec::Vec::new())
}
pub fn get_tx(&self) -> &[u8] {
&self.tx
}
fn get_tx_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.tx
}
fn mut_tx_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.tx
}
}
impl ::protobuf::Message for RequestCheckTx {
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_proto3_bytes_into(wire_type, is, &mut self.tx)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.tx.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.tx);
}
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 !self.tx.is_empty() {
os.write_bytes(1, &self.tx)?;
}
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 RequestCheckTx {
fn new() -> RequestCheckTx {
RequestCheckTx::new()
}
fn descriptor_static(_: ::std::option::Option<RequestCheckTx>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"tx",
RequestCheckTx::get_tx_for_reflect,
RequestCheckTx::mut_tx_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestCheckTx>(
"RequestCheckTx",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestCheckTx {
fn clear(&mut self) {
self.clear_tx();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestCheckTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestCheckTx {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestQuery {
pub data: ::std::vec::Vec<u8>,
pub path: ::std::string::String,
pub height: u64,
pub prove: bool,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestQuery {}
impl RequestQuery {
pub fn new() -> RequestQuery {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestQuery {
static mut instance: ::protobuf::lazy::Lazy<RequestQuery> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestQuery,
};
unsafe {
instance.get(RequestQuery::new)
}
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
}
pub fn get_data(&self) -> &[u8] {
&self.data
}
fn get_data_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.data
}
fn mut_data_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn clear_path(&mut self) {
self.path.clear();
}
pub fn set_path(&mut self, v: ::std::string::String) {
self.path = v;
}
pub fn mut_path(&mut self) -> &mut ::std::string::String {
&mut self.path
}
pub fn take_path(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.path, ::std::string::String::new())
}
pub fn get_path(&self) -> &str {
&self.path
}
fn get_path_for_reflect(&self) -> &::std::string::String {
&self.path
}
fn mut_path_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.path
}
pub fn clear_height(&mut self) {
self.height = 0;
}
pub fn set_height(&mut self, v: u64) {
self.height = v;
}
pub fn get_height(&self) -> u64 {
self.height
}
fn get_height_for_reflect(&self) -> &u64 {
&self.height
}
fn mut_height_for_reflect(&mut self) -> &mut u64 {
&mut self.height
}
pub fn clear_prove(&mut self) {
self.prove = false;
}
pub fn set_prove(&mut self, v: bool) {
self.prove = v;
}
pub fn get_prove(&self) -> bool {
self.prove
}
fn get_prove_for_reflect(&self) -> &bool {
&self.prove
}
fn mut_prove_for_reflect(&mut self) -> &mut bool {
&mut self.prove
}
}
impl ::protobuf::Message for RequestQuery {
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_proto3_bytes_into(wire_type, is, &mut self.data)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.height = 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_bool()?;
self.prove = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.data.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.data);
}
if !self.path.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.path);
}
if self.height != 0 {
my_size += ::protobuf::rt::value_size(3, self.height, ::protobuf::wire_format::WireTypeVarint);
}
if self.prove != false {
my_size += 2;
}
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 !self.data.is_empty() {
os.write_bytes(1, &self.data)?;
}
if !self.path.is_empty() {
os.write_string(2, &self.path)?;
}
if self.height != 0 {
os.write_uint64(3, self.height)?;
}
if self.prove != false {
os.write_bool(4, self.prove)?;
}
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 RequestQuery {
fn new() -> RequestQuery {
RequestQuery::new()
}
fn descriptor_static(_: ::std::option::Option<RequestQuery>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
RequestQuery::get_data_for_reflect,
RequestQuery::mut_data_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"path",
RequestQuery::get_path_for_reflect,
RequestQuery::mut_path_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"height",
RequestQuery::get_height_for_reflect,
RequestQuery::mut_height_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"prove",
RequestQuery::get_prove_for_reflect,
RequestQuery::mut_prove_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestQuery>(
"RequestQuery",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestQuery {
fn clear(&mut self) {
self.clear_data();
self.clear_path();
self.clear_height();
self.clear_prove();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestQuery {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestQuery {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestCommit {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestCommit {}
impl RequestCommit {
pub fn new() -> RequestCommit {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestCommit {
static mut instance: ::protobuf::lazy::Lazy<RequestCommit> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestCommit,
};
unsafe {
instance.get(RequestCommit::new)
}
}
}
impl ::protobuf::Message for RequestCommit {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 RequestCommit {
fn new() -> RequestCommit {
RequestCommit::new()
}
fn descriptor_static(_: ::std::option::Option<RequestCommit>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<RequestCommit>(
"RequestCommit",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestCommit {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestCommit {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestCommit {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestInitChain {
validators: ::protobuf::RepeatedField<Validator>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestInitChain {}
impl RequestInitChain {
pub fn new() -> RequestInitChain {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestInitChain {
static mut instance: ::protobuf::lazy::Lazy<RequestInitChain> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestInitChain,
};
unsafe {
instance.get(RequestInitChain::new)
}
}
pub fn clear_validators(&mut self) {
self.validators.clear();
}
pub fn set_validators(&mut self, v: ::protobuf::RepeatedField<Validator>) {
self.validators = v;
}
pub fn mut_validators(&mut self) -> &mut ::protobuf::RepeatedField<Validator> {
&mut self.validators
}
pub fn take_validators(&mut self) -> ::protobuf::RepeatedField<Validator> {
::std::mem::replace(&mut self.validators, ::protobuf::RepeatedField::new())
}
pub fn get_validators(&self) -> &[Validator] {
&self.validators
}
fn get_validators_for_reflect(&self) -> &::protobuf::RepeatedField<Validator> {
&self.validators
}
fn mut_validators_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<Validator> {
&mut self.validators
}
}
impl ::protobuf::Message for RequestInitChain {
fn is_initialized(&self) -> bool {
for v in &self.validators {
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.validators)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.validators {
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.validators {
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 RequestInitChain {
fn new() -> RequestInitChain {
RequestInitChain::new()
}
fn descriptor_static(_: ::std::option::Option<RequestInitChain>) -> &'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<Validator>>(
"validators",
RequestInitChain::get_validators_for_reflect,
RequestInitChain::mut_validators_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestInitChain>(
"RequestInitChain",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestInitChain {
fn clear(&mut self) {
self.clear_validators();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestInitChain {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestInitChain {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestBeginBlock {
pub hash: ::std::vec::Vec<u8>,
header: ::protobuf::SingularPtrField<Header>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestBeginBlock {}
impl RequestBeginBlock {
pub fn new() -> RequestBeginBlock {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestBeginBlock {
static mut instance: ::protobuf::lazy::Lazy<RequestBeginBlock> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestBeginBlock,
};
unsafe {
instance.get(RequestBeginBlock::new)
}
}
pub fn clear_hash(&mut self) {
self.hash.clear();
}
pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.hash = v;
}
pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.hash, ::std::vec::Vec::new())
}
pub fn get_hash(&self) -> &[u8] {
&self.hash
}
fn get_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.hash
}
fn mut_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
pub fn clear_header(&mut self) {
self.header.clear();
}
pub fn has_header(&self) -> bool {
self.header.is_some()
}
pub fn set_header(&mut self, v: Header) {
self.header = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_header(&mut self) -> &mut Header {
if self.header.is_none() {
self.header.set_default();
}
self.header.as_mut().unwrap()
}
pub fn take_header(&mut self) -> Header {
self.header.take().unwrap_or_else(|| Header::new())
}
pub fn get_header(&self) -> &Header {
self.header.as_ref().unwrap_or_else(|| Header::default_instance())
}
fn get_header_for_reflect(&self) -> &::protobuf::SingularPtrField<Header> {
&self.header
}
fn mut_header_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<Header> {
&mut self.header
}
}
impl ::protobuf::Message for RequestBeginBlock {
fn is_initialized(&self) -> bool {
for v in &self.header {
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_proto3_bytes_into(wire_type, is, &mut self.hash)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.header)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.hash);
}
if let Some(ref v) = self.header.as_ref() {
let len = v.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 !self.hash.is_empty() {
os.write_bytes(1, &self.hash)?;
}
if let Some(ref v) = self.header.as_ref() {
os.write_tag(2, ::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 RequestBeginBlock {
fn new() -> RequestBeginBlock {
RequestBeginBlock::new()
}
fn descriptor_static(_: ::std::option::Option<RequestBeginBlock>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"hash",
RequestBeginBlock::get_hash_for_reflect,
RequestBeginBlock::mut_hash_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Header>>(
"header",
RequestBeginBlock::get_header_for_reflect,
RequestBeginBlock::mut_header_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestBeginBlock>(
"RequestBeginBlock",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestBeginBlock {
fn clear(&mut self) {
self.clear_hash();
self.clear_header();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestBeginBlock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestBeginBlock {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RequestEndBlock {
pub height: u64,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for RequestEndBlock {}
impl RequestEndBlock {
pub fn new() -> RequestEndBlock {
::std::default::Default::default()
}
pub fn default_instance() -> &'static RequestEndBlock {
static mut instance: ::protobuf::lazy::Lazy<RequestEndBlock> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const RequestEndBlock,
};
unsafe {
instance.get(RequestEndBlock::new)
}
}
pub fn clear_height(&mut self) {
self.height = 0;
}
pub fn set_height(&mut self, v: u64) {
self.height = v;
}
pub fn get_height(&self) -> u64 {
self.height
}
fn get_height_for_reflect(&self) -> &u64 {
&self.height
}
fn mut_height_for_reflect(&mut self) -> &mut u64 {
&mut self.height
}
}
impl ::protobuf::Message for RequestEndBlock {
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_uint64()?;
self.height = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.height != 0 {
my_size += ::protobuf::rt::value_size(1, self.height, ::protobuf::wire_format::WireTypeVarint);
}
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 self.height != 0 {
os.write_uint64(1, self.height)?;
}
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 RequestEndBlock {
fn new() -> RequestEndBlock {
RequestEndBlock::new()
}
fn descriptor_static(_: ::std::option::Option<RequestEndBlock>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"height",
RequestEndBlock::get_height_for_reflect,
RequestEndBlock::mut_height_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<RequestEndBlock>(
"RequestEndBlock",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for RequestEndBlock {
fn clear(&mut self) {
self.clear_height();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RequestEndBlock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RequestEndBlock {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Response {
value: ::std::option::Option<Response_oneof_value>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for Response {}
#[derive(Clone,PartialEq)]
pub enum Response_oneof_value {
exception(ResponseException),
echo(ResponseEcho),
flush(ResponseFlush),
info(ResponseInfo),
set_option(ResponseSetOption),
deliver_tx(ResponseDeliverTx),
check_tx(ResponseCheckTx),
commit(ResponseCommit),
query(ResponseQuery),
init_chain(ResponseInitChain),
begin_block(ResponseBeginBlock),
end_block(ResponseEndBlock),
}
impl Response {
pub fn new() -> Response {
::std::default::Default::default()
}
pub fn default_instance() -> &'static Response {
static mut instance: ::protobuf::lazy::Lazy<Response> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Response,
};
unsafe {
instance.get(Response::new)
}
}
pub fn clear_exception(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_exception(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::exception(..)) => true,
_ => false,
}
}
pub fn set_exception(&mut self, v: ResponseException) {
self.value = ::std::option::Option::Some(Response_oneof_value::exception(v))
}
pub fn mut_exception(&mut self) -> &mut ResponseException {
if let ::std::option::Option::Some(Response_oneof_value::exception(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::exception(ResponseException::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::exception(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_exception(&mut self) -> ResponseException {
if self.has_exception() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::exception(v)) => v,
_ => panic!(),
}
} else {
ResponseException::new()
}
}
pub fn get_exception(&self) -> &ResponseException {
match self.value {
::std::option::Option::Some(Response_oneof_value::exception(ref v)) => v,
_ => ResponseException::default_instance(),
}
}
pub fn clear_echo(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_echo(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::echo(..)) => true,
_ => false,
}
}
pub fn set_echo(&mut self, v: ResponseEcho) {
self.value = ::std::option::Option::Some(Response_oneof_value::echo(v))
}
pub fn mut_echo(&mut self) -> &mut ResponseEcho {
if let ::std::option::Option::Some(Response_oneof_value::echo(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::echo(ResponseEcho::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::echo(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_echo(&mut self) -> ResponseEcho {
if self.has_echo() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::echo(v)) => v,
_ => panic!(),
}
} else {
ResponseEcho::new()
}
}
pub fn get_echo(&self) -> &ResponseEcho {
match self.value {
::std::option::Option::Some(Response_oneof_value::echo(ref v)) => v,
_ => ResponseEcho::default_instance(),
}
}
pub fn clear_flush(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_flush(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::flush(..)) => true,
_ => false,
}
}
pub fn set_flush(&mut self, v: ResponseFlush) {
self.value = ::std::option::Option::Some(Response_oneof_value::flush(v))
}
pub fn mut_flush(&mut self) -> &mut ResponseFlush {
if let ::std::option::Option::Some(Response_oneof_value::flush(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::flush(ResponseFlush::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::flush(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_flush(&mut self) -> ResponseFlush {
if self.has_flush() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::flush(v)) => v,
_ => panic!(),
}
} else {
ResponseFlush::new()
}
}
pub fn get_flush(&self) -> &ResponseFlush {
match self.value {
::std::option::Option::Some(Response_oneof_value::flush(ref v)) => v,
_ => ResponseFlush::default_instance(),
}
}
pub fn clear_info(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_info(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::info(..)) => true,
_ => false,
}
}
pub fn set_info(&mut self, v: ResponseInfo) {
self.value = ::std::option::Option::Some(Response_oneof_value::info(v))
}
pub fn mut_info(&mut self) -> &mut ResponseInfo {
if let ::std::option::Option::Some(Response_oneof_value::info(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::info(ResponseInfo::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::info(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_info(&mut self) -> ResponseInfo {
if self.has_info() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::info(v)) => v,
_ => panic!(),
}
} else {
ResponseInfo::new()
}
}
pub fn get_info(&self) -> &ResponseInfo {
match self.value {
::std::option::Option::Some(Response_oneof_value::info(ref v)) => v,
_ => ResponseInfo::default_instance(),
}
}
pub fn clear_set_option(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_set_option(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::set_option(..)) => true,
_ => false,
}
}
pub fn set_set_option(&mut self, v: ResponseSetOption) {
self.value = ::std::option::Option::Some(Response_oneof_value::set_option(v))
}
pub fn mut_set_option(&mut self) -> &mut ResponseSetOption {
if let ::std::option::Option::Some(Response_oneof_value::set_option(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::set_option(ResponseSetOption::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::set_option(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_set_option(&mut self) -> ResponseSetOption {
if self.has_set_option() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::set_option(v)) => v,
_ => panic!(),
}
} else {
ResponseSetOption::new()
}
}
pub fn get_set_option(&self) -> &ResponseSetOption {
match self.value {
::std::option::Option::Some(Response_oneof_value::set_option(ref v)) => v,
_ => ResponseSetOption::default_instance(),
}
}
pub fn clear_deliver_tx(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_deliver_tx(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::deliver_tx(..)) => true,
_ => false,
}
}
pub fn set_deliver_tx(&mut self, v: ResponseDeliverTx) {
self.value = ::std::option::Option::Some(Response_oneof_value::deliver_tx(v))
}
pub fn mut_deliver_tx(&mut self) -> &mut ResponseDeliverTx {
if let ::std::option::Option::Some(Response_oneof_value::deliver_tx(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::deliver_tx(ResponseDeliverTx::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::deliver_tx(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_deliver_tx(&mut self) -> ResponseDeliverTx {
if self.has_deliver_tx() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::deliver_tx(v)) => v,
_ => panic!(),
}
} else {
ResponseDeliverTx::new()
}
}
pub fn get_deliver_tx(&self) -> &ResponseDeliverTx {
match self.value {
::std::option::Option::Some(Response_oneof_value::deliver_tx(ref v)) => v,
_ => ResponseDeliverTx::default_instance(),
}
}
pub fn clear_check_tx(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_check_tx(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::check_tx(..)) => true,
_ => false,
}
}
pub fn set_check_tx(&mut self, v: ResponseCheckTx) {
self.value = ::std::option::Option::Some(Response_oneof_value::check_tx(v))
}
pub fn mut_check_tx(&mut self) -> &mut ResponseCheckTx {
if let ::std::option::Option::Some(Response_oneof_value::check_tx(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::check_tx(ResponseCheckTx::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::check_tx(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_check_tx(&mut self) -> ResponseCheckTx {
if self.has_check_tx() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::check_tx(v)) => v,
_ => panic!(),
}
} else {
ResponseCheckTx::new()
}
}
pub fn get_check_tx(&self) -> &ResponseCheckTx {
match self.value {
::std::option::Option::Some(Response_oneof_value::check_tx(ref v)) => v,
_ => ResponseCheckTx::default_instance(),
}
}
pub fn clear_commit(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_commit(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::commit(..)) => true,
_ => false,
}
}
pub fn set_commit(&mut self, v: ResponseCommit) {
self.value = ::std::option::Option::Some(Response_oneof_value::commit(v))
}
pub fn mut_commit(&mut self) -> &mut ResponseCommit {
if let ::std::option::Option::Some(Response_oneof_value::commit(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::commit(ResponseCommit::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::commit(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_commit(&mut self) -> ResponseCommit {
if self.has_commit() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::commit(v)) => v,
_ => panic!(),
}
} else {
ResponseCommit::new()
}
}
pub fn get_commit(&self) -> &ResponseCommit {
match self.value {
::std::option::Option::Some(Response_oneof_value::commit(ref v)) => v,
_ => ResponseCommit::default_instance(),
}
}
pub fn clear_query(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_query(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::query(..)) => true,
_ => false,
}
}
pub fn set_query(&mut self, v: ResponseQuery) {
self.value = ::std::option::Option::Some(Response_oneof_value::query(v))
}
pub fn mut_query(&mut self) -> &mut ResponseQuery {
if let ::std::option::Option::Some(Response_oneof_value::query(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::query(ResponseQuery::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::query(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_query(&mut self) -> ResponseQuery {
if self.has_query() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::query(v)) => v,
_ => panic!(),
}
} else {
ResponseQuery::new()
}
}
pub fn get_query(&self) -> &ResponseQuery {
match self.value {
::std::option::Option::Some(Response_oneof_value::query(ref v)) => v,
_ => ResponseQuery::default_instance(),
}
}
pub fn clear_init_chain(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_init_chain(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::init_chain(..)) => true,
_ => false,
}
}
pub fn set_init_chain(&mut self, v: ResponseInitChain) {
self.value = ::std::option::Option::Some(Response_oneof_value::init_chain(v))
}
pub fn mut_init_chain(&mut self) -> &mut ResponseInitChain {
if let ::std::option::Option::Some(Response_oneof_value::init_chain(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::init_chain(ResponseInitChain::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::init_chain(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_init_chain(&mut self) -> ResponseInitChain {
if self.has_init_chain() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::init_chain(v)) => v,
_ => panic!(),
}
} else {
ResponseInitChain::new()
}
}
pub fn get_init_chain(&self) -> &ResponseInitChain {
match self.value {
::std::option::Option::Some(Response_oneof_value::init_chain(ref v)) => v,
_ => ResponseInitChain::default_instance(),
}
}
pub fn clear_begin_block(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_begin_block(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::begin_block(..)) => true,
_ => false,
}
}
pub fn set_begin_block(&mut self, v: ResponseBeginBlock) {
self.value = ::std::option::Option::Some(Response_oneof_value::begin_block(v))
}
pub fn mut_begin_block(&mut self) -> &mut ResponseBeginBlock {
if let ::std::option::Option::Some(Response_oneof_value::begin_block(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::begin_block(ResponseBeginBlock::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::begin_block(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_begin_block(&mut self) -> ResponseBeginBlock {
if self.has_begin_block() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::begin_block(v)) => v,
_ => panic!(),
}
} else {
ResponseBeginBlock::new()
}
}
pub fn get_begin_block(&self) -> &ResponseBeginBlock {
match self.value {
::std::option::Option::Some(Response_oneof_value::begin_block(ref v)) => v,
_ => ResponseBeginBlock::default_instance(),
}
}
pub fn clear_end_block(&mut self) {
self.value = ::std::option::Option::None;
}
pub fn has_end_block(&self) -> bool {
match self.value {
::std::option::Option::Some(Response_oneof_value::end_block(..)) => true,
_ => false,
}
}
pub fn set_end_block(&mut self, v: ResponseEndBlock) {
self.value = ::std::option::Option::Some(Response_oneof_value::end_block(v))
}
pub fn mut_end_block(&mut self) -> &mut ResponseEndBlock {
if let ::std::option::Option::Some(Response_oneof_value::end_block(_)) = self.value {
} else {
self.value = ::std::option::Option::Some(Response_oneof_value::end_block(ResponseEndBlock::new()));
}
match self.value {
::std::option::Option::Some(Response_oneof_value::end_block(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_end_block(&mut self) -> ResponseEndBlock {
if self.has_end_block() {
match self.value.take() {
::std::option::Option::Some(Response_oneof_value::end_block(v)) => v,
_ => panic!(),
}
} else {
ResponseEndBlock::new()
}
}
pub fn get_end_block(&self) -> &ResponseEndBlock {
match self.value {
::std::option::Option::Some(Response_oneof_value::end_block(ref v)) => v,
_ => ResponseEndBlock::default_instance(),
}
}
}
impl ::protobuf::Message for Response {
fn is_initialized(&self) -> bool {
if let Some(Response_oneof_value::exception(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::echo(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::flush(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::info(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::set_option(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::deliver_tx(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::check_tx(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::commit(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::query(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::init_chain(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::begin_block(ref v)) = self.value {
if !v.is_initialized() {
return false;
}
}
if let Some(Response_oneof_value::end_block(ref v)) = self.value {
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 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::exception(is.read_message()?));
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::echo(is.read_message()?));
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::flush(is.read_message()?));
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::info(is.read_message()?));
},
5 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::set_option(is.read_message()?));
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::deliver_tx(is.read_message()?));
},
7 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::check_tx(is.read_message()?));
},
8 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::commit(is.read_message()?));
},
9 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::query(is.read_message()?));
},
10 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::init_chain(is.read_message()?));
},
11 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::begin_block(is.read_message()?));
},
12 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.value = ::std::option::Option::Some(Response_oneof_value::end_block(is.read_message()?));
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let ::std::option::Option::Some(ref v) = self.value {
match v {
&Response_oneof_value::exception(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::echo(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::flush(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::info(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::set_option(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::deliver_tx(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::check_tx(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::commit(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::query(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::init_chain(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::begin_block(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&Response_oneof_value::end_block(ref v) => {
let len = v.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 ::std::option::Option::Some(ref v) = self.value {
match v {
&Response_oneof_value::exception(ref v) => {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::echo(ref v) => {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::flush(ref v) => {
os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::info(ref v) => {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::set_option(ref v) => {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::deliver_tx(ref v) => {
os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::check_tx(ref v) => {
os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::commit(ref v) => {
os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::query(ref v) => {
os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::init_chain(ref v) => {
os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::begin_block(ref v) => {
os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
},
&Response_oneof_value::end_block(ref v) => {
os.write_tag(12, ::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 Response {
fn new() -> Response {
Response::new()
}
fn descriptor_static(_: ::std::option::Option<Response>) -> &'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_message_accessor::<_, ResponseException>(
"exception",
Response::has_exception,
Response::get_exception,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseEcho>(
"echo",
Response::has_echo,
Response::get_echo,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseFlush>(
"flush",
Response::has_flush,
Response::get_flush,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseInfo>(
"info",
Response::has_info,
Response::get_info,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseSetOption>(
"set_option",
Response::has_set_option,
Response::get_set_option,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseDeliverTx>(
"deliver_tx",
Response::has_deliver_tx,
Response::get_deliver_tx,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseCheckTx>(
"check_tx",
Response::has_check_tx,
Response::get_check_tx,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseCommit>(
"commit",
Response::has_commit,
Response::get_commit,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseQuery>(
"query",
Response::has_query,
Response::get_query,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseInitChain>(
"init_chain",
Response::has_init_chain,
Response::get_init_chain,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseBeginBlock>(
"begin_block",
Response::has_begin_block,
Response::get_begin_block,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ResponseEndBlock>(
"end_block",
Response::has_end_block,
Response::get_end_block,
));
::protobuf::reflect::MessageDescriptor::new::<Response>(
"Response",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for Response {
fn clear(&mut self) {
self.clear_exception();
self.clear_echo();
self.clear_flush();
self.clear_info();
self.clear_set_option();
self.clear_deliver_tx();
self.clear_check_tx();
self.clear_commit();
self.clear_query();
self.clear_init_chain();
self.clear_begin_block();
self.clear_end_block();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Response {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Response {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseException {
pub error: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseException {}
impl ResponseException {
pub fn new() -> ResponseException {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseException {
static mut instance: ::protobuf::lazy::Lazy<ResponseException> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseException,
};
unsafe {
instance.get(ResponseException::new)
}
}
pub fn clear_error(&mut self) {
self.error.clear();
}
pub fn set_error(&mut self, v: ::std::string::String) {
self.error = v;
}
pub fn mut_error(&mut self) -> &mut ::std::string::String {
&mut self.error
}
pub fn take_error(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.error, ::std::string::String::new())
}
pub fn get_error(&self) -> &str {
&self.error
}
fn get_error_for_reflect(&self) -> &::std::string::String {
&self.error
}
fn mut_error_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.error
}
}
impl ::protobuf::Message for ResponseException {
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_proto3_string_into(wire_type, is, &mut self.error)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.error.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.error);
}
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 !self.error.is_empty() {
os.write_string(1, &self.error)?;
}
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 ResponseException {
fn new() -> ResponseException {
ResponseException::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseException>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"error",
ResponseException::get_error_for_reflect,
ResponseException::mut_error_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseException>(
"ResponseException",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseException {
fn clear(&mut self) {
self.clear_error();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseException {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseException {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseEcho {
pub message: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseEcho {}
impl ResponseEcho {
pub fn new() -> ResponseEcho {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseEcho {
static mut instance: ::protobuf::lazy::Lazy<ResponseEcho> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseEcho,
};
unsafe {
instance.get(ResponseEcho::new)
}
}
pub fn clear_message(&mut self) {
self.message.clear();
}
pub fn set_message(&mut self, v: ::std::string::String) {
self.message = v;
}
pub fn mut_message(&mut self) -> &mut ::std::string::String {
&mut self.message
}
pub fn take_message(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.message, ::std::string::String::new())
}
pub fn get_message(&self) -> &str {
&self.message
}
fn get_message_for_reflect(&self) -> &::std::string::String {
&self.message
}
fn mut_message_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.message
}
}
impl ::protobuf::Message for ResponseEcho {
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_proto3_string_into(wire_type, is, &mut self.message)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.message.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.message);
}
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 !self.message.is_empty() {
os.write_string(1, &self.message)?;
}
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 ResponseEcho {
fn new() -> ResponseEcho {
ResponseEcho::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseEcho>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"message",
ResponseEcho::get_message_for_reflect,
ResponseEcho::mut_message_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseEcho>(
"ResponseEcho",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseEcho {
fn clear(&mut self) {
self.clear_message();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseEcho {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseEcho {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseFlush {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseFlush {}
impl ResponseFlush {
pub fn new() -> ResponseFlush {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseFlush {
static mut instance: ::protobuf::lazy::Lazy<ResponseFlush> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseFlush,
};
unsafe {
instance.get(ResponseFlush::new)
}
}
}
impl ::protobuf::Message for ResponseFlush {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 ResponseFlush {
fn new() -> ResponseFlush {
ResponseFlush::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseFlush>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<ResponseFlush>(
"ResponseFlush",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseFlush {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseFlush {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseFlush {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseInfo {
pub data: ::std::string::String,
pub version: ::std::string::String,
pub last_block_height: u64,
pub last_block_app_hash: ::std::vec::Vec<u8>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseInfo {}
impl ResponseInfo {
pub fn new() -> ResponseInfo {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseInfo {
static mut instance: ::protobuf::lazy::Lazy<ResponseInfo> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseInfo,
};
unsafe {
instance.get(ResponseInfo::new)
}
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::string::String) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::string::String {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.data, ::std::string::String::new())
}
pub fn get_data(&self) -> &str {
&self.data
}
fn get_data_for_reflect(&self) -> &::std::string::String {
&self.data
}
fn mut_data_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.data
}
pub fn clear_version(&mut self) {
self.version.clear();
}
pub fn set_version(&mut self, v: ::std::string::String) {
self.version = v;
}
pub fn mut_version(&mut self) -> &mut ::std::string::String {
&mut self.version
}
pub fn take_version(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.version, ::std::string::String::new())
}
pub fn get_version(&self) -> &str {
&self.version
}
fn get_version_for_reflect(&self) -> &::std::string::String {
&self.version
}
fn mut_version_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.version
}
pub fn clear_last_block_height(&mut self) {
self.last_block_height = 0;
}
pub fn set_last_block_height(&mut self, v: u64) {
self.last_block_height = v;
}
pub fn get_last_block_height(&self) -> u64 {
self.last_block_height
}
fn get_last_block_height_for_reflect(&self) -> &u64 {
&self.last_block_height
}
fn mut_last_block_height_for_reflect(&mut self) -> &mut u64 {
&mut self.last_block_height
}
pub fn clear_last_block_app_hash(&mut self) {
self.last_block_app_hash.clear();
}
pub fn set_last_block_app_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.last_block_app_hash = v;
}
pub fn mut_last_block_app_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.last_block_app_hash
}
pub fn take_last_block_app_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.last_block_app_hash, ::std::vec::Vec::new())
}
pub fn get_last_block_app_hash(&self) -> &[u8] {
&self.last_block_app_hash
}
fn get_last_block_app_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.last_block_app_hash
}
fn mut_last_block_app_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.last_block_app_hash
}
}
impl ::protobuf::Message for ResponseInfo {
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_proto3_string_into(wire_type, is, &mut self.data)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.last_block_height = tmp;
},
4 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.last_block_app_hash)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.data.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.data);
}
if !self.version.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.version);
}
if self.last_block_height != 0 {
my_size += ::protobuf::rt::value_size(3, self.last_block_height, ::protobuf::wire_format::WireTypeVarint);
}
if !self.last_block_app_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(4, &self.last_block_app_hash);
}
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 !self.data.is_empty() {
os.write_string(1, &self.data)?;
}
if !self.version.is_empty() {
os.write_string(2, &self.version)?;
}
if self.last_block_height != 0 {
os.write_uint64(3, self.last_block_height)?;
}
if !self.last_block_app_hash.is_empty() {
os.write_bytes(4, &self.last_block_app_hash)?;
}
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 ResponseInfo {
fn new() -> ResponseInfo {
ResponseInfo::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseInfo>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"data",
ResponseInfo::get_data_for_reflect,
ResponseInfo::mut_data_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"version",
ResponseInfo::get_version_for_reflect,
ResponseInfo::mut_version_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"last_block_height",
ResponseInfo::get_last_block_height_for_reflect,
ResponseInfo::mut_last_block_height_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"last_block_app_hash",
ResponseInfo::get_last_block_app_hash_for_reflect,
ResponseInfo::mut_last_block_app_hash_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseInfo>(
"ResponseInfo",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseInfo {
fn clear(&mut self) {
self.clear_data();
self.clear_version();
self.clear_last_block_height();
self.clear_last_block_app_hash();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseInfo {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseInfo {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseSetOption {
pub log: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseSetOption {}
impl ResponseSetOption {
pub fn new() -> ResponseSetOption {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseSetOption {
static mut instance: ::protobuf::lazy::Lazy<ResponseSetOption> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseSetOption,
};
unsafe {
instance.get(ResponseSetOption::new)
}
}
pub fn clear_log(&mut self) {
self.log.clear();
}
pub fn set_log(&mut self, v: ::std::string::String) {
self.log = v;
}
pub fn mut_log(&mut self) -> &mut ::std::string::String {
&mut self.log
}
pub fn take_log(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.log, ::std::string::String::new())
}
pub fn get_log(&self) -> &str {
&self.log
}
fn get_log_for_reflect(&self) -> &::std::string::String {
&self.log
}
fn mut_log_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.log
}
}
impl ::protobuf::Message for ResponseSetOption {
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_proto3_string_into(wire_type, is, &mut self.log)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.log.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.log);
}
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 !self.log.is_empty() {
os.write_string(1, &self.log)?;
}
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 ResponseSetOption {
fn new() -> ResponseSetOption {
ResponseSetOption::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseSetOption>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"log",
ResponseSetOption::get_log_for_reflect,
ResponseSetOption::mut_log_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseSetOption>(
"ResponseSetOption",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseSetOption {
fn clear(&mut self) {
self.clear_log();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseSetOption {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseSetOption {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseDeliverTx {
pub code: CodeType,
pub data: ::std::vec::Vec<u8>,
pub log: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseDeliverTx {}
impl ResponseDeliverTx {
pub fn new() -> ResponseDeliverTx {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseDeliverTx {
static mut instance: ::protobuf::lazy::Lazy<ResponseDeliverTx> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseDeliverTx,
};
unsafe {
instance.get(ResponseDeliverTx::new)
}
}
pub fn clear_code(&mut self) {
self.code = CodeType::OK;
}
pub fn set_code(&mut self, v: CodeType) {
self.code = v;
}
pub fn get_code(&self) -> CodeType {
self.code
}
fn get_code_for_reflect(&self) -> &CodeType {
&self.code
}
fn mut_code_for_reflect(&mut self) -> &mut CodeType {
&mut self.code
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
}
pub fn get_data(&self) -> &[u8] {
&self.data
}
fn get_data_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.data
}
fn mut_data_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn clear_log(&mut self) {
self.log.clear();
}
pub fn set_log(&mut self, v: ::std::string::String) {
self.log = v;
}
pub fn mut_log(&mut self) -> &mut ::std::string::String {
&mut self.log
}
pub fn take_log(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.log, ::std::string::String::new())
}
pub fn get_log(&self) -> &str {
&self.log
}
fn get_log_for_reflect(&self) -> &::std::string::String {
&self.log
}
fn mut_log_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.log
}
}
impl ::protobuf::Message for ResponseDeliverTx {
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_enum()?;
self.code = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.code != CodeType::OK {
my_size += ::protobuf::rt::enum_size(1, self.code);
}
if !self.data.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.data);
}
if !self.log.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.log);
}
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 self.code != CodeType::OK {
os.write_enum(1, self.code.value())?;
}
if !self.data.is_empty() {
os.write_bytes(2, &self.data)?;
}
if !self.log.is_empty() {
os.write_string(3, &self.log)?;
}
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 ResponseDeliverTx {
fn new() -> ResponseDeliverTx {
ResponseDeliverTx::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseDeliverTx>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<CodeType>>(
"code",
ResponseDeliverTx::get_code_for_reflect,
ResponseDeliverTx::mut_code_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
ResponseDeliverTx::get_data_for_reflect,
ResponseDeliverTx::mut_data_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"log",
ResponseDeliverTx::get_log_for_reflect,
ResponseDeliverTx::mut_log_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseDeliverTx>(
"ResponseDeliverTx",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseDeliverTx {
fn clear(&mut self) {
self.clear_code();
self.clear_data();
self.clear_log();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseDeliverTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseDeliverTx {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseCheckTx {
pub code: CodeType,
pub data: ::std::vec::Vec<u8>,
pub log: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseCheckTx {}
impl ResponseCheckTx {
pub fn new() -> ResponseCheckTx {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseCheckTx {
static mut instance: ::protobuf::lazy::Lazy<ResponseCheckTx> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseCheckTx,
};
unsafe {
instance.get(ResponseCheckTx::new)
}
}
pub fn clear_code(&mut self) {
self.code = CodeType::OK;
}
pub fn set_code(&mut self, v: CodeType) {
self.code = v;
}
pub fn get_code(&self) -> CodeType {
self.code
}
fn get_code_for_reflect(&self) -> &CodeType {
&self.code
}
fn mut_code_for_reflect(&mut self) -> &mut CodeType {
&mut self.code
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
}
pub fn get_data(&self) -> &[u8] {
&self.data
}
fn get_data_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.data
}
fn mut_data_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn clear_log(&mut self) {
self.log.clear();
}
pub fn set_log(&mut self, v: ::std::string::String) {
self.log = v;
}
pub fn mut_log(&mut self) -> &mut ::std::string::String {
&mut self.log
}
pub fn take_log(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.log, ::std::string::String::new())
}
pub fn get_log(&self) -> &str {
&self.log
}
fn get_log_for_reflect(&self) -> &::std::string::String {
&self.log
}
fn mut_log_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.log
}
}
impl ::protobuf::Message for ResponseCheckTx {
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_enum()?;
self.code = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.code != CodeType::OK {
my_size += ::protobuf::rt::enum_size(1, self.code);
}
if !self.data.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.data);
}
if !self.log.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.log);
}
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 self.code != CodeType::OK {
os.write_enum(1, self.code.value())?;
}
if !self.data.is_empty() {
os.write_bytes(2, &self.data)?;
}
if !self.log.is_empty() {
os.write_string(3, &self.log)?;
}
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 ResponseCheckTx {
fn new() -> ResponseCheckTx {
ResponseCheckTx::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseCheckTx>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<CodeType>>(
"code",
ResponseCheckTx::get_code_for_reflect,
ResponseCheckTx::mut_code_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
ResponseCheckTx::get_data_for_reflect,
ResponseCheckTx::mut_data_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"log",
ResponseCheckTx::get_log_for_reflect,
ResponseCheckTx::mut_log_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseCheckTx>(
"ResponseCheckTx",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseCheckTx {
fn clear(&mut self) {
self.clear_code();
self.clear_data();
self.clear_log();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseCheckTx {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseCheckTx {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseQuery {
pub code: CodeType,
pub index: i64,
pub key: ::std::vec::Vec<u8>,
pub value: ::std::vec::Vec<u8>,
pub proof: ::std::vec::Vec<u8>,
pub height: u64,
pub log: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseQuery {}
impl ResponseQuery {
pub fn new() -> ResponseQuery {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseQuery {
static mut instance: ::protobuf::lazy::Lazy<ResponseQuery> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseQuery,
};
unsafe {
instance.get(ResponseQuery::new)
}
}
pub fn clear_code(&mut self) {
self.code = CodeType::OK;
}
pub fn set_code(&mut self, v: CodeType) {
self.code = v;
}
pub fn get_code(&self) -> CodeType {
self.code
}
fn get_code_for_reflect(&self) -> &CodeType {
&self.code
}
fn mut_code_for_reflect(&mut self) -> &mut CodeType {
&mut self.code
}
pub fn clear_index(&mut self) {
self.index = 0;
}
pub fn set_index(&mut self, v: i64) {
self.index = v;
}
pub fn get_index(&self) -> i64 {
self.index
}
fn get_index_for_reflect(&self) -> &i64 {
&self.index
}
fn mut_index_for_reflect(&mut self) -> &mut i64 {
&mut self.index
}
pub fn clear_key(&mut self) {
self.key.clear();
}
pub fn set_key(&mut self, v: ::std::vec::Vec<u8>) {
self.key = v;
}
pub fn mut_key(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.key
}
pub fn take_key(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.key, ::std::vec::Vec::new())
}
pub fn get_key(&self) -> &[u8] {
&self.key
}
fn get_key_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.key
}
fn mut_key_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.key
}
pub fn clear_value(&mut self) {
self.value.clear();
}
pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
self.value = v;
}
pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.value
}
pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
}
pub fn get_value(&self) -> &[u8] {
&self.value
}
fn get_value_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.value
}
fn mut_value_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.value
}
pub fn clear_proof(&mut self) {
self.proof.clear();
}
pub fn set_proof(&mut self, v: ::std::vec::Vec<u8>) {
self.proof = v;
}
pub fn mut_proof(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.proof
}
pub fn take_proof(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.proof, ::std::vec::Vec::new())
}
pub fn get_proof(&self) -> &[u8] {
&self.proof
}
fn get_proof_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.proof
}
fn mut_proof_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.proof
}
pub fn clear_height(&mut self) {
self.height = 0;
}
pub fn set_height(&mut self, v: u64) {
self.height = v;
}
pub fn get_height(&self) -> u64 {
self.height
}
fn get_height_for_reflect(&self) -> &u64 {
&self.height
}
fn mut_height_for_reflect(&mut self) -> &mut u64 {
&mut self.height
}
pub fn clear_log(&mut self) {
self.log.clear();
}
pub fn set_log(&mut self, v: ::std::string::String) {
self.log = v;
}
pub fn mut_log(&mut self) -> &mut ::std::string::String {
&mut self.log
}
pub fn take_log(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.log, ::std::string::String::new())
}
pub fn get_log(&self) -> &str {
&self.log
}
fn get_log_for_reflect(&self) -> &::std::string::String {
&self.log
}
fn mut_log_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.log
}
}
impl ::protobuf::Message for ResponseQuery {
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_enum()?;
self.code = tmp;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int64()?;
self.index = tmp;
},
3 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.key)?;
},
4 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
},
5 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.proof)?;
},
6 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.height = tmp;
},
7 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.code != CodeType::OK {
my_size += ::protobuf::rt::enum_size(1, self.code);
}
if self.index != 0 {
my_size += ::protobuf::rt::value_size(2, self.index, ::protobuf::wire_format::WireTypeVarint);
}
if !self.key.is_empty() {
my_size += ::protobuf::rt::bytes_size(3, &self.key);
}
if !self.value.is_empty() {
my_size += ::protobuf::rt::bytes_size(4, &self.value);
}
if !self.proof.is_empty() {
my_size += ::protobuf::rt::bytes_size(5, &self.proof);
}
if self.height != 0 {
my_size += ::protobuf::rt::value_size(6, self.height, ::protobuf::wire_format::WireTypeVarint);
}
if !self.log.is_empty() {
my_size += ::protobuf::rt::string_size(7, &self.log);
}
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 self.code != CodeType::OK {
os.write_enum(1, self.code.value())?;
}
if self.index != 0 {
os.write_int64(2, self.index)?;
}
if !self.key.is_empty() {
os.write_bytes(3, &self.key)?;
}
if !self.value.is_empty() {
os.write_bytes(4, &self.value)?;
}
if !self.proof.is_empty() {
os.write_bytes(5, &self.proof)?;
}
if self.height != 0 {
os.write_uint64(6, self.height)?;
}
if !self.log.is_empty() {
os.write_string(7, &self.log)?;
}
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 ResponseQuery {
fn new() -> ResponseQuery {
ResponseQuery::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseQuery>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<CodeType>>(
"code",
ResponseQuery::get_code_for_reflect,
ResponseQuery::mut_code_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
"index",
ResponseQuery::get_index_for_reflect,
ResponseQuery::mut_index_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"key",
ResponseQuery::get_key_for_reflect,
ResponseQuery::mut_key_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"value",
ResponseQuery::get_value_for_reflect,
ResponseQuery::mut_value_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"proof",
ResponseQuery::get_proof_for_reflect,
ResponseQuery::mut_proof_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"height",
ResponseQuery::get_height_for_reflect,
ResponseQuery::mut_height_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"log",
ResponseQuery::get_log_for_reflect,
ResponseQuery::mut_log_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseQuery>(
"ResponseQuery",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseQuery {
fn clear(&mut self) {
self.clear_code();
self.clear_index();
self.clear_key();
self.clear_value();
self.clear_proof();
self.clear_height();
self.clear_log();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseQuery {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseQuery {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseCommit {
pub code: CodeType,
pub data: ::std::vec::Vec<u8>,
pub log: ::std::string::String,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseCommit {}
impl ResponseCommit {
pub fn new() -> ResponseCommit {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseCommit {
static mut instance: ::protobuf::lazy::Lazy<ResponseCommit> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseCommit,
};
unsafe {
instance.get(ResponseCommit::new)
}
}
pub fn clear_code(&mut self) {
self.code = CodeType::OK;
}
pub fn set_code(&mut self, v: CodeType) {
self.code = v;
}
pub fn get_code(&self) -> CodeType {
self.code
}
fn get_code_for_reflect(&self) -> &CodeType {
&self.code
}
fn mut_code_for_reflect(&mut self) -> &mut CodeType {
&mut self.code
}
pub fn clear_data(&mut self) {
self.data.clear();
}
pub fn set_data(&mut self, v: ::std::vec::Vec<u8>) {
self.data = v;
}
pub fn mut_data(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn take_data(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data, ::std::vec::Vec::new())
}
pub fn get_data(&self) -> &[u8] {
&self.data
}
fn get_data_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.data
}
fn mut_data_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data
}
pub fn clear_log(&mut self) {
self.log.clear();
}
pub fn set_log(&mut self, v: ::std::string::String) {
self.log = v;
}
pub fn mut_log(&mut self) -> &mut ::std::string::String {
&mut self.log
}
pub fn take_log(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.log, ::std::string::String::new())
}
pub fn get_log(&self) -> &str {
&self.log
}
fn get_log_for_reflect(&self) -> &::std::string::String {
&self.log
}
fn mut_log_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.log
}
}
impl ::protobuf::Message for ResponseCommit {
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_enum()?;
self.code = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.code != CodeType::OK {
my_size += ::protobuf::rt::enum_size(1, self.code);
}
if !self.data.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.data);
}
if !self.log.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.log);
}
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 self.code != CodeType::OK {
os.write_enum(1, self.code.value())?;
}
if !self.data.is_empty() {
os.write_bytes(2, &self.data)?;
}
if !self.log.is_empty() {
os.write_string(3, &self.log)?;
}
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 ResponseCommit {
fn new() -> ResponseCommit {
ResponseCommit::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseCommit>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<CodeType>>(
"code",
ResponseCommit::get_code_for_reflect,
ResponseCommit::mut_code_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data",
ResponseCommit::get_data_for_reflect,
ResponseCommit::mut_data_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"log",
ResponseCommit::get_log_for_reflect,
ResponseCommit::mut_log_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseCommit>(
"ResponseCommit",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseCommit {
fn clear(&mut self) {
self.clear_code();
self.clear_data();
self.clear_log();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseCommit {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseCommit {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseInitChain {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseInitChain {}
impl ResponseInitChain {
pub fn new() -> ResponseInitChain {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseInitChain {
static mut instance: ::protobuf::lazy::Lazy<ResponseInitChain> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseInitChain,
};
unsafe {
instance.get(ResponseInitChain::new)
}
}
}
impl ::protobuf::Message for ResponseInitChain {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 ResponseInitChain {
fn new() -> ResponseInitChain {
ResponseInitChain::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseInitChain>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<ResponseInitChain>(
"ResponseInitChain",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseInitChain {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseInitChain {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseInitChain {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseBeginBlock {
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseBeginBlock {}
impl ResponseBeginBlock {
pub fn new() -> ResponseBeginBlock {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseBeginBlock {
static mut instance: ::protobuf::lazy::Lazy<ResponseBeginBlock> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseBeginBlock,
};
unsafe {
instance.get(ResponseBeginBlock::new)
}
}
}
impl ::protobuf::Message for ResponseBeginBlock {
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 {
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
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<()> {
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 ResponseBeginBlock {
fn new() -> ResponseBeginBlock {
ResponseBeginBlock::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseBeginBlock>) -> &'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 fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new::<ResponseBeginBlock>(
"ResponseBeginBlock",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseBeginBlock {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseBeginBlock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseBeginBlock {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ResponseEndBlock {
diffs: ::protobuf::RepeatedField<Validator>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for ResponseEndBlock {}
impl ResponseEndBlock {
pub fn new() -> ResponseEndBlock {
::std::default::Default::default()
}
pub fn default_instance() -> &'static ResponseEndBlock {
static mut instance: ::protobuf::lazy::Lazy<ResponseEndBlock> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const ResponseEndBlock,
};
unsafe {
instance.get(ResponseEndBlock::new)
}
}
pub fn clear_diffs(&mut self) {
self.diffs.clear();
}
pub fn set_diffs(&mut self, v: ::protobuf::RepeatedField<Validator>) {
self.diffs = v;
}
pub fn mut_diffs(&mut self) -> &mut ::protobuf::RepeatedField<Validator> {
&mut self.diffs
}
pub fn take_diffs(&mut self) -> ::protobuf::RepeatedField<Validator> {
::std::mem::replace(&mut self.diffs, ::protobuf::RepeatedField::new())
}
pub fn get_diffs(&self) -> &[Validator] {
&self.diffs
}
fn get_diffs_for_reflect(&self) -> &::protobuf::RepeatedField<Validator> {
&self.diffs
}
fn mut_diffs_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<Validator> {
&mut self.diffs
}
}
impl ::protobuf::Message for ResponseEndBlock {
fn is_initialized(&self) -> bool {
for v in &self.diffs {
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.diffs)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
for value in &self.diffs {
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.diffs {
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 ResponseEndBlock {
fn new() -> ResponseEndBlock {
ResponseEndBlock::new()
}
fn descriptor_static(_: ::std::option::Option<ResponseEndBlock>) -> &'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<Validator>>(
"diffs",
ResponseEndBlock::get_diffs_for_reflect,
ResponseEndBlock::mut_diffs_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<ResponseEndBlock>(
"ResponseEndBlock",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for ResponseEndBlock {
fn clear(&mut self) {
self.clear_diffs();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ResponseEndBlock {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResponseEndBlock {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Header {
pub chain_id: ::std::string::String,
pub height: u64,
pub time: u64,
pub num_txs: u64,
last_block_id: ::protobuf::SingularPtrField<BlockID>,
pub last_commit_hash: ::std::vec::Vec<u8>,
pub data_hash: ::std::vec::Vec<u8>,
pub validators_hash: ::std::vec::Vec<u8>,
pub app_hash: ::std::vec::Vec<u8>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
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)
}
}
pub fn clear_chain_id(&mut self) {
self.chain_id.clear();
}
pub fn set_chain_id(&mut self, v: ::std::string::String) {
self.chain_id = v;
}
pub fn mut_chain_id(&mut self) -> &mut ::std::string::String {
&mut self.chain_id
}
pub fn take_chain_id(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.chain_id, ::std::string::String::new())
}
pub fn get_chain_id(&self) -> &str {
&self.chain_id
}
fn get_chain_id_for_reflect(&self) -> &::std::string::String {
&self.chain_id
}
fn mut_chain_id_for_reflect(&mut self) -> &mut ::std::string::String {
&mut self.chain_id
}
pub fn clear_height(&mut self) {
self.height = 0;
}
pub fn set_height(&mut self, v: u64) {
self.height = v;
}
pub fn get_height(&self) -> u64 {
self.height
}
fn get_height_for_reflect(&self) -> &u64 {
&self.height
}
fn mut_height_for_reflect(&mut self) -> &mut u64 {
&mut self.height
}
pub fn clear_time(&mut self) {
self.time = 0;
}
pub fn set_time(&mut self, v: u64) {
self.time = v;
}
pub fn get_time(&self) -> u64 {
self.time
}
fn get_time_for_reflect(&self) -> &u64 {
&self.time
}
fn mut_time_for_reflect(&mut self) -> &mut u64 {
&mut self.time
}
pub fn clear_num_txs(&mut self) {
self.num_txs = 0;
}
pub fn set_num_txs(&mut self, v: u64) {
self.num_txs = v;
}
pub fn get_num_txs(&self) -> u64 {
self.num_txs
}
fn get_num_txs_for_reflect(&self) -> &u64 {
&self.num_txs
}
fn mut_num_txs_for_reflect(&mut self) -> &mut u64 {
&mut self.num_txs
}
pub fn clear_last_block_id(&mut self) {
self.last_block_id.clear();
}
pub fn has_last_block_id(&self) -> bool {
self.last_block_id.is_some()
}
pub fn set_last_block_id(&mut self, v: BlockID) {
self.last_block_id = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_last_block_id(&mut self) -> &mut BlockID {
if self.last_block_id.is_none() {
self.last_block_id.set_default();
}
self.last_block_id.as_mut().unwrap()
}
pub fn take_last_block_id(&mut self) -> BlockID {
self.last_block_id.take().unwrap_or_else(|| BlockID::new())
}
pub fn get_last_block_id(&self) -> &BlockID {
self.last_block_id.as_ref().unwrap_or_else(|| BlockID::default_instance())
}
fn get_last_block_id_for_reflect(&self) -> &::protobuf::SingularPtrField<BlockID> {
&self.last_block_id
}
fn mut_last_block_id_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<BlockID> {
&mut self.last_block_id
}
pub fn clear_last_commit_hash(&mut self) {
self.last_commit_hash.clear();
}
pub fn set_last_commit_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.last_commit_hash = v;
}
pub fn mut_last_commit_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.last_commit_hash
}
pub fn take_last_commit_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.last_commit_hash, ::std::vec::Vec::new())
}
pub fn get_last_commit_hash(&self) -> &[u8] {
&self.last_commit_hash
}
fn get_last_commit_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.last_commit_hash
}
fn mut_last_commit_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.last_commit_hash
}
pub fn clear_data_hash(&mut self) {
self.data_hash.clear();
}
pub fn set_data_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.data_hash = v;
}
pub fn mut_data_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data_hash
}
pub fn take_data_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.data_hash, ::std::vec::Vec::new())
}
pub fn get_data_hash(&self) -> &[u8] {
&self.data_hash
}
fn get_data_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.data_hash
}
fn mut_data_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.data_hash
}
pub fn clear_validators_hash(&mut self) {
self.validators_hash.clear();
}
pub fn set_validators_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.validators_hash = v;
}
pub fn mut_validators_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.validators_hash
}
pub fn take_validators_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.validators_hash, ::std::vec::Vec::new())
}
pub fn get_validators_hash(&self) -> &[u8] {
&self.validators_hash
}
fn get_validators_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.validators_hash
}
fn mut_validators_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.validators_hash
}
pub fn clear_app_hash(&mut self) {
self.app_hash.clear();
}
pub fn set_app_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.app_hash = v;
}
pub fn mut_app_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.app_hash
}
pub fn take_app_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.app_hash, ::std::vec::Vec::new())
}
pub fn get_app_hash(&self) -> &[u8] {
&self.app_hash
}
fn get_app_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.app_hash
}
fn mut_app_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.app_hash
}
}
impl ::protobuf::Message for Header {
fn is_initialized(&self) -> bool {
for v in &self.last_block_id {
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_proto3_string_into(wire_type, is, &mut self.chain_id)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.height = tmp;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.time = 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_uint64()?;
self.num_txs = tmp;
},
5 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_block_id)?;
},
6 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.last_commit_hash)?;
},
7 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data_hash)?;
},
8 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.validators_hash)?;
},
9 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.app_hash)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.chain_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.chain_id);
}
if self.height != 0 {
my_size += ::protobuf::rt::value_size(2, self.height, ::protobuf::wire_format::WireTypeVarint);
}
if self.time != 0 {
my_size += ::protobuf::rt::value_size(3, self.time, ::protobuf::wire_format::WireTypeVarint);
}
if self.num_txs != 0 {
my_size += ::protobuf::rt::value_size(4, self.num_txs, ::protobuf::wire_format::WireTypeVarint);
}
if let Some(ref v) = self.last_block_id.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.last_commit_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(6, &self.last_commit_hash);
}
if !self.data_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(7, &self.data_hash);
}
if !self.validators_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(8, &self.validators_hash);
}
if !self.app_hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(9, &self.app_hash);
}
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 !self.chain_id.is_empty() {
os.write_string(1, &self.chain_id)?;
}
if self.height != 0 {
os.write_uint64(2, self.height)?;
}
if self.time != 0 {
os.write_uint64(3, self.time)?;
}
if self.num_txs != 0 {
os.write_uint64(4, self.num_txs)?;
}
if let Some(ref v) = self.last_block_id.as_ref() {
os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if !self.last_commit_hash.is_empty() {
os.write_bytes(6, &self.last_commit_hash)?;
}
if !self.data_hash.is_empty() {
os.write_bytes(7, &self.data_hash)?;
}
if !self.validators_hash.is_empty() {
os.write_bytes(8, &self.validators_hash)?;
}
if !self.app_hash.is_empty() {
os.write_bytes(9, &self.app_hash)?;
}
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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"chain_id",
Header::get_chain_id_for_reflect,
Header::mut_chain_id_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"height",
Header::get_height_for_reflect,
Header::mut_height_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"time",
Header::get_time_for_reflect,
Header::mut_time_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"num_txs",
Header::get_num_txs_for_reflect,
Header::mut_num_txs_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<BlockID>>(
"last_block_id",
Header::get_last_block_id_for_reflect,
Header::mut_last_block_id_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"last_commit_hash",
Header::get_last_commit_hash_for_reflect,
Header::mut_last_commit_hash_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"data_hash",
Header::get_data_hash_for_reflect,
Header::mut_data_hash_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"validators_hash",
Header::get_validators_hash_for_reflect,
Header::mut_validators_hash_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"app_hash",
Header::get_app_hash_for_reflect,
Header::mut_app_hash_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<Header>(
"Header",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for Header {
fn clear(&mut self) {
self.clear_chain_id();
self.clear_height();
self.clear_time();
self.clear_num_txs();
self.clear_last_block_id();
self.clear_last_commit_hash();
self.clear_data_hash();
self.clear_validators_hash();
self.clear_app_hash();
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 BlockID {
pub hash: ::std::vec::Vec<u8>,
parts: ::protobuf::SingularPtrField<PartSetHeader>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for BlockID {}
impl BlockID {
pub fn new() -> BlockID {
::std::default::Default::default()
}
pub fn default_instance() -> &'static BlockID {
static mut instance: ::protobuf::lazy::Lazy<BlockID> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const BlockID,
};
unsafe {
instance.get(BlockID::new)
}
}
pub fn clear_hash(&mut self) {
self.hash.clear();
}
pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.hash = v;
}
pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.hash, ::std::vec::Vec::new())
}
pub fn get_hash(&self) -> &[u8] {
&self.hash
}
fn get_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.hash
}
fn mut_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
pub fn clear_parts(&mut self) {
self.parts.clear();
}
pub fn has_parts(&self) -> bool {
self.parts.is_some()
}
pub fn set_parts(&mut self, v: PartSetHeader) {
self.parts = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_parts(&mut self) -> &mut PartSetHeader {
if self.parts.is_none() {
self.parts.set_default();
}
self.parts.as_mut().unwrap()
}
pub fn take_parts(&mut self) -> PartSetHeader {
self.parts.take().unwrap_or_else(|| PartSetHeader::new())
}
pub fn get_parts(&self) -> &PartSetHeader {
self.parts.as_ref().unwrap_or_else(|| PartSetHeader::default_instance())
}
fn get_parts_for_reflect(&self) -> &::protobuf::SingularPtrField<PartSetHeader> {
&self.parts
}
fn mut_parts_for_reflect(&mut self) -> &mut ::protobuf::SingularPtrField<PartSetHeader> {
&mut self.parts
}
}
impl ::protobuf::Message for BlockID {
fn is_initialized(&self) -> bool {
for v in &self.parts {
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_proto3_bytes_into(wire_type, is, &mut self.hash)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.parts)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.hash);
}
if let Some(ref v) = self.parts.as_ref() {
let len = v.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 !self.hash.is_empty() {
os.write_bytes(1, &self.hash)?;
}
if let Some(ref v) = self.parts.as_ref() {
os.write_tag(2, ::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 BlockID {
fn new() -> BlockID {
BlockID::new()
}
fn descriptor_static(_: ::std::option::Option<BlockID>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"hash",
BlockID::get_hash_for_reflect,
BlockID::mut_hash_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<PartSetHeader>>(
"parts",
BlockID::get_parts_for_reflect,
BlockID::mut_parts_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<BlockID>(
"BlockID",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for BlockID {
fn clear(&mut self) {
self.clear_hash();
self.clear_parts();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for BlockID {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for BlockID {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct PartSetHeader {
pub total: u64,
pub hash: ::std::vec::Vec<u8>,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for PartSetHeader {}
impl PartSetHeader {
pub fn new() -> PartSetHeader {
::std::default::Default::default()
}
pub fn default_instance() -> &'static PartSetHeader {
static mut instance: ::protobuf::lazy::Lazy<PartSetHeader> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const PartSetHeader,
};
unsafe {
instance.get(PartSetHeader::new)
}
}
pub fn clear_total(&mut self) {
self.total = 0;
}
pub fn set_total(&mut self, v: u64) {
self.total = v;
}
pub fn get_total(&self) -> u64 {
self.total
}
fn get_total_for_reflect(&self) -> &u64 {
&self.total
}
fn mut_total_for_reflect(&mut self) -> &mut u64 {
&mut self.total
}
pub fn clear_hash(&mut self) {
self.hash.clear();
}
pub fn set_hash(&mut self, v: ::std::vec::Vec<u8>) {
self.hash = v;
}
pub fn mut_hash(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
pub fn take_hash(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.hash, ::std::vec::Vec::new())
}
pub fn get_hash(&self) -> &[u8] {
&self.hash
}
fn get_hash_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.hash
}
fn mut_hash_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.hash
}
}
impl ::protobuf::Message for PartSetHeader {
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_uint64()?;
self.total = tmp;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.hash)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if self.total != 0 {
my_size += ::protobuf::rt::value_size(1, self.total, ::protobuf::wire_format::WireTypeVarint);
}
if !self.hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.hash);
}
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 self.total != 0 {
os.write_uint64(1, self.total)?;
}
if !self.hash.is_empty() {
os.write_bytes(2, &self.hash)?;
}
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 PartSetHeader {
fn new() -> PartSetHeader {
PartSetHeader::new()
}
fn descriptor_static(_: ::std::option::Option<PartSetHeader>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"total",
PartSetHeader::get_total_for_reflect,
PartSetHeader::mut_total_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"hash",
PartSetHeader::get_hash_for_reflect,
PartSetHeader::mut_hash_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<PartSetHeader>(
"PartSetHeader",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for PartSetHeader {
fn clear(&mut self) {
self.clear_total();
self.clear_hash();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for PartSetHeader {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PartSetHeader {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Validator {
pub pubKey: ::std::vec::Vec<u8>,
pub power: u64,
unknown_fields: ::protobuf::UnknownFields,
cached_size: ::protobuf::CachedSize,
}
unsafe impl ::std::marker::Sync for Validator {}
impl Validator {
pub fn new() -> Validator {
::std::default::Default::default()
}
pub fn default_instance() -> &'static Validator {
static mut instance: ::protobuf::lazy::Lazy<Validator> = ::protobuf::lazy::Lazy {
lock: ::protobuf::lazy::ONCE_INIT,
ptr: 0 as *const Validator,
};
unsafe {
instance.get(Validator::new)
}
}
pub fn clear_pubKey(&mut self) {
self.pubKey.clear();
}
pub fn set_pubKey(&mut self, v: ::std::vec::Vec<u8>) {
self.pubKey = v;
}
pub fn mut_pubKey(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.pubKey
}
pub fn take_pubKey(&mut self) -> ::std::vec::Vec<u8> {
::std::mem::replace(&mut self.pubKey, ::std::vec::Vec::new())
}
pub fn get_pubKey(&self) -> &[u8] {
&self.pubKey
}
fn get_pubKey_for_reflect(&self) -> &::std::vec::Vec<u8> {
&self.pubKey
}
fn mut_pubKey_for_reflect(&mut self) -> &mut ::std::vec::Vec<u8> {
&mut self.pubKey
}
pub fn clear_power(&mut self) {
self.power = 0;
}
pub fn set_power(&mut self, v: u64) {
self.power = v;
}
pub fn get_power(&self) -> u64 {
self.power
}
fn get_power_for_reflect(&self) -> &u64 {
&self.power
}
fn mut_power_for_reflect(&mut self) -> &mut u64 {
&mut self.power
}
}
impl ::protobuf::Message for Validator {
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_proto3_bytes_into(wire_type, is, &mut self.pubKey)?;
},
2 => {
if wire_type != ::protobuf::wire_format::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_uint64()?;
self.power = tmp;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if !self.pubKey.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &self.pubKey);
}
if self.power != 0 {
my_size += ::protobuf::rt::value_size(2, self.power, ::protobuf::wire_format::WireTypeVarint);
}
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 !self.pubKey.is_empty() {
os.write_bytes(1, &self.pubKey)?;
}
if self.power != 0 {
os.write_uint64(2, self.power)?;
}
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 Validator {
fn new() -> Validator {
Validator::new()
}
fn descriptor_static(_: ::std::option::Option<Validator>) -> &'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_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"pubKey",
Validator::get_pubKey_for_reflect,
Validator::mut_pubKey_for_reflect,
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
"power",
Validator::get_power_for_reflect,
Validator::mut_power_for_reflect,
));
::protobuf::reflect::MessageDescriptor::new::<Validator>(
"Validator",
fields,
file_descriptor_proto()
)
})
}
}
}
impl ::protobuf::Clear for Validator {
fn clear(&mut self) {
self.clear_pubKey();
self.clear_power();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Validator {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Validator {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum CodeType {
OK = 0,
InternalError = 1,
EncodingError = 2,
BadNonce = 3,
Unauthorized = 4,
InsufficientFunds = 5,
UnknownRequest = 6,
BaseDuplicateAddress = 101,
BaseEncodingError = 102,
BaseInsufficientFees = 103,
BaseInsufficientFunds = 104,
BaseInsufficientGasPrice = 105,
BaseInvalidInput = 106,
BaseInvalidOutput = 107,
BaseInvalidPubKey = 108,
BaseInvalidSequence = 109,
BaseInvalidSignature = 110,
BaseUnknownAddress = 111,
BaseUnknownPubKey = 112,
BaseUnknownPlugin = 113,
GovUnknownEntity = 201,
GovUnknownGroup = 202,
GovUnknownProposal = 203,
GovDuplicateGroup = 204,
GovDuplicateMember = 205,
GovDuplicateProposal = 206,
GovDuplicateVote = 207,
GovInvalidMember = 208,
GovInvalidVote = 209,
GovInvalidVotingPower = 210,
}
impl ::protobuf::ProtobufEnum for CodeType {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CodeType> {
match value {
0 => ::std::option::Option::Some(CodeType::OK),
1 => ::std::option::Option::Some(CodeType::InternalError),
2 => ::std::option::Option::Some(CodeType::EncodingError),
3 => ::std::option::Option::Some(CodeType::BadNonce),
4 => ::std::option::Option::Some(CodeType::Unauthorized),
5 => ::std::option::Option::Some(CodeType::InsufficientFunds),
6 => ::std::option::Option::Some(CodeType::UnknownRequest),
101 => ::std::option::Option::Some(CodeType::BaseDuplicateAddress),
102 => ::std::option::Option::Some(CodeType::BaseEncodingError),
103 => ::std::option::Option::Some(CodeType::BaseInsufficientFees),
104 => ::std::option::Option::Some(CodeType::BaseInsufficientFunds),
105 => ::std::option::Option::Some(CodeType::BaseInsufficientGasPrice),
106 => ::std::option::Option::Some(CodeType::BaseInvalidInput),
107 => ::std::option::Option::Some(CodeType::BaseInvalidOutput),
108 => ::std::option::Option::Some(CodeType::BaseInvalidPubKey),
109 => ::std::option::Option::Some(CodeType::BaseInvalidSequence),
110 => ::std::option::Option::Some(CodeType::BaseInvalidSignature),
111 => ::std::option::Option::Some(CodeType::BaseUnknownAddress),
112 => ::std::option::Option::Some(CodeType::BaseUnknownPubKey),
113 => ::std::option::Option::Some(CodeType::BaseUnknownPlugin),
201 => ::std::option::Option::Some(CodeType::GovUnknownEntity),
202 => ::std::option::Option::Some(CodeType::GovUnknownGroup),
203 => ::std::option::Option::Some(CodeType::GovUnknownProposal),
204 => ::std::option::Option::Some(CodeType::GovDuplicateGroup),
205 => ::std::option::Option::Some(CodeType::GovDuplicateMember),
206 => ::std::option::Option::Some(CodeType::GovDuplicateProposal),
207 => ::std::option::Option::Some(CodeType::GovDuplicateVote),
208 => ::std::option::Option::Some(CodeType::GovInvalidMember),
209 => ::std::option::Option::Some(CodeType::GovInvalidVote),
210 => ::std::option::Option::Some(CodeType::GovInvalidVotingPower),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [CodeType] = &[
CodeType::OK,
CodeType::InternalError,
CodeType::EncodingError,
CodeType::BadNonce,
CodeType::Unauthorized,
CodeType::InsufficientFunds,
CodeType::UnknownRequest,
CodeType::BaseDuplicateAddress,
CodeType::BaseEncodingError,
CodeType::BaseInsufficientFees,
CodeType::BaseInsufficientFunds,
CodeType::BaseInsufficientGasPrice,
CodeType::BaseInvalidInput,
CodeType::BaseInvalidOutput,
CodeType::BaseInvalidPubKey,
CodeType::BaseInvalidSequence,
CodeType::BaseInvalidSignature,
CodeType::BaseUnknownAddress,
CodeType::BaseUnknownPubKey,
CodeType::BaseUnknownPlugin,
CodeType::GovUnknownEntity,
CodeType::GovUnknownGroup,
CodeType::GovUnknownProposal,
CodeType::GovDuplicateGroup,
CodeType::GovDuplicateMember,
CodeType::GovDuplicateProposal,
CodeType::GovDuplicateVote,
CodeType::GovInvalidMember,
CodeType::GovInvalidVote,
CodeType::GovInvalidVotingPower,
];
values
}
fn enum_descriptor_static(_: ::std::option::Option<CodeType>) -> &'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("CodeType", file_descriptor_proto())
})
}
}
}
impl ::std::marker::Copy for CodeType {
}
impl ::std::default::Default for CodeType {
fn default() -> Self {
CodeType::OK
}
}
impl ::protobuf::reflect::ProtobufValue for CodeType {
fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x0btypes.proto\x12\x05types\"\xc6\x04\n\x07Request\x12(\n\x04echo\x18\
\x01\x20\x01(\x0b2\x12.types.RequestEchoH\0R\x04echo\x12+\n\x05flush\x18\
\x02\x20\x01(\x0b2\x13.types.RequestFlushH\0R\x05flush\x12(\n\x04info\
\x18\x03\x20\x01(\x0b2\x12.types.RequestInfoH\0R\x04info\x128\n\nset_opt\
ion\x18\x04\x20\x01(\x0b2\x17.types.RequestSetOptionH\0R\tsetOption\x128\
\n\ndeliver_tx\x18\x05\x20\x01(\x0b2\x17.types.RequestDeliverTxH\0R\tdel\
iverTx\x122\n\x08check_tx\x18\x06\x20\x01(\x0b2\x15.types.RequestCheckTx\
H\0R\x07checkTx\x12.\n\x06commit\x18\x07\x20\x01(\x0b2\x14.types.Request\
CommitH\0R\x06commit\x12+\n\x05query\x18\x08\x20\x01(\x0b2\x13.types.Req\
uestQueryH\0R\x05query\x128\n\ninit_chain\x18\t\x20\x01(\x0b2\x17.types.\
RequestInitChainH\0R\tinitChain\x12;\n\x0bbegin_block\x18\n\x20\x01(\x0b\
2\x18.types.RequestBeginBlockH\0R\nbeginBlock\x125\n\tend_block\x18\x0b\
\x20\x01(\x0b2\x16.types.RequestEndBlockH\0R\x08endBlockB\x07\n\x05value\
\"'\n\x0bRequestEcho\x12\x18\n\x07message\x18\x01\x20\x01(\tR\x07message\
\"\x0e\n\x0cRequestFlush\"\r\n\x0bRequestInfo\":\n\x10RequestSetOption\
\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\
\x20\x01(\tR\x05value\"\"\n\x10RequestDeliverTx\x12\x0e\n\x02tx\x18\x01\
\x20\x01(\x0cR\x02tx\"\x20\n\x0eRequestCheckTx\x12\x0e\n\x02tx\x18\x01\
\x20\x01(\x0cR\x02tx\"d\n\x0cRequestQuery\x12\x12\n\x04data\x18\x01\x20\
\x01(\x0cR\x04data\x12\x12\n\x04path\x18\x02\x20\x01(\tR\x04path\x12\x16\
\n\x06height\x18\x03\x20\x01(\x04R\x06height\x12\x14\n\x05prove\x18\x04\
\x20\x01(\x08R\x05prove\"\x0f\n\rRequestCommit\"D\n\x10RequestInitChain\
\x120\n\nvalidators\x18\x01\x20\x03(\x0b2\x10.types.ValidatorR\nvalidato\
rs\"N\n\x11RequestBeginBlock\x12\x12\n\x04hash\x18\x01\x20\x01(\x0cR\x04\
hash\x12%\n\x06header\x18\x02\x20\x01(\x0b2\r.types.HeaderR\x06header\")\
\n\x0fRequestEndBlock\x12\x16\n\x06height\x18\x01\x20\x01(\x04R\x06heigh\
t\"\x8c\x05\n\x08Response\x128\n\texception\x18\x01\x20\x01(\x0b2\x18.ty\
pes.ResponseExceptionH\0R\texception\x12)\n\x04echo\x18\x02\x20\x01(\x0b\
2\x13.types.ResponseEchoH\0R\x04echo\x12,\n\x05flush\x18\x03\x20\x01(\
\x0b2\x14.types.ResponseFlushH\0R\x05flush\x12)\n\x04info\x18\x04\x20\
\x01(\x0b2\x13.types.ResponseInfoH\0R\x04info\x129\n\nset_option\x18\x05\
\x20\x01(\x0b2\x18.types.ResponseSetOptionH\0R\tsetOption\x129\n\ndelive\
r_tx\x18\x06\x20\x01(\x0b2\x18.types.ResponseDeliverTxH\0R\tdeliverTx\
\x123\n\x08check_tx\x18\x07\x20\x01(\x0b2\x16.types.ResponseCheckTxH\0R\
\x07checkTx\x12/\n\x06commit\x18\x08\x20\x01(\x0b2\x15.types.ResponseCom\
mitH\0R\x06commit\x12,\n\x05query\x18\t\x20\x01(\x0b2\x14.types.Response\
QueryH\0R\x05query\x129\n\ninit_chain\x18\n\x20\x01(\x0b2\x18.types.Resp\
onseInitChainH\0R\tinitChain\x12<\n\x0bbegin_block\x18\x0b\x20\x01(\x0b2\
\x19.types.ResponseBeginBlockH\0R\nbeginBlock\x126\n\tend_block\x18\x0c\
\x20\x01(\x0b2\x17.types.ResponseEndBlockH\0R\x08endBlockB\x07\n\x05valu\
e\")\n\x11ResponseException\x12\x14\n\x05error\x18\x01\x20\x01(\tR\x05er\
ror\"(\n\x0cResponseEcho\x12\x18\n\x07message\x18\x01\x20\x01(\tR\x07mes\
sage\"\x0f\n\rResponseFlush\"\x97\x01\n\x0cResponseInfo\x12\x12\n\x04dat\
a\x18\x01\x20\x01(\tR\x04data\x12\x18\n\x07version\x18\x02\x20\x01(\tR\
\x07version\x12*\n\x11last_block_height\x18\x03\x20\x01(\x04R\x0flastBlo\
ckHeight\x12-\n\x13last_block_app_hash\x18\x04\x20\x01(\x0cR\x10lastBloc\
kAppHash\"%\n\x11ResponseSetOption\x12\x10\n\x03log\x18\x01\x20\x01(\tR\
\x03log\"^\n\x11ResponseDeliverTx\x12#\n\x04code\x18\x01\x20\x01(\x0e2\
\x0f.types.CodeTypeR\x04code\x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04\
data\x12\x10\n\x03log\x18\x03\x20\x01(\tR\x03log\"\\\n\x0fResponseCheckT\
x\x12#\n\x04code\x18\x01\x20\x01(\x0e2\x0f.types.CodeTypeR\x04code\x12\
\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\x12\x10\n\x03log\x18\x03\
\x20\x01(\tR\x03log\"\xb2\x01\n\rResponseQuery\x12#\n\x04code\x18\x01\
\x20\x01(\x0e2\x0f.types.CodeTypeR\x04code\x12\x14\n\x05index\x18\x02\
\x20\x01(\x03R\x05index\x12\x10\n\x03key\x18\x03\x20\x01(\x0cR\x03key\
\x12\x14\n\x05value\x18\x04\x20\x01(\x0cR\x05value\x12\x14\n\x05proof\
\x18\x05\x20\x01(\x0cR\x05proof\x12\x16\n\x06height\x18\x06\x20\x01(\x04\
R\x06height\x12\x10\n\x03log\x18\x07\x20\x01(\tR\x03log\"[\n\x0eResponse\
Commit\x12#\n\x04code\x18\x01\x20\x01(\x0e2\x0f.types.CodeTypeR\x04code\
\x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\x12\x10\n\x03log\x18\
\x03\x20\x01(\tR\x03log\"\x13\n\x11ResponseInitChain\"\x14\n\x12Response\
BeginBlock\":\n\x10ResponseEndBlock\x12&\n\x05diffs\x18\x01\x20\x03(\x0b\
2\x10.types.ValidatorR\x05diffs\"\xa7\x02\n\x06Header\x12\x19\n\x08chain\
_id\x18\x01\x20\x01(\tR\x07chainId\x12\x16\n\x06height\x18\x02\x20\x01(\
\x04R\x06height\x12\x12\n\x04time\x18\x03\x20\x01(\x04R\x04time\x12\x17\
\n\x07num_txs\x18\x04\x20\x01(\x04R\x06numTxs\x122\n\rlast_block_id\x18\
\x05\x20\x01(\x0b2\x0e.types.BlockIDR\x0blastBlockId\x12(\n\x10last_comm\
it_hash\x18\x06\x20\x01(\x0cR\x0elastCommitHash\x12\x1b\n\tdata_hash\x18\
\x07\x20\x01(\x0cR\x08dataHash\x12'\n\x0fvalidators_hash\x18\x08\x20\x01\
(\x0cR\x0evalidatorsHash\x12\x19\n\x08app_hash\x18\t\x20\x01(\x0cR\x07ap\
pHash\"I\n\x07BlockID\x12\x12\n\x04hash\x18\x01\x20\x01(\x0cR\x04hash\
\x12*\n\x05parts\x18\x02\x20\x01(\x0b2\x14.types.PartSetHeaderR\x05parts\
\"9\n\rPartSetHeader\x12\x14\n\x05total\x18\x01\x20\x01(\x04R\x05total\
\x12\x12\n\x04hash\x18\x02\x20\x01(\x0cR\x04hash\"9\n\tValidator\x12\x16\
\n\x06pubKey\x18\x01\x20\x01(\x0cR\x06pubKey\x12\x14\n\x05power\x18\x02\
\x20\x01(\x04R\x05power*\xb5\x05\n\x08CodeType\x12\x06\n\x02OK\x10\0\x12\
\x11\n\rInternalError\x10\x01\x12\x11\n\rEncodingError\x10\x02\x12\x0c\n\
\x08BadNonce\x10\x03\x12\x10\n\x0cUnauthorized\x10\x04\x12\x15\n\x11Insu\
fficientFunds\x10\x05\x12\x12\n\x0eUnknownRequest\x10\x06\x12\x18\n\x14B\
aseDuplicateAddress\x10e\x12\x15\n\x11BaseEncodingError\x10f\x12\x18\n\
\x14BaseInsufficientFees\x10g\x12\x19\n\x15BaseInsufficientFunds\x10h\
\x12\x1c\n\x18BaseInsufficientGasPrice\x10i\x12\x14\n\x10BaseInvalidInpu\
t\x10j\x12\x15\n\x11BaseInvalidOutput\x10k\x12\x15\n\x11BaseInvalidPubKe\
y\x10l\x12\x17\n\x13BaseInvalidSequence\x10m\x12\x18\n\x14BaseInvalidSig\
nature\x10n\x12\x16\n\x12BaseUnknownAddress\x10o\x12\x15\n\x11BaseUnknow\
nPubKey\x10p\x12\x15\n\x11BaseUnknownPlugin\x10q\x12\x15\n\x10GovUnknown\
Entity\x10\xc9\x01\x12\x14\n\x0fGovUnknownGroup\x10\xca\x01\x12\x17\n\
\x12GovUnknownProposal\x10\xcb\x01\x12\x16\n\x11GovDuplicateGroup\x10\
\xcc\x01\x12\x17\n\x12GovDuplicateMember\x10\xcd\x01\x12\x19\n\x14GovDup\
licateProposal\x10\xce\x01\x12\x15\n\x10GovDuplicateVote\x10\xcf\x01\x12\
\x15\n\x10GovInvalidMember\x10\xd0\x01\x12\x13\n\x0eGovInvalidVote\x10\
\xd1\x01\x12\x1a\n\x15GovInvalidVotingPower\x10\xd2\x012\x8c\x05\n\x0fAB\
CIApplication\x12/\n\x04Echo\x12\x12.types.RequestEcho\x1a\x13.types.Res\
ponseEcho\x122\n\x05Flush\x12\x13.types.RequestFlush\x1a\x14.types.Respo\
nseFlush\x12/\n\x04Info\x12\x12.types.RequestInfo\x1a\x13.types.Response\
Info\x12>\n\tSetOption\x12\x17.types.RequestSetOption\x1a\x18.types.Resp\
onseSetOption\x12>\n\tDeliverTx\x12\x17.types.RequestDeliverTx\x1a\x18.t\
ypes.ResponseDeliverTx\x128\n\x07CheckTx\x12\x15.types.RequestCheckTx\
\x1a\x16.types.ResponseCheckTx\x122\n\x05Query\x12\x13.types.RequestQuer\
y\x1a\x14.types.ResponseQuery\x125\n\x06Commit\x12\x14.types.RequestComm\
it\x1a\x15.types.ResponseCommit\x12>\n\tInitChain\x12\x17.types.RequestI\
nitChain\x1a\x18.types.ResponseInitChain\x12A\n\nBeginBlock\x12\x18.type\
s.RequestBeginBlock\x1a\x19.types.ResponseBeginBlock\x12;\n\x08EndBlock\
\x12\x16.types.RequestEndBlock\x1a\x17.types.ResponseEndBlockJ\xb7A\n\
\x07\x12\x05\0\0\xf0\x01\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\
\x02\x12\x03\x01\x08\r\n\x7f\n\x02\x05\0\x12\x04\x08\0.\x012<\x20This\
\x20file\x20is\x20copied\x20from\x20http://github.com/tendermint/abci\n2\
5----------------------------------------\n\x20Code\x20types\n\n\n\n\x03\
\x05\0\x01\x12\x03\x08\x05\r\n\x0b\n\x04\x05\0\x02\0\x12\x03\t\x08\"\n\
\x0c\n\x05\x05\0\x02\0\x01\x12\x03\t\x08\n\n\x0c\n\x05\x05\0\x02\0\x02\
\x12\x03\t\x20!\n-\n\x04\x05\0\x02\x01\x12\x03\x0c\x08\"\x1a\x20\x20Gene\
ral\x20response\x20codes,\x200\x20~\x2099\n\n\x0c\n\x05\x05\0\x02\x01\
\x01\x12\x03\x0c\x08\x15\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x0c\x20!\
\n\x0b\n\x04\x05\0\x02\x02\x12\x03\r\x08\"\n\x0c\n\x05\x05\0\x02\x02\x01\
\x12\x03\r\x08\x15\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\r\x20!\n\x0b\n\
\x04\x05\0\x02\x03\x12\x03\x0e\x08\"\n\x0c\n\x05\x05\0\x02\x03\x01\x12\
\x03\x0e\x08\x10\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03\x0e\x20!\n\x0b\n\
\x04\x05\0\x02\x04\x12\x03\x0f\x08\"\n\x0c\n\x05\x05\0\x02\x04\x01\x12\
\x03\x0f\x08\x14\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03\x0f\x20!\n\x0b\n\
\x04\x05\0\x02\x05\x12\x03\x10\x08\"\n\x0c\n\x05\x05\0\x02\x05\x01\x12\
\x03\x10\x08\x19\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03\x10\x20!\n\x0b\n\
\x04\x05\0\x02\x06\x12\x03\x11\x08\"\n\x0c\n\x05\x05\0\x02\x06\x01\x12\
\x03\x11\x08\x16\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03\x11\x20!\n/\n\x04\
\x05\0\x02\x07\x12\x03\x14\x08$\x1a\"\x20Reserved\x20for\x20basecoin,\
\x20100\x20~\x20199\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03\x14\x08\x1c\
\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x03\x14\x20#\n\x0b\n\x04\x05\0\x02\
\x08\x12\x03\x15\x08$\n\x0c\n\x05\x05\0\x02\x08\x01\x12\x03\x15\x08\x19\
\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x03\x15\x20#\n\x0b\n\x04\x05\0\x02\t\
\x12\x03\x16\x08$\n\x0c\n\x05\x05\0\x02\t\x01\x12\x03\x16\x08\x1c\n\x0c\
\n\x05\x05\0\x02\t\x02\x12\x03\x16\x20#\n\x0b\n\x04\x05\0\x02\n\x12\x03\
\x17\x08$\n\x0c\n\x05\x05\0\x02\n\x01\x12\x03\x17\x08\x1d\n\x0c\n\x05\
\x05\0\x02\n\x02\x12\x03\x17\x20#\n\x0b\n\x04\x05\0\x02\x0b\x12\x03\x18\
\x08'\n\x0c\n\x05\x05\0\x02\x0b\x01\x12\x03\x18\x08\x20\n\x0c\n\x05\x05\
\0\x02\x0b\x02\x12\x03\x18#&\n\x0b\n\x04\x05\0\x02\x0c\x12\x03\x19\x08$\
\n\x0c\n\x05\x05\0\x02\x0c\x01\x12\x03\x19\x08\x18\n\x0c\n\x05\x05\0\x02\
\x0c\x02\x12\x03\x19\x20#\n\x0b\n\x04\x05\0\x02\r\x12\x03\x1a\x08$\n\x0c\
\n\x05\x05\0\x02\r\x01\x12\x03\x1a\x08\x19\n\x0c\n\x05\x05\0\x02\r\x02\
\x12\x03\x1a\x20#\n\x0b\n\x04\x05\0\x02\x0e\x12\x03\x1b\x08$\n\x0c\n\x05\
\x05\0\x02\x0e\x01\x12\x03\x1b\x08\x19\n\x0c\n\x05\x05\0\x02\x0e\x02\x12\
\x03\x1b\x20#\n\x0b\n\x04\x05\0\x02\x0f\x12\x03\x1c\x08$\n\x0c\n\x05\x05\
\0\x02\x0f\x01\x12\x03\x1c\x08\x1b\n\x0c\n\x05\x05\0\x02\x0f\x02\x12\x03\
\x1c\x20#\n\x0b\n\x04\x05\0\x02\x10\x12\x03\x1d\x08$\n\x0c\n\x05\x05\0\
\x02\x10\x01\x12\x03\x1d\x08\x1c\n\x0c\n\x05\x05\0\x02\x10\x02\x12\x03\
\x1d\x20#\n\x0b\n\x04\x05\0\x02\x11\x12\x03\x1e\x08$\n\x0c\n\x05\x05\0\
\x02\x11\x01\x12\x03\x1e\x08\x1a\n\x0c\n\x05\x05\0\x02\x11\x02\x12\x03\
\x1e\x20#\n\x0b\n\x04\x05\0\x02\x12\x12\x03\x1f\x08$\n\x0c\n\x05\x05\0\
\x02\x12\x01\x12\x03\x1f\x08\x19\n\x0c\n\x05\x05\0\x02\x12\x02\x12\x03\
\x1f\x20#\n\x0b\n\x04\x05\0\x02\x13\x12\x03\x20\x08$\n\x0c\n\x05\x05\0\
\x02\x13\x01\x12\x03\x20\x08\x19\n\x0c\n\x05\x05\0\x02\x13\x02\x12\x03\
\x20\x20#\n1\n\x04\x05\0\x02\x14\x12\x03#\x08$\x1a$\x20Reserved\x20for\
\x20governance,\x20200\x20~\x20299\n\n\x0c\n\x05\x05\0\x02\x14\x01\x12\
\x03#\x08\x18\n\x0c\n\x05\x05\0\x02\x14\x02\x12\x03#\x20#\n\x0b\n\x04\
\x05\0\x02\x15\x12\x03$\x08$\n\x0c\n\x05\x05\0\x02\x15\x01\x12\x03$\x08\
\x17\n\x0c\n\x05\x05\0\x02\x15\x02\x12\x03$\x20#\n\x0b\n\x04\x05\0\x02\
\x16\x12\x03%\x08$\n\x0c\n\x05\x05\0\x02\x16\x01\x12\x03%\x08\x1a\n\x0c\
\n\x05\x05\0\x02\x16\x02\x12\x03%\x20#\n\x0b\n\x04\x05\0\x02\x17\x12\x03\
&\x08$\n\x0c\n\x05\x05\0\x02\x17\x01\x12\x03&\x08\x19\n\x0c\n\x05\x05\0\
\x02\x17\x02\x12\x03&\x20#\n\x0b\n\x04\x05\0\x02\x18\x12\x03'\x08$\n\x0c\
\n\x05\x05\0\x02\x18\x01\x12\x03'\x08\x1a\n\x0c\n\x05\x05\0\x02\x18\x02\
\x12\x03'\x20#\n\x0b\n\x04\x05\0\x02\x19\x12\x03(\x08$\n\x0c\n\x05\x05\0\
\x02\x19\x01\x12\x03(\x08\x1c\n\x0c\n\x05\x05\0\x02\x19\x02\x12\x03(\x20\
#\n\x0b\n\x04\x05\0\x02\x1a\x12\x03)\x08$\n\x0c\n\x05\x05\0\x02\x1a\x01\
\x12\x03)\x08\x18\n\x0c\n\x05\x05\0\x02\x1a\x02\x12\x03)\x20#\n\x0b\n\
\x04\x05\0\x02\x1b\x12\x03*\x08$\n\x0c\n\x05\x05\0\x02\x1b\x01\x12\x03*\
\x08\x18\n\x0c\n\x05\x05\0\x02\x1b\x02\x12\x03*\x20#\n\x0b\n\x04\x05\0\
\x02\x1c\x12\x03+\x08$\n\x0c\n\x05\x05\0\x02\x1c\x01\x12\x03+\x08\x16\n\
\x0c\n\x05\x05\0\x02\x1c\x02\x12\x03+\x20#\n\x0b\n\x04\x05\0\x02\x1d\x12\
\x03,\x08$\n\x0c\n\x05\x05\0\x02\x1d\x01\x12\x03,\x08\x1d\n\x0c\n\x05\
\x05\0\x02\x1d\x02\x12\x03,\x20#\nD\n\x02\x04\0\x12\x043\0A\x0128-------\
---------------------------------\n\x20Request\x20types\n\n\n\n\x03\x04\
\0\x01\x12\x033\x08\x0f\n\x0c\n\x04\x04\0\x08\0\x12\x044\x08@\t\n\x0c\n\
\x05\x04\0\x08\0\x01\x12\x034\x0e\x13\n\x0b\n\x04\x04\0\x02\0\x12\x035\
\x10%\n\x0c\n\x05\x04\0\x02\0\x06\x12\x035\x10\x1b\n\x0c\n\x05\x04\0\x02\
\0\x01\x12\x035\x1c\x20\n\x0c\n\x05\x04\0\x02\0\x03\x12\x035#$\n\x0b\n\
\x04\x04\0\x02\x01\x12\x036\x10'\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x036\
\x10\x1c\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x036\x1d\"\n\x0c\n\x05\x04\0\
\x02\x01\x03\x12\x036%&\n\x0b\n\x04\x04\0\x02\x02\x12\x037\x10%\n\x0c\n\
\x05\x04\0\x02\x02\x06\x12\x037\x10\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\
\x12\x037\x1c\x20\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x037#$\n\x0b\n\x04\
\x04\0\x02\x03\x12\x038\x100\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x038\x10\
\x20\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x038!+\n\x0c\n\x05\x04\0\x02\x03\
\x03\x12\x038./\n\x0b\n\x04\x04\0\x02\x04\x12\x039\x100\n\x0c\n\x05\x04\
\0\x02\x04\x06\x12\x039\x10\x20\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x039!+\
\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x039./\n\x0b\n\x04\x04\0\x02\x05\x12\
\x03:\x10,\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03:\x10\x1e\n\x0c\n\x05\
\x04\0\x02\x05\x01\x12\x03:\x1f'\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03:*\
+\n\x0b\n\x04\x04\0\x02\x06\x12\x03;\x10)\n\x0c\n\x05\x04\0\x02\x06\x06\
\x12\x03;\x10\x1d\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03;\x1e$\n\x0c\n\
\x05\x04\0\x02\x06\x03\x12\x03;'(\n\x0b\n\x04\x04\0\x02\x07\x12\x03<\x10\
'\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03<\x10\x1c\n\x0c\n\x05\x04\0\x02\
\x07\x01\x12\x03<\x1d\"\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03<%&\n\x0b\n\
\x04\x04\0\x02\x08\x12\x03=\x100\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03=\
\x10\x20\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03=!+\n\x0c\n\x05\x04\0\x02\
\x08\x03\x12\x03=./\n\x0b\n\x04\x04\0\x02\t\x12\x03>\x103\n\x0c\n\x05\
\x04\0\x02\t\x06\x12\x03>\x10!\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03>\"-\n\
\x0c\n\x05\x04\0\x02\t\x03\x12\x03>02\n\x0b\n\x04\x04\0\x02\n\x12\x03?\
\x10/\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03?\x10\x1f\n\x0c\n\x05\x04\0\x02\
\n\x01\x12\x03?\x20)\n\x0c\n\x05\x04\0\x02\n\x03\x12\x03?,.\n\n\n\x02\
\x04\x01\x12\x04C\0E\x01\n\n\n\x03\x04\x01\x01\x12\x03C\x08\x13\n\x0b\n\
\x04\x04\x01\x02\0\x12\x03D\x08\x1b\n\r\n\x05\x04\x01\x02\0\x04\x12\x04D\
\x08C\x15\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03D\x08\x0e\n\x0c\n\x05\x04\
\x01\x02\0\x01\x12\x03D\x0f\x16\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03D\
\x19\x1a\n\n\n\x02\x04\x02\x12\x04G\0H\x01\n\n\n\x03\x04\x02\x01\x12\x03\
G\x08\x14\n\n\n\x02\x04\x03\x12\x04J\0K\x01\n\n\n\x03\x04\x03\x01\x12\
\x03J\x08\x13\n\n\n\x02\x04\x04\x12\x04M\0P\x01\n\n\n\x03\x04\x04\x01\
\x12\x03M\x08\x18\n\x0b\n\x04\x04\x04\x02\0\x12\x03N\x08\x17\n\r\n\x05\
\x04\x04\x02\0\x04\x12\x04N\x08M\x19\n\x0c\n\x05\x04\x04\x02\0\x05\x12\
\x03N\x08\x0e\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03N\x0f\x12\n\x0c\n\x05\
\x04\x04\x02\0\x03\x12\x03N\x15\x16\n\x0b\n\x04\x04\x04\x02\x01\x12\x03O\
\x08\x19\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04O\x08N\x17\n\x0c\n\x05\x04\
\x04\x02\x01\x05\x12\x03O\x08\x0e\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\
\x03O\x0f\x14\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03O\x17\x18\n\n\n\x02\
\x04\x05\x12\x04R\0T\x01\n\n\n\x03\x04\x05\x01\x12\x03R\x08\x18\n\x0b\n\
\x04\x04\x05\x02\0\x12\x03S\x08\x15\n\r\n\x05\x04\x05\x02\0\x04\x12\x04S\
\x08R\x19\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03S\x08\r\n\x0c\n\x05\x04\
\x05\x02\0\x01\x12\x03S\x0e\x10\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03S\
\x13\x14\n\n\n\x02\x04\x06\x12\x04V\0X\x01\n\n\n\x03\x04\x06\x01\x12\x03\
V\x08\x16\n\x0b\n\x04\x04\x06\x02\0\x12\x03W\x08\x15\n\r\n\x05\x04\x06\
\x02\0\x04\x12\x04W\x08V\x17\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03W\x08\
\r\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03W\x0e\x10\n\x0c\n\x05\x04\x06\
\x02\0\x03\x12\x03W\x13\x14\n\n\n\x02\x04\x07\x12\x04Z\0_\x01\n\n\n\x03\
\x04\x07\x01\x12\x03Z\x08\x14\n\x0b\n\x04\x04\x07\x02\0\x12\x03[\x08\x17\
\n\r\n\x05\x04\x07\x02\0\x04\x12\x04[\x08Z\x15\n\x0c\n\x05\x04\x07\x02\0\
\x05\x12\x03[\x08\r\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03[\x0e\x12\n\x0c\
\n\x05\x04\x07\x02\0\x03\x12\x03[\x15\x16\n\x0b\n\x04\x04\x07\x02\x01\
\x12\x03\\\x08\x18\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\\\x08[\x17\n\
\x0c\n\x05\x04\x07\x02\x01\x05\x12\x03\\\x08\x0e\n\x0c\n\x05\x04\x07\x02\
\x01\x01\x12\x03\\\x0f\x13\n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x03\\\x16\
\x17\n\x0b\n\x04\x04\x07\x02\x02\x12\x03]\x08\x1a\n\r\n\x05\x04\x07\x02\
\x02\x04\x12\x04]\x08\\\x18\n\x0c\n\x05\x04\x07\x02\x02\x05\x12\x03]\x08\
\x0e\n\x0c\n\x05\x04\x07\x02\x02\x01\x12\x03]\x0f\x15\n\x0c\n\x05\x04\
\x07\x02\x02\x03\x12\x03]\x18\x19\n\x0b\n\x04\x04\x07\x02\x03\x12\x03^\
\x08\x17\n\r\n\x05\x04\x07\x02\x03\x04\x12\x04^\x08]\x1a\n\x0c\n\x05\x04\
\x07\x02\x03\x05\x12\x03^\x08\x0c\n\x0c\n\x05\x04\x07\x02\x03\x01\x12\
\x03^\r\x12\n\x0c\n\x05\x04\x07\x02\x03\x03\x12\x03^\x15\x16\n\n\n\x02\
\x04\x08\x12\x04a\0b\x01\n\n\n\x03\x04\x08\x01\x12\x03a\x08\x15\n\n\n\
\x02\x04\t\x12\x04d\0f\x01\n\n\n\x03\x04\t\x01\x12\x03d\x08\x18\n\x0b\n\
\x04\x04\t\x02\0\x12\x03e\x08*\n\x0c\n\x05\x04\t\x02\0\x04\x12\x03e\x08\
\x10\n\x0c\n\x05\x04\t\x02\0\x06\x12\x03e\x11\x1a\n\x0c\n\x05\x04\t\x02\
\0\x01\x12\x03e\x1b%\n\x0c\n\x05\x04\t\x02\0\x03\x12\x03e()\n\n\n\x02\
\x04\n\x12\x04h\0k\x01\n\n\n\x03\x04\n\x01\x12\x03h\x08\x19\n\x0b\n\x04\
\x04\n\x02\0\x12\x03i\x08\x17\n\r\n\x05\x04\n\x02\0\x04\x12\x04i\x08h\
\x1a\n\x0c\n\x05\x04\n\x02\0\x05\x12\x03i\x08\r\n\x0c\n\x05\x04\n\x02\0\
\x01\x12\x03i\x0e\x12\n\x0c\n\x05\x04\n\x02\0\x03\x12\x03i\x15\x16\n\x0b\
\n\x04\x04\n\x02\x01\x12\x03j\x08\x1a\n\r\n\x05\x04\n\x02\x01\x04\x12\
\x04j\x08i\x17\n\x0c\n\x05\x04\n\x02\x01\x06\x12\x03j\x08\x0e\n\x0c\n\
\x05\x04\n\x02\x01\x01\x12\x03j\x0f\x15\n\x0c\n\x05\x04\n\x02\x01\x03\
\x12\x03j\x18\x19\n\n\n\x02\x04\x0b\x12\x04m\0o\x01\n\n\n\x03\x04\x0b\
\x01\x12\x03m\x08\x17\n\x0b\n\x04\x04\x0b\x02\0\x12\x03n\x08\x1a\n\r\n\
\x05\x04\x0b\x02\0\x04\x12\x04n\x08m\x18\n\x0c\n\x05\x04\x0b\x02\0\x05\
\x12\x03n\x08\x0e\n\x0c\n\x05\x04\x0b\x02\0\x01\x12\x03n\x0f\x15\n\x0c\n\
\x05\x04\x0b\x02\0\x03\x12\x03n\x18\x19\nF\n\x02\x04\x0c\x12\x05u\0\x84\
\x01\x0129----------------------------------------\n\x20Response\x20type\
s\n\n\n\n\x03\x04\x0c\x01\x12\x03u\x08\x10\n\r\n\x04\x04\x0c\x08\0\x12\
\x05v\x08\x83\x01\t\n\x0c\n\x05\x04\x0c\x08\0\x01\x12\x03v\x0e\x13\n\x0b\
\n\x04\x04\x0c\x02\0\x12\x03w\x100\n\x0c\n\x05\x04\x0c\x02\0\x06\x12\x03\
w\x10!\n\x0c\n\x05\x04\x0c\x02\0\x01\x12\x03w\"+\n\x0c\n\x05\x04\x0c\x02\
\0\x03\x12\x03w./\n\x0b\n\x04\x04\x0c\x02\x01\x12\x03x\x10&\n\x0c\n\x05\
\x04\x0c\x02\x01\x06\x12\x03x\x10\x1c\n\x0c\n\x05\x04\x0c\x02\x01\x01\
\x12\x03x\x1d!\n\x0c\n\x05\x04\x0c\x02\x01\x03\x12\x03x$%\n\x0b\n\x04\
\x04\x0c\x02\x02\x12\x03y\x10(\n\x0c\n\x05\x04\x0c\x02\x02\x06\x12\x03y\
\x10\x1d\n\x0c\n\x05\x04\x0c\x02\x02\x01\x12\x03y\x1e#\n\x0c\n\x05\x04\
\x0c\x02\x02\x03\x12\x03y&'\n\x0b\n\x04\x04\x0c\x02\x03\x12\x03z\x10&\n\
\x0c\n\x05\x04\x0c\x02\x03\x06\x12\x03z\x10\x1c\n\x0c\n\x05\x04\x0c\x02\
\x03\x01\x12\x03z\x1d!\n\x0c\n\x05\x04\x0c\x02\x03\x03\x12\x03z$%\n\x0b\
\n\x04\x04\x0c\x02\x04\x12\x03{\x101\n\x0c\n\x05\x04\x0c\x02\x04\x06\x12\
\x03{\x10!\n\x0c\n\x05\x04\x0c\x02\x04\x01\x12\x03{\",\n\x0c\n\x05\x04\
\x0c\x02\x04\x03\x12\x03{/0\n\x0b\n\x04\x04\x0c\x02\x05\x12\x03|\x101\n\
\x0c\n\x05\x04\x0c\x02\x05\x06\x12\x03|\x10!\n\x0c\n\x05\x04\x0c\x02\x05\
\x01\x12\x03|\",\n\x0c\n\x05\x04\x0c\x02\x05\x03\x12\x03|/0\n\x0b\n\x04\
\x04\x0c\x02\x06\x12\x03}\x10-\n\x0c\n\x05\x04\x0c\x02\x06\x06\x12\x03}\
\x10\x1f\n\x0c\n\x05\x04\x0c\x02\x06\x01\x12\x03}\x20(\n\x0c\n\x05\x04\
\x0c\x02\x06\x03\x12\x03}+,\n\x0b\n\x04\x04\x0c\x02\x07\x12\x03~\x10*\n\
\x0c\n\x05\x04\x0c\x02\x07\x06\x12\x03~\x10\x1e\n\x0c\n\x05\x04\x0c\x02\
\x07\x01\x12\x03~\x1f%\n\x0c\n\x05\x04\x0c\x02\x07\x03\x12\x03~()\n\x0b\
\n\x04\x04\x0c\x02\x08\x12\x03\x7f\x10(\n\x0c\n\x05\x04\x0c\x02\x08\x06\
\x12\x03\x7f\x10\x1d\n\x0c\n\x05\x04\x0c\x02\x08\x01\x12\x03\x7f\x1e#\n\
\x0c\n\x05\x04\x0c\x02\x08\x03\x12\x03\x7f&'\n\x0c\n\x04\x04\x0c\x02\t\
\x12\x04\x80\x01\x102\n\r\n\x05\x04\x0c\x02\t\x06\x12\x04\x80\x01\x10!\n\
\r\n\x05\x04\x0c\x02\t\x01\x12\x04\x80\x01\",\n\r\n\x05\x04\x0c\x02\t\
\x03\x12\x04\x80\x01/1\n\x0c\n\x04\x04\x0c\x02\n\x12\x04\x81\x01\x104\n\
\r\n\x05\x04\x0c\x02\n\x06\x12\x04\x81\x01\x10\"\n\r\n\x05\x04\x0c\x02\n\
\x01\x12\x04\x81\x01#.\n\r\n\x05\x04\x0c\x02\n\x03\x12\x04\x81\x0113\n\
\x0c\n\x04\x04\x0c\x02\x0b\x12\x04\x82\x01\x100\n\r\n\x05\x04\x0c\x02\
\x0b\x06\x12\x04\x82\x01\x10\x20\n\r\n\x05\x04\x0c\x02\x0b\x01\x12\x04\
\x82\x01!*\n\r\n\x05\x04\x0c\x02\x0b\x03\x12\x04\x82\x01-/\n\x0c\n\x02\
\x04\r\x12\x06\x86\x01\0\x88\x01\x01\n\x0b\n\x03\x04\r\x01\x12\x04\x86\
\x01\x08\x19\n\x0c\n\x04\x04\r\x02\0\x12\x04\x87\x01\x08\x19\n\x0f\n\x05\
\x04\r\x02\0\x04\x12\x06\x87\x01\x08\x86\x01\x1a\n\r\n\x05\x04\r\x02\0\
\x05\x12\x04\x87\x01\x08\x0e\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x87\x01\
\x0f\x14\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x87\x01\x17\x18\n\x0c\n\x02\
\x04\x0e\x12\x06\x8a\x01\0\x8c\x01\x01\n\x0b\n\x03\x04\x0e\x01\x12\x04\
\x8a\x01\x08\x14\n\x0c\n\x04\x04\x0e\x02\0\x12\x04\x8b\x01\x08\x1b\n\x0f\
\n\x05\x04\x0e\x02\0\x04\x12\x06\x8b\x01\x08\x8a\x01\x16\n\r\n\x05\x04\
\x0e\x02\0\x05\x12\x04\x8b\x01\x08\x0e\n\r\n\x05\x04\x0e\x02\0\x01\x12\
\x04\x8b\x01\x0f\x16\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x8b\x01\x19\x1a\
\n\x0c\n\x02\x04\x0f\x12\x06\x8e\x01\0\x8f\x01\x01\n\x0b\n\x03\x04\x0f\
\x01\x12\x04\x8e\x01\x08\x15\n\x0c\n\x02\x04\x10\x12\x06\x91\x01\0\x96\
\x01\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\x91\x01\x08\x14\n\x0c\n\x04\x04\
\x10\x02\0\x12\x04\x92\x01\x08\x18\n\x0f\n\x05\x04\x10\x02\0\x04\x12\x06\
\x92\x01\x08\x91\x01\x16\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x92\x01\x08\
\x0e\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x92\x01\x0f\x13\n\r\n\x05\x04\
\x10\x02\0\x03\x12\x04\x92\x01\x16\x17\n\x0c\n\x04\x04\x10\x02\x01\x12\
\x04\x93\x01\x08\x1b\n\x0f\n\x05\x04\x10\x02\x01\x04\x12\x06\x93\x01\x08\
\x92\x01\x18\n\r\n\x05\x04\x10\x02\x01\x05\x12\x04\x93\x01\x08\x0e\n\r\n\
\x05\x04\x10\x02\x01\x01\x12\x04\x93\x01\x0f\x16\n\r\n\x05\x04\x10\x02\
\x01\x03\x12\x04\x93\x01\x19\x1a\n\x0c\n\x04\x04\x10\x02\x02\x12\x04\x94\
\x01\x08%\n\x0f\n\x05\x04\x10\x02\x02\x04\x12\x06\x94\x01\x08\x93\x01\
\x1b\n\r\n\x05\x04\x10\x02\x02\x05\x12\x04\x94\x01\x08\x0e\n\r\n\x05\x04\
\x10\x02\x02\x01\x12\x04\x94\x01\x0f\x20\n\r\n\x05\x04\x10\x02\x02\x03\
\x12\x04\x94\x01#$\n\x0c\n\x04\x04\x10\x02\x03\x12\x04\x95\x01\x08&\n\
\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\x95\x01\x08\x94\x01%\n\r\n\x05\
\x04\x10\x02\x03\x05\x12\x04\x95\x01\x08\r\n\r\n\x05\x04\x10\x02\x03\x01\
\x12\x04\x95\x01\x0e!\n\r\n\x05\x04\x10\x02\x03\x03\x12\x04\x95\x01$%\n\
\x0c\n\x02\x04\x11\x12\x06\x98\x01\0\x9a\x01\x01\n\x0b\n\x03\x04\x11\x01\
\x12\x04\x98\x01\x08\x19\n\x0c\n\x04\x04\x11\x02\0\x12\x04\x99\x01\x08\
\x17\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\x99\x01\x08\x98\x01\x1a\n\r\n\
\x05\x04\x11\x02\0\x05\x12\x04\x99\x01\x08\x0e\n\r\n\x05\x04\x11\x02\0\
\x01\x12\x04\x99\x01\x0f\x12\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x99\x01\
\x15\x16\n\x0c\n\x02\x04\x12\x12\x06\x9c\x01\0\xa0\x01\x01\n\x0b\n\x03\
\x04\x12\x01\x12\x04\x9c\x01\x08\x19\n\x0c\n\x04\x04\x12\x02\0\x12\x04\
\x9d\x01\x08*\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\x9d\x01\x08\x9c\x01\
\x1a\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x9d\x01\x08\x10\n\r\n\x05\x04\
\x12\x02\0\x01\x12\x04\x9d\x01\x1a\x1e\n\r\n\x05\x04\x12\x02\0\x03\x12\
\x04\x9d\x01()\n\x0c\n\x04\x04\x12\x02\x01\x12\x04\x9e\x01\x08*\n\x0f\n\
\x05\x04\x12\x02\x01\x04\x12\x06\x9e\x01\x08\x9d\x01*\n\r\n\x05\x04\x12\
\x02\x01\x05\x12\x04\x9e\x01\x08\r\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\
\x9e\x01\x1a\x1e\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\x9e\x01()\n\x0c\n\
\x04\x04\x12\x02\x02\x12\x04\x9f\x01\x08*\n\x0f\n\x05\x04\x12\x02\x02\
\x04\x12\x06\x9f\x01\x08\x9e\x01*\n\r\n\x05\x04\x12\x02\x02\x05\x12\x04\
\x9f\x01\x08\x0e\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\x9f\x01\x1a\x1d\n\
\r\n\x05\x04\x12\x02\x02\x03\x12\x04\x9f\x01()\n\x0c\n\x02\x04\x13\x12\
\x06\xa2\x01\0\xa6\x01\x01\n\x0b\n\x03\x04\x13\x01\x12\x04\xa2\x01\x08\
\x17\n\x0c\n\x04\x04\x13\x02\0\x12\x04\xa3\x01\x08*\n\x0f\n\x05\x04\x13\
\x02\0\x04\x12\x06\xa3\x01\x08\xa2\x01\x18\n\r\n\x05\x04\x13\x02\0\x06\
\x12\x04\xa3\x01\x08\x10\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xa3\x01\x1a\
\x1e\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xa3\x01()\n\x0c\n\x04\x04\x13\
\x02\x01\x12\x04\xa4\x01\x08*\n\x0f\n\x05\x04\x13\x02\x01\x04\x12\x06\
\xa4\x01\x08\xa3\x01*\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xa4\x01\x08\
\r\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xa4\x01\x1a\x1e\n\r\n\x05\x04\
\x13\x02\x01\x03\x12\x04\xa4\x01()\n\x0c\n\x04\x04\x13\x02\x02\x12\x04\
\xa5\x01\x08*\n\x0f\n\x05\x04\x13\x02\x02\x04\x12\x06\xa5\x01\x08\xa4\
\x01*\n\r\n\x05\x04\x13\x02\x02\x05\x12\x04\xa5\x01\x08\x0e\n\r\n\x05\
\x04\x13\x02\x02\x01\x12\x04\xa5\x01\x1a\x1d\n\r\n\x05\x04\x13\x02\x02\
\x03\x12\x04\xa5\x01()\n\x0c\n\x02\x04\x14\x12\x06\xa8\x01\0\xb0\x01\x01\
\n\x0b\n\x03\x04\x14\x01\x12\x04\xa8\x01\x08\x15\n\x0c\n\x04\x04\x14\x02\
\0\x12\x04\xa9\x01\x08*\n\x0f\n\x05\x04\x14\x02\0\x04\x12\x06\xa9\x01\
\x08\xa8\x01\x16\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xa9\x01\x08\x10\n\r\
\n\x05\x04\x14\x02\0\x01\x12\x04\xa9\x01\x1a\x1e\n\r\n\x05\x04\x14\x02\0\
\x03\x12\x04\xa9\x01()\n\x0c\n\x04\x04\x14\x02\x01\x12\x04\xaa\x01\x08*\
\n\x0f\n\x05\x04\x14\x02\x01\x04\x12\x06\xaa\x01\x08\xa9\x01*\n\r\n\x05\
\x04\x14\x02\x01\x05\x12\x04\xaa\x01\x08\r\n\r\n\x05\x04\x14\x02\x01\x01\
\x12\x04\xaa\x01\x1a\x1f\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xaa\x01()\
\n\x0c\n\x04\x04\x14\x02\x02\x12\x04\xab\x01\x08*\n\x0f\n\x05\x04\x14\
\x02\x02\x04\x12\x06\xab\x01\x08\xaa\x01*\n\r\n\x05\x04\x14\x02\x02\x05\
\x12\x04\xab\x01\x08\r\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xab\x01\x1a\
\x1d\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xab\x01()\n\x0c\n\x04\x04\x14\
\x02\x03\x12\x04\xac\x01\x08*\n\x0f\n\x05\x04\x14\x02\x03\x04\x12\x06\
\xac\x01\x08\xab\x01*\n\r\n\x05\x04\x14\x02\x03\x05\x12\x04\xac\x01\x08\
\r\n\r\n\x05\x04\x14\x02\x03\x01\x12\x04\xac\x01\x1a\x1f\n\r\n\x05\x04\
\x14\x02\x03\x03\x12\x04\xac\x01()\n\x0c\n\x04\x04\x14\x02\x04\x12\x04\
\xad\x01\x08*\n\x0f\n\x05\x04\x14\x02\x04\x04\x12\x06\xad\x01\x08\xac\
\x01*\n\r\n\x05\x04\x14\x02\x04\x05\x12\x04\xad\x01\x08\r\n\r\n\x05\x04\
\x14\x02\x04\x01\x12\x04\xad\x01\x1a\x1f\n\r\n\x05\x04\x14\x02\x04\x03\
\x12\x04\xad\x01()\n\x0c\n\x04\x04\x14\x02\x05\x12\x04\xae\x01\x08*\n\
\x0f\n\x05\x04\x14\x02\x05\x04\x12\x06\xae\x01\x08\xad\x01*\n\r\n\x05\
\x04\x14\x02\x05\x05\x12\x04\xae\x01\x08\x0e\n\r\n\x05\x04\x14\x02\x05\
\x01\x12\x04\xae\x01\x1a\x20\n\r\n\x05\x04\x14\x02\x05\x03\x12\x04\xae\
\x01()\n\x0c\n\x04\x04\x14\x02\x06\x12\x04\xaf\x01\x08*\n\x0f\n\x05\x04\
\x14\x02\x06\x04\x12\x06\xaf\x01\x08\xae\x01*\n\r\n\x05\x04\x14\x02\x06\
\x05\x12\x04\xaf\x01\x08\x0e\n\r\n\x05\x04\x14\x02\x06\x01\x12\x04\xaf\
\x01\x1a\x1d\n\r\n\x05\x04\x14\x02\x06\x03\x12\x04\xaf\x01()\n\x0c\n\x02\
\x04\x15\x12\x06\xb2\x01\0\xb6\x01\x01\n\x0b\n\x03\x04\x15\x01\x12\x04\
\xb2\x01\x08\x16\n\x0c\n\x04\x04\x15\x02\0\x12\x04\xb3\x01\x08*\n\x0f\n\
\x05\x04\x15\x02\0\x04\x12\x06\xb3\x01\x08\xb2\x01\x17\n\r\n\x05\x04\x15\
\x02\0\x06\x12\x04\xb3\x01\x08\x10\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\
\xb3\x01\x1a\x1e\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xb3\x01()\n\x0c\n\
\x04\x04\x15\x02\x01\x12\x04\xb4\x01\x08*\n\x0f\n\x05\x04\x15\x02\x01\
\x04\x12\x06\xb4\x01\x08\xb3\x01*\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\
\xb4\x01\x08\r\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\xb4\x01\x1a\x1e\n\r\
\n\x05\x04\x15\x02\x01\x03\x12\x04\xb4\x01()\n\x0c\n\x04\x04\x15\x02\x02\
\x12\x04\xb5\x01\x08*\n\x0f\n\x05\x04\x15\x02\x02\x04\x12\x06\xb5\x01\
\x08\xb4\x01*\n\r\n\x05\x04\x15\x02\x02\x05\x12\x04\xb5\x01\x08\x0e\n\r\
\n\x05\x04\x15\x02\x02\x01\x12\x04\xb5\x01\x1a\x1d\n\r\n\x05\x04\x15\x02\
\x02\x03\x12\x04\xb5\x01()\n\x0c\n\x02\x04\x16\x12\x06\xb9\x01\0\xba\x01\
\x01\n\x0b\n\x03\x04\x16\x01\x12\x04\xb9\x01\x08\x19\n\x0c\n\x02\x04\x17\
\x12\x06\xbc\x01\0\xbd\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\x04\xbc\x01\
\x08\x1a\n\x0c\n\x02\x04\x18\x12\x06\xbf\x01\0\xc1\x01\x01\n\x0b\n\x03\
\x04\x18\x01\x12\x04\xbf\x01\x08\x18\n\x0c\n\x04\x04\x18\x02\0\x12\x04\
\xc0\x01\x08%\n\r\n\x05\x04\x18\x02\0\x04\x12\x04\xc0\x01\x08\x10\n\r\n\
\x05\x04\x18\x02\0\x06\x12\x04\xc0\x01\x11\x1a\n\r\n\x05\x04\x18\x02\0\
\x01\x12\x04\xc0\x01\x1b\x20\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xc0\x01\
#$\nI\n\x02\x04\x19\x12\x06\xc6\x01\0\xd0\x01\x012;---------------------\
-------------------\n\x20Blockchain\x20Types\n\n\x0b\n\x03\x04\x19\x01\
\x12\x04\xc6\x01\x08\x0e\n\x0c\n\x04\x04\x19\x02\0\x12\x04\xc7\x01\x08\
\x1c\n\x0f\n\x05\x04\x19\x02\0\x04\x12\x06\xc7\x01\x08\xc6\x01\x10\n\r\n\
\x05\x04\x19\x02\0\x05\x12\x04\xc7\x01\x08\x0e\n\r\n\x05\x04\x19\x02\0\
\x01\x12\x04\xc7\x01\x0f\x17\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xc7\x01\
\x1a\x1b\n\x0c\n\x04\x04\x19\x02\x01\x12\x04\xc8\x01\x08\x1a\n\x0f\n\x05\
\x04\x19\x02\x01\x04\x12\x06\xc8\x01\x08\xc7\x01\x1c\n\r\n\x05\x04\x19\
\x02\x01\x05\x12\x04\xc8\x01\x08\x0e\n\r\n\x05\x04\x19\x02\x01\x01\x12\
\x04\xc8\x01\x0f\x15\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\xc8\x01\x18\
\x19\n\x0c\n\x04\x04\x19\x02\x02\x12\x04\xc9\x01\x08\x18\n\x0f\n\x05\x04\
\x19\x02\x02\x04\x12\x06\xc9\x01\x08\xc8\x01\x1a\n\r\n\x05\x04\x19\x02\
\x02\x05\x12\x04\xc9\x01\x08\x0e\n\r\n\x05\x04\x19\x02\x02\x01\x12\x04\
\xc9\x01\x0f\x13\n\r\n\x05\x04\x19\x02\x02\x03\x12\x04\xc9\x01\x16\x17\n\
\x0c\n\x04\x04\x19\x02\x03\x12\x04\xca\x01\x08\x1b\n\x0f\n\x05\x04\x19\
\x02\x03\x04\x12\x06\xca\x01\x08\xc9\x01\x18\n\r\n\x05\x04\x19\x02\x03\
\x05\x12\x04\xca\x01\x08\x0e\n\r\n\x05\x04\x19\x02\x03\x01\x12\x04\xca\
\x01\x0f\x16\n\r\n\x05\x04\x19\x02\x03\x03\x12\x04\xca\x01\x19\x1a\n\x0c\
\n\x04\x04\x19\x02\x04\x12\x04\xcb\x01\x08\"\n\x0f\n\x05\x04\x19\x02\x04\
\x04\x12\x06\xcb\x01\x08\xca\x01\x1b\n\r\n\x05\x04\x19\x02\x04\x06\x12\
\x04\xcb\x01\x08\x0f\n\r\n\x05\x04\x19\x02\x04\x01\x12\x04\xcb\x01\x10\
\x1d\n\r\n\x05\x04\x19\x02\x04\x03\x12\x04\xcb\x01\x20!\n\x0c\n\x04\x04\
\x19\x02\x05\x12\x04\xcc\x01\x08#\n\x0f\n\x05\x04\x19\x02\x05\x04\x12\
\x06\xcc\x01\x08\xcb\x01\"\n\r\n\x05\x04\x19\x02\x05\x05\x12\x04\xcc\x01\
\x08\r\n\r\n\x05\x04\x19\x02\x05\x01\x12\x04\xcc\x01\x0e\x1e\n\r\n\x05\
\x04\x19\x02\x05\x03\x12\x04\xcc\x01!\"\n\x0c\n\x04\x04\x19\x02\x06\x12\
\x04\xcd\x01\x08\x1c\n\x0f\n\x05\x04\x19\x02\x06\x04\x12\x06\xcd\x01\x08\
\xcc\x01#\n\r\n\x05\x04\x19\x02\x06\x05\x12\x04\xcd\x01\x08\r\n\r\n\x05\
\x04\x19\x02\x06\x01\x12\x04\xcd\x01\x0e\x17\n\r\n\x05\x04\x19\x02\x06\
\x03\x12\x04\xcd\x01\x1a\x1b\n\x0c\n\x04\x04\x19\x02\x07\x12\x04\xce\x01\
\x08\"\n\x0f\n\x05\x04\x19\x02\x07\x04\x12\x06\xce\x01\x08\xcd\x01\x1c\n\
\r\n\x05\x04\x19\x02\x07\x05\x12\x04\xce\x01\x08\r\n\r\n\x05\x04\x19\x02\
\x07\x01\x12\x04\xce\x01\x0e\x1d\n\r\n\x05\x04\x19\x02\x07\x03\x12\x04\
\xce\x01\x20!\n\x0c\n\x04\x04\x19\x02\x08\x12\x04\xcf\x01\x08\x1b\n\x0f\
\n\x05\x04\x19\x02\x08\x04\x12\x06\xcf\x01\x08\xce\x01\"\n\r\n\x05\x04\
\x19\x02\x08\x05\x12\x04\xcf\x01\x08\r\n\r\n\x05\x04\x19\x02\x08\x01\x12\
\x04\xcf\x01\x0e\x16\n\r\n\x05\x04\x19\x02\x08\x03\x12\x04\xcf\x01\x19\
\x1a\n\x0c\n\x02\x04\x1a\x12\x06\xd2\x01\0\xd5\x01\x01\n\x0b\n\x03\x04\
\x1a\x01\x12\x04\xd2\x01\x08\x0f\n\x0c\n\x04\x04\x1a\x02\0\x12\x04\xd3\
\x01\x08\x17\n\x0f\n\x05\x04\x1a\x02\0\x04\x12\x06\xd3\x01\x08\xd2\x01\
\x11\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\xd3\x01\x08\r\n\r\n\x05\x04\x1a\
\x02\0\x01\x12\x04\xd3\x01\x0e\x12\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\
\xd3\x01\x15\x16\n\x0c\n\x04\x04\x1a\x02\x01\x12\x04\xd4\x01\x08\x20\n\
\x0f\n\x05\x04\x1a\x02\x01\x04\x12\x06\xd4\x01\x08\xd3\x01\x17\n\r\n\x05\
\x04\x1a\x02\x01\x06\x12\x04\xd4\x01\x08\x15\n\r\n\x05\x04\x1a\x02\x01\
\x01\x12\x04\xd4\x01\x16\x1b\n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xd4\
\x01\x1e\x1f\n\x0c\n\x02\x04\x1b\x12\x06\xd7\x01\0\xda\x01\x01\n\x0b\n\
\x03\x04\x1b\x01\x12\x04\xd7\x01\x08\x15\n\x0c\n\x04\x04\x1b\x02\0\x12\
\x04\xd8\x01\x08\x19\n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\xd8\x01\x08\
\xd7\x01\x17\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xd8\x01\x08\x0e\n\r\n\
\x05\x04\x1b\x02\0\x01\x12\x04\xd8\x01\x0f\x14\n\r\n\x05\x04\x1b\x02\0\
\x03\x12\x04\xd8\x01\x17\x18\n\x0c\n\x04\x04\x1b\x02\x01\x12\x04\xd9\x01\
\x08\x17\n\x0f\n\x05\x04\x1b\x02\x01\x04\x12\x06\xd9\x01\x08\xd8\x01\x19\
\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\xd9\x01\x08\r\n\r\n\x05\x04\x1b\
\x02\x01\x01\x12\x04\xd9\x01\x0e\x12\n\r\n\x05\x04\x1b\x02\x01\x03\x12\
\x04\xd9\x01\x15\x16\n\x0c\n\x02\x04\x1c\x12\x06\xdc\x01\0\xdf\x01\x01\n\
\x0b\n\x03\x04\x1c\x01\x12\x04\xdc\x01\x08\x11\n\x0c\n\x04\x04\x1c\x02\0\
\x12\x04\xdd\x01\x08\x19\n\x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\xdd\x01\
\x08\xdc\x01\x13\n\r\n\x05\x04\x1c\x02\0\x05\x12\x04\xdd\x01\x08\r\n\r\n\
\x05\x04\x1c\x02\0\x01\x12\x04\xdd\x01\x0e\x14\n\r\n\x05\x04\x1c\x02\0\
\x03\x12\x04\xdd\x01\x17\x18\n\x0c\n\x04\x04\x1c\x02\x01\x12\x04\xde\x01\
\x08\x19\n\x0f\n\x05\x04\x1c\x02\x01\x04\x12\x06\xde\x01\x08\xdd\x01\x19\
\n\r\n\x05\x04\x1c\x02\x01\x05\x12\x04\xde\x01\x08\x0e\n\r\n\x05\x04\x1c\
\x02\x01\x01\x12\x04\xde\x01\x0f\x14\n\r\n\x05\x04\x1c\x02\x01\x03\x12\
\x04\xde\x01\x17\x18\nK\n\x02\x06\0\x12\x06\xe4\x01\0\xf0\x01\x012=-----\
-----------------------------------\n\x20Service\x20Definition\n\n\x0b\n\
\x03\x06\0\x01\x12\x04\xe4\x01\x08\x17\n\x0c\n\x04\x06\0\x02\0\x12\x04\
\xe5\x01\x086\n\r\n\x05\x06\0\x02\0\x01\x12\x04\xe5\x01\x0c\x10\n\r\n\
\x05\x06\0\x02\0\x02\x12\x04\xe5\x01\x11\x1c\n\r\n\x05\x06\0\x02\0\x03\
\x12\x04\xe5\x01'3\n\x0c\n\x04\x06\0\x02\x01\x12\x04\xe6\x01\x088\n\r\n\
\x05\x06\0\x02\x01\x01\x12\x04\xe6\x01\x0c\x11\n\r\n\x05\x06\0\x02\x01\
\x02\x12\x04\xe6\x01\x12\x1e\n\r\n\x05\x06\0\x02\x01\x03\x12\x04\xe6\x01\
)6\n\x0c\n\x04\x06\0\x02\x02\x12\x04\xe7\x01\x085\n\r\n\x05\x06\0\x02\
\x02\x01\x12\x04\xe7\x01\x0c\x10\n\r\n\x05\x06\0\x02\x02\x02\x12\x04\xe7\
\x01\x11\x1c\n\r\n\x05\x06\0\x02\x02\x03\x12\x04\xe7\x01'3\n\x0c\n\x04\
\x06\0\x02\x03\x12\x04\xe8\x01\x08D\n\r\n\x05\x06\0\x02\x03\x01\x12\x04\
\xe8\x01\x0c\x15\n\r\n\x05\x06\0\x02\x03\x02\x12\x04\xe8\x01\x16&\n\r\n\
\x05\x06\0\x02\x03\x03\x12\x04\xe8\x011B\n\x0c\n\x04\x06\0\x02\x04\x12\
\x04\xe9\x01\x08D\n\r\n\x05\x06\0\x02\x04\x01\x12\x04\xe9\x01\x0c\x15\n\
\r\n\x05\x06\0\x02\x04\x02\x12\x04\xe9\x01\x16&\n\r\n\x05\x06\0\x02\x04\
\x03\x12\x04\xe9\x011B\n\x0c\n\x04\x06\0\x02\x05\x12\x04\xea\x01\x08>\n\
\r\n\x05\x06\0\x02\x05\x01\x12\x04\xea\x01\x0c\x13\n\r\n\x05\x06\0\x02\
\x05\x02\x12\x04\xea\x01\x14\"\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\xea\
\x01-<\n\x0c\n\x04\x06\0\x02\x06\x12\x04\xeb\x01\x088\n\r\n\x05\x06\0\
\x02\x06\x01\x12\x04\xeb\x01\x0c\x11\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\
\xeb\x01\x12\x1e\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\xeb\x01)6\n\x0c\n\
\x04\x06\0\x02\x07\x12\x04\xec\x01\x08;\n\r\n\x05\x06\0\x02\x07\x01\x12\
\x04\xec\x01\x0c\x12\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xec\x01\x13\x20\
\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xec\x01+9\n\x0c\n\x04\x06\0\x02\x08\
\x12\x04\xed\x01\x08D\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xed\x01\x0c\
\x15\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xed\x01\x16&\n\r\n\x05\x06\0\
\x02\x08\x03\x12\x04\xed\x011B\n\x0c\n\x04\x06\0\x02\t\x12\x04\xee\x01\
\x08G\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xee\x01\x0c\x16\n\r\n\x05\x06\0\
\x02\t\x02\x12\x04\xee\x01\x17(\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xee\
\x013E\n\x0c\n\x04\x06\0\x02\n\x12\x04\xef\x01\x08A\n\r\n\x05\x06\0\x02\
\n\x01\x12\x04\xef\x01\x0c\x14\n\r\n\x05\x06\0\x02\n\x02\x12\x04\xef\x01\
\x15$\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xef\x01/?b\x06proto3\
";
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()
})
}
}