#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![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(unused_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct Collection {
pub name: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Collection {
fn default() -> &'a Collection {
<Collection as ::protobuf::Message>::default_instance()
}
}
impl Collection {
pub fn new() -> Collection {
::std::default::Default::default()
}
pub fn get_name(&self) -> &str {
&self.name
}
pub fn clear_name(&mut self) {
self.name.clear();
}
pub fn set_name(&mut self, v: ::std::string::String) {
self.name = v;
}
pub fn mut_name(&mut self) -> &mut ::std::string::String {
&mut self.name
}
pub fn take_name(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.name, ::std::string::String::new())
}
}
impl ::protobuf::Message for Collection {
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.name)?;
},
_ => {
::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.name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.name);
}
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.name.is_empty() {
os.write_string(1, &self.name)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Collection {
Collection::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"name",
|m: &Collection| { &m.name },
|m: &mut Collection| { &mut m.name },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Collection>(
"Collection",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Collection {
static instance: ::protobuf::rt::LazyV2<Collection> = ::protobuf::rt::LazyV2::INIT;
instance.get(Collection::new)
}
}
impl ::protobuf::Clear for Collection {
fn clear(&mut self) {
self.name.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Collection {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Collection {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct State {
pub key: ::std::string::String,
pub value: ::std::vec::Vec<u8>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a State {
fn default() -> &'a State {
<State as ::protobuf::Message>::default_instance()
}
}
impl State {
pub fn new() -> State {
::std::default::Default::default()
}
pub fn get_key(&self) -> &str {
&self.key
}
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_value(&self) -> &[u8] {
&self.value
}
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())
}
}
impl ::protobuf::Message for State {
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_bytes_into(wire_type, is, &mut self.value)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[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::bytes_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_bytes(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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> State {
State::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"key",
|m: &State| { &m.key },
|m: &mut State| { &mut m.key },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"value",
|m: &State| { &m.value },
|m: &mut State| { &mut m.value },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<State>(
"State",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static State {
static instance: ::protobuf::rt::LazyV2<State> = ::protobuf::rt::LazyV2::INIT;
instance.get(State::new)
}
}
impl ::protobuf::Clear for State {
fn clear(&mut self) {
self.key.clear();
self.value.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for State {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for State {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct StateHistory {
pub key: ::std::string::String,
pub value: ::std::vec::Vec<u8>,
pub transaction_id: ::std::string::String,
pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub is_delete: bool,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a StateHistory {
fn default() -> &'a StateHistory {
<StateHistory as ::protobuf::Message>::default_instance()
}
}
impl StateHistory {
pub fn new() -> StateHistory {
::std::default::Default::default()
}
pub fn get_key(&self) -> &str {
&self.key
}
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_value(&self) -> &[u8] {
&self.value
}
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_transaction_id(&self) -> &str {
&self.transaction_id
}
pub fn clear_transaction_id(&mut self) {
self.transaction_id.clear();
}
pub fn set_transaction_id(&mut self, v: ::std::string::String) {
self.transaction_id = v;
}
pub fn mut_transaction_id(&mut self) -> &mut ::std::string::String {
&mut self.transaction_id
}
pub fn take_transaction_id(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.transaction_id, ::std::string::String::new())
}
pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp {
self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_timestamp(&mut self) {
self.timestamp.clear();
}
pub fn has_timestamp(&self) -> bool {
self.timestamp.is_some()
}
pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.timestamp = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.timestamp.is_none() {
self.timestamp.set_default();
}
self.timestamp.as_mut().unwrap()
}
pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_is_delete(&self) -> bool {
self.is_delete
}
pub fn clear_is_delete(&mut self) {
self.is_delete = false;
}
pub fn set_is_delete(&mut self, v: bool) {
self.is_delete = v;
}
}
impl ::protobuf::Message for StateHistory {
fn is_initialized(&self) -> bool {
for v in &self.timestamp {
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.key)?;
},
2 => {
::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.transaction_id)?;
},
4 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?;
},
5 => {
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.is_delete = 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.key.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.key);
}
if !self.value.is_empty() {
my_size += ::protobuf::rt::bytes_size(2, &self.value);
}
if !self.transaction_id.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.transaction_id);
}
if let Some(ref v) = self.timestamp.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if self.is_delete != 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.key.is_empty() {
os.write_string(1, &self.key)?;
}
if !self.value.is_empty() {
os.write_bytes(2, &self.value)?;
}
if !self.transaction_id.is_empty() {
os.write_string(3, &self.transaction_id)?;
}
if let Some(ref v) = self.timestamp.as_ref() {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if self.is_delete != false {
os.write_bool(5, self.is_delete)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> StateHistory {
StateHistory::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"key",
|m: &StateHistory| { &m.key },
|m: &mut StateHistory| { &mut m.key },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"value",
|m: &StateHistory| { &m.value },
|m: &mut StateHistory| { &mut m.value },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"transaction_id",
|m: &StateHistory| { &m.transaction_id },
|m: &mut StateHistory| { &mut m.transaction_id },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"timestamp",
|m: &StateHistory| { &m.timestamp },
|m: &mut StateHistory| { &mut m.timestamp },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"is_delete",
|m: &StateHistory| { &m.is_delete },
|m: &mut StateHistory| { &mut m.is_delete },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<StateHistory>(
"StateHistory",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static StateHistory {
static instance: ::protobuf::rt::LazyV2<StateHistory> = ::protobuf::rt::LazyV2::INIT;
instance.get(StateHistory::new)
}
}
impl ::protobuf::Clear for StateHistory {
fn clear(&mut self) {
self.key.clear();
self.value.clear();
self.transaction_id.clear();
self.timestamp.clear();
self.is_delete = false;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for StateHistory {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for StateHistory {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct KeyRangeQuery {
pub start_key: ::std::string::String,
pub end_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a KeyRangeQuery {
fn default() -> &'a KeyRangeQuery {
<KeyRangeQuery as ::protobuf::Message>::default_instance()
}
}
impl KeyRangeQuery {
pub fn new() -> KeyRangeQuery {
::std::default::Default::default()
}
pub fn get_start_key(&self) -> &str {
&self.start_key
}
pub fn clear_start_key(&mut self) {
self.start_key.clear();
}
pub fn set_start_key(&mut self, v: ::std::string::String) {
self.start_key = v;
}
pub fn mut_start_key(&mut self) -> &mut ::std::string::String {
&mut self.start_key
}
pub fn take_start_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.start_key, ::std::string::String::new())
}
pub fn get_end_key(&self) -> &str {
&self.end_key
}
pub fn clear_end_key(&mut self) {
self.end_key.clear();
}
pub fn set_end_key(&mut self, v: ::std::string::String) {
self.end_key = v;
}
pub fn mut_end_key(&mut self) -> &mut ::std::string::String {
&mut self.end_key
}
pub fn take_end_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.end_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for KeyRangeQuery {
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.start_key)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.end_key)?;
},
_ => {
::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.start_key.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.start_key);
}
if !self.end_key.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.end_key);
}
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.start_key.is_empty() {
os.write_string(1, &self.start_key)?;
}
if !self.end_key.is_empty() {
os.write_string(2, &self.end_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> KeyRangeQuery {
KeyRangeQuery::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"start_key",
|m: &KeyRangeQuery| { &m.start_key },
|m: &mut KeyRangeQuery| { &mut m.start_key },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"end_key",
|m: &KeyRangeQuery| { &m.end_key },
|m: &mut KeyRangeQuery| { &mut m.end_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<KeyRangeQuery>(
"KeyRangeQuery",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static KeyRangeQuery {
static instance: ::protobuf::rt::LazyV2<KeyRangeQuery> = ::protobuf::rt::LazyV2::INIT;
instance.get(KeyRangeQuery::new)
}
}
impl ::protobuf::Clear for KeyRangeQuery {
fn clear(&mut self) {
self.start_key.clear();
self.end_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for KeyRangeQuery {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for KeyRangeQuery {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct RichQuery {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a RichQuery {
fn default() -> &'a RichQuery {
<RichQuery as ::protobuf::Message>::default_instance()
}
}
impl RichQuery {
pub fn new() -> RichQuery {
::std::default::Default::default()
}
}
impl ::protobuf::Message for RichQuery {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> RichQuery {
RichQuery::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<RichQuery>(
"RichQuery",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static RichQuery {
static instance: ::protobuf::rt::LazyV2<RichQuery> = ::protobuf::rt::LazyV2::INIT;
instance.get(RichQuery::new)
}
}
impl ::protobuf::Clear for RichQuery {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for RichQuery {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RichQuery {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CreateStateRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state: ::protobuf::SingularPtrField<State>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CreateStateRequest {
fn default() -> &'a CreateStateRequest {
<CreateStateRequest as ::protobuf::Message>::default_instance()
}
}
impl CreateStateRequest {
pub fn new() -> CreateStateRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state(&self) -> &State {
self.state.as_ref().unwrap_or_else(|| <State as ::protobuf::Message>::default_instance())
}
pub fn clear_state(&mut self) {
self.state.clear();
}
pub fn has_state(&self) -> bool {
self.state.is_some()
}
pub fn set_state(&mut self, v: State) {
self.state = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_state(&mut self) -> &mut State {
if self.state.is_none() {
self.state.set_default();
}
self.state.as_mut().unwrap()
}
pub fn take_state(&mut self) -> State {
self.state.take().unwrap_or_else(|| State::new())
}
}
impl ::protobuf::Message for CreateStateRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
if !v.is_initialized() {
return false;
}
};
for v in &self.state {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.state)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.state.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 let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if let Some(ref v) = self.state.as_ref() {
os.write_tag(3, ::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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CreateStateRequest {
CreateStateRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &CreateStateRequest| { &m.context },
|m: &mut CreateStateRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &CreateStateRequest| { &m.collection },
|m: &mut CreateStateRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<State>>(
"state",
|m: &CreateStateRequest| { &m.state },
|m: &mut CreateStateRequest| { &mut m.state },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateStateRequest>(
"CreateStateRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CreateStateRequest {
static instance: ::protobuf::rt::LazyV2<CreateStateRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(CreateStateRequest::new)
}
}
impl ::protobuf::Clear for CreateStateRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CreateStateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CreateStateRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct CreateStateResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a CreateStateResponse {
fn default() -> &'a CreateStateResponse {
<CreateStateResponse as ::protobuf::Message>::default_instance()
}
}
impl CreateStateResponse {
pub fn new() -> CreateStateResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for CreateStateResponse {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> CreateStateResponse {
CreateStateResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateStateResponse>(
"CreateStateResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static CreateStateResponse {
static instance: ::protobuf::rt::LazyV2<CreateStateResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(CreateStateResponse::new)
}
}
impl ::protobuf::Clear for CreateStateResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for CreateStateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CreateStateResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ReadStateRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ReadStateRequest {
fn default() -> &'a ReadStateRequest {
<ReadStateRequest as ::protobuf::Message>::default_instance()
}
}
impl ReadStateRequest {
pub fn new() -> ReadStateRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for ReadStateRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ReadStateRequest {
ReadStateRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &ReadStateRequest| { &m.context },
|m: &mut ReadStateRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &ReadStateRequest| { &m.collection },
|m: &mut ReadStateRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &ReadStateRequest| { &m.state_key },
|m: &mut ReadStateRequest| { &mut m.state_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ReadStateRequest>(
"ReadStateRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ReadStateRequest {
static instance: ::protobuf::rt::LazyV2<ReadStateRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ReadStateRequest::new)
}
}
impl ::protobuf::Clear for ReadStateRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ReadStateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ReadStateRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ReadStateResponse {
pub state: ::protobuf::SingularPtrField<State>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ReadStateResponse {
fn default() -> &'a ReadStateResponse {
<ReadStateResponse as ::protobuf::Message>::default_instance()
}
}
impl ReadStateResponse {
pub fn new() -> ReadStateResponse {
::std::default::Default::default()
}
pub fn get_state(&self) -> &State {
self.state.as_ref().unwrap_or_else(|| <State as ::protobuf::Message>::default_instance())
}
pub fn clear_state(&mut self) {
self.state.clear();
}
pub fn has_state(&self) -> bool {
self.state.is_some()
}
pub fn set_state(&mut self, v: State) {
self.state = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_state(&mut self) -> &mut State {
if self.state.is_none() {
self.state.set_default();
}
self.state.as_mut().unwrap()
}
pub fn take_state(&mut self) -> State {
self.state.take().unwrap_or_else(|| State::new())
}
}
impl ::protobuf::Message for ReadStateResponse {
fn is_initialized(&self) -> bool {
for v in &self.state {
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_message_into(wire_type, is, &mut self.state)?;
},
_ => {
::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 Some(ref v) = self.state.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 let Some(ref v) = self.state.as_ref() {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ReadStateResponse {
ReadStateResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<State>>(
"state",
|m: &ReadStateResponse| { &m.state },
|m: &mut ReadStateResponse| { &mut m.state },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ReadStateResponse>(
"ReadStateResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ReadStateResponse {
static instance: ::protobuf::rt::LazyV2<ReadStateResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ReadStateResponse::new)
}
}
impl ::protobuf::Clear for ReadStateResponse {
fn clear(&mut self) {
self.state.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ReadStateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ReadStateResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct UpdateStateRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state: ::protobuf::SingularPtrField<State>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a UpdateStateRequest {
fn default() -> &'a UpdateStateRequest {
<UpdateStateRequest as ::protobuf::Message>::default_instance()
}
}
impl UpdateStateRequest {
pub fn new() -> UpdateStateRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state(&self) -> &State {
self.state.as_ref().unwrap_or_else(|| <State as ::protobuf::Message>::default_instance())
}
pub fn clear_state(&mut self) {
self.state.clear();
}
pub fn has_state(&self) -> bool {
self.state.is_some()
}
pub fn set_state(&mut self, v: State) {
self.state = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_state(&mut self) -> &mut State {
if self.state.is_none() {
self.state.set_default();
}
self.state.as_mut().unwrap()
}
pub fn take_state(&mut self) -> State {
self.state.take().unwrap_or_else(|| State::new())
}
}
impl ::protobuf::Message for UpdateStateRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
if !v.is_initialized() {
return false;
}
};
for v in &self.state {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.state)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.state.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 let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if let Some(ref v) = self.state.as_ref() {
os.write_tag(3, ::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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> UpdateStateRequest {
UpdateStateRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &UpdateStateRequest| { &m.context },
|m: &mut UpdateStateRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &UpdateStateRequest| { &m.collection },
|m: &mut UpdateStateRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<State>>(
"state",
|m: &UpdateStateRequest| { &m.state },
|m: &mut UpdateStateRequest| { &mut m.state },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateStateRequest>(
"UpdateStateRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static UpdateStateRequest {
static instance: ::protobuf::rt::LazyV2<UpdateStateRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(UpdateStateRequest::new)
}
}
impl ::protobuf::Clear for UpdateStateRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for UpdateStateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UpdateStateRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct UpdateStateResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a UpdateStateResponse {
fn default() -> &'a UpdateStateResponse {
<UpdateStateResponse as ::protobuf::Message>::default_instance()
}
}
impl UpdateStateResponse {
pub fn new() -> UpdateStateResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for UpdateStateResponse {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> UpdateStateResponse {
UpdateStateResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateStateResponse>(
"UpdateStateResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static UpdateStateResponse {
static instance: ::protobuf::rt::LazyV2<UpdateStateResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(UpdateStateResponse::new)
}
}
impl ::protobuf::Clear for UpdateStateResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for UpdateStateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UpdateStateResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeleteStateRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeleteStateRequest {
fn default() -> &'a DeleteStateRequest {
<DeleteStateRequest as ::protobuf::Message>::default_instance()
}
}
impl DeleteStateRequest {
pub fn new() -> DeleteStateRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for DeleteStateRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeleteStateRequest {
DeleteStateRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &DeleteStateRequest| { &m.context },
|m: &mut DeleteStateRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &DeleteStateRequest| { &m.collection },
|m: &mut DeleteStateRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &DeleteStateRequest| { &m.state_key },
|m: &mut DeleteStateRequest| { &mut m.state_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteStateRequest>(
"DeleteStateRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeleteStateRequest {
static instance: ::protobuf::rt::LazyV2<DeleteStateRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeleteStateRequest::new)
}
}
impl ::protobuf::Clear for DeleteStateRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeleteStateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeleteStateRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct DeleteStateResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a DeleteStateResponse {
fn default() -> &'a DeleteStateResponse {
<DeleteStateResponse as ::protobuf::Message>::default_instance()
}
}
impl DeleteStateResponse {
pub fn new() -> DeleteStateResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for DeleteStateResponse {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> DeleteStateResponse {
DeleteStateResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteStateResponse>(
"DeleteStateResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static DeleteStateResponse {
static instance: ::protobuf::rt::LazyV2<DeleteStateResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(DeleteStateResponse::new)
}
}
impl ::protobuf::Clear for DeleteStateResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for DeleteStateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeleteStateResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ExistsStateRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExistsStateRequest {
fn default() -> &'a ExistsStateRequest {
<ExistsStateRequest as ::protobuf::Message>::default_instance()
}
}
impl ExistsStateRequest {
pub fn new() -> ExistsStateRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for ExistsStateRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExistsStateRequest {
ExistsStateRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &ExistsStateRequest| { &m.context },
|m: &mut ExistsStateRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &ExistsStateRequest| { &m.collection },
|m: &mut ExistsStateRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &ExistsStateRequest| { &m.state_key },
|m: &mut ExistsStateRequest| { &mut m.state_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExistsStateRequest>(
"ExistsStateRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExistsStateRequest {
static instance: ::protobuf::rt::LazyV2<ExistsStateRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExistsStateRequest::new)
}
}
impl ::protobuf::Clear for ExistsStateRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExistsStateRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExistsStateRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct ExistsStateResponse {
pub exists: bool,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ExistsStateResponse {
fn default() -> &'a ExistsStateResponse {
<ExistsStateResponse as ::protobuf::Message>::default_instance()
}
}
impl ExistsStateResponse {
pub fn new() -> ExistsStateResponse {
::std::default::Default::default()
}
pub fn get_exists(&self) -> bool {
self.exists
}
pub fn clear_exists(&mut self) {
self.exists = false;
}
pub fn set_exists(&mut self, v: bool) {
self.exists = v;
}
}
impl ::protobuf::Message for ExistsStateResponse {
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_bool()?;
self.exists = 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.exists != 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.exists != false {
os.write_bool(1, self.exists)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ExistsStateResponse {
ExistsStateResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
"exists",
|m: &ExistsStateResponse| { &m.exists },
|m: &mut ExistsStateResponse| { &mut m.exists },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ExistsStateResponse>(
"ExistsStateResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ExistsStateResponse {
static instance: ::protobuf::rt::LazyV2<ExistsStateResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(ExistsStateResponse::new)
}
}
impl ::protobuf::Clear for ExistsStateResponse {
fn clear(&mut self) {
self.exists = false;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ExistsStateResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ExistsStateResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetStatesRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub query: ::std::option::Option<GetStatesRequest_oneof_query>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetStatesRequest {
fn default() -> &'a GetStatesRequest {
<GetStatesRequest as ::protobuf::Message>::default_instance()
}
}
#[derive(Clone,PartialEq,Debug)]
pub enum GetStatesRequest_oneof_query {
by_key_range(KeyRangeQuery),
by_rich_query(RichQuery),
}
impl GetStatesRequest {
pub fn new() -> GetStatesRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_by_key_range(&self) -> &KeyRangeQuery {
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(ref v)) => v,
_ => <KeyRangeQuery as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_by_key_range(&mut self) {
self.query = ::std::option::Option::None;
}
pub fn has_by_key_range(&self) -> bool {
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(..)) => true,
_ => false,
}
}
pub fn set_by_key_range(&mut self, v: KeyRangeQuery) {
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(v))
}
pub fn mut_by_key_range(&mut self) -> &mut KeyRangeQuery {
if let ::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(_)) = self.query {
} else {
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(KeyRangeQuery::new()));
}
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_by_key_range(&mut self) -> KeyRangeQuery {
if self.has_by_key_range() {
match self.query.take() {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(v)) => v,
_ => panic!(),
}
} else {
KeyRangeQuery::new()
}
}
pub fn get_by_rich_query(&self) -> &RichQuery {
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(ref v)) => v,
_ => <RichQuery as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_by_rich_query(&mut self) {
self.query = ::std::option::Option::None;
}
pub fn has_by_rich_query(&self) -> bool {
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(..)) => true,
_ => false,
}
}
pub fn set_by_rich_query(&mut self, v: RichQuery) {
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(v))
}
pub fn mut_by_rich_query(&mut self) -> &mut RichQuery {
if let ::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(_)) = self.query {
} else {
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(RichQuery::new()));
}
match self.query {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_by_rich_query(&mut self) -> RichQuery {
if self.has_by_rich_query() {
match self.query.take() {
::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(v)) => v,
_ => panic!(),
}
} else {
RichQuery::new()
}
}
}
impl ::protobuf::Message for GetStatesRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
if !v.is_initialized() {
return false;
}
};
if let Some(GetStatesRequest_oneof_query::by_key_range(ref v)) = self.query {
if !v.is_initialized() {
return false;
}
}
if let Some(GetStatesRequest_oneof_query::by_rich_query(ref v)) = self.query {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_key_range(is.read_message()?));
},
4 => {
if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
self.query = ::std::option::Option::Some(GetStatesRequest_oneof_query::by_rich_query(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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let ::std::option::Option::Some(ref v) = self.query {
match v {
&GetStatesRequest_oneof_query::by_key_range(ref v) => {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
},
&GetStatesRequest_oneof_query::by_rich_query(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 Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if let ::std::option::Option::Some(ref v) = self.query {
match v {
&GetStatesRequest_oneof_query::by_key_range(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)?;
},
&GetStatesRequest_oneof_query::by_rich_query(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)?;
},
};
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetStatesRequest {
GetStatesRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &GetStatesRequest| { &m.context },
|m: &mut GetStatesRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &GetStatesRequest| { &m.collection },
|m: &mut GetStatesRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, KeyRangeQuery>(
"by_key_range",
GetStatesRequest::has_by_key_range,
GetStatesRequest::get_by_key_range,
));
fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RichQuery>(
"by_rich_query",
GetStatesRequest::has_by_rich_query,
GetStatesRequest::get_by_rich_query,
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetStatesRequest>(
"GetStatesRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetStatesRequest {
static instance: ::protobuf::rt::LazyV2<GetStatesRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetStatesRequest::new)
}
}
impl ::protobuf::Clear for GetStatesRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.query = ::std::option::Option::None;
self.query = ::std::option::Option::None;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetStatesRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetStatesRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetStatesResponse {
pub states: ::protobuf::RepeatedField<State>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetStatesResponse {
fn default() -> &'a GetStatesResponse {
<GetStatesResponse as ::protobuf::Message>::default_instance()
}
}
impl GetStatesResponse {
pub fn new() -> GetStatesResponse {
::std::default::Default::default()
}
pub fn get_states(&self) -> &[State] {
&self.states
}
pub fn clear_states(&mut self) {
self.states.clear();
}
pub fn set_states(&mut self, v: ::protobuf::RepeatedField<State>) {
self.states = v;
}
pub fn mut_states(&mut self) -> &mut ::protobuf::RepeatedField<State> {
&mut self.states
}
pub fn take_states(&mut self) -> ::protobuf::RepeatedField<State> {
::std::mem::replace(&mut self.states, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for GetStatesResponse {
fn is_initialized(&self) -> bool {
for v in &self.states {
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.states)?;
},
_ => {
::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.states {
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.states {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetStatesResponse {
GetStatesResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<State>>(
"states",
|m: &GetStatesResponse| { &m.states },
|m: &mut GetStatesResponse| { &mut m.states },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetStatesResponse>(
"GetStatesResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetStatesResponse {
static instance: ::protobuf::rt::LazyV2<GetStatesResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetStatesResponse::new)
}
}
impl ::protobuf::Clear for GetStatesResponse {
fn clear(&mut self) {
self.states.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetStatesResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetStatesResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetHashRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetHashRequest {
fn default() -> &'a GetHashRequest {
<GetHashRequest as ::protobuf::Message>::default_instance()
}
}
impl GetHashRequest {
pub fn new() -> GetHashRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for GetHashRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetHashRequest {
GetHashRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &GetHashRequest| { &m.context },
|m: &mut GetHashRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &GetHashRequest| { &m.collection },
|m: &mut GetHashRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &GetHashRequest| { &m.state_key },
|m: &mut GetHashRequest| { &mut m.state_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetHashRequest>(
"GetHashRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetHashRequest {
static instance: ::protobuf::rt::LazyV2<GetHashRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetHashRequest::new)
}
}
impl ::protobuf::Clear for GetHashRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetHashRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetHashRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetHashResponse {
pub hash: ::std::vec::Vec<u8>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetHashResponse {
fn default() -> &'a GetHashResponse {
<GetHashResponse as ::protobuf::Message>::default_instance()
}
}
impl GetHashResponse {
pub fn new() -> GetHashResponse {
::std::default::Default::default()
}
pub fn get_hash(&self) -> &[u8] {
&self.hash
}
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())
}
}
impl ::protobuf::Message for GetHashResponse {
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.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.hash.is_empty() {
my_size += ::protobuf::rt::bytes_size(1, &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.hash.is_empty() {
os.write_bytes(1, &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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetHashResponse {
GetHashResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
"hash",
|m: &GetHashResponse| { &m.hash },
|m: &mut GetHashResponse| { &mut m.hash },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetHashResponse>(
"GetHashResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetHashResponse {
static instance: ::protobuf::rt::LazyV2<GetHashResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetHashResponse::new)
}
}
impl ::protobuf::Clear for GetHashResponse {
fn clear(&mut self) {
self.hash.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetHashResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetHashResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct EndorsementPrincipal {
pub msp_id: ::std::string::String,
pub role: EndorsementPrincipal_Role,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a EndorsementPrincipal {
fn default() -> &'a EndorsementPrincipal {
<EndorsementPrincipal as ::protobuf::Message>::default_instance()
}
}
impl EndorsementPrincipal {
pub fn new() -> EndorsementPrincipal {
::std::default::Default::default()
}
pub fn get_msp_id(&self) -> &str {
&self.msp_id
}
pub fn clear_msp_id(&mut self) {
self.msp_id.clear();
}
pub fn set_msp_id(&mut self, v: ::std::string::String) {
self.msp_id = v;
}
pub fn mut_msp_id(&mut self) -> &mut ::std::string::String {
&mut self.msp_id
}
pub fn take_msp_id(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.msp_id, ::std::string::String::new())
}
pub fn get_role(&self) -> EndorsementPrincipal_Role {
self.role
}
pub fn clear_role(&mut self) {
self.role = EndorsementPrincipal_Role::MEMBER;
}
pub fn set_role(&mut self, v: EndorsementPrincipal_Role) {
self.role = v;
}
}
impl ::protobuf::Message for EndorsementPrincipal {
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.msp_id)?;
},
2 => {
::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.role, 2, &mut self.unknown_fields)?
},
_ => {
::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.msp_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.msp_id);
}
if self.role != EndorsementPrincipal_Role::MEMBER {
my_size += ::protobuf::rt::enum_size(2, self.role);
}
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.msp_id.is_empty() {
os.write_string(1, &self.msp_id)?;
}
if self.role != EndorsementPrincipal_Role::MEMBER {
os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.role))?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> EndorsementPrincipal {
EndorsementPrincipal::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"msp_id",
|m: &EndorsementPrincipal| { &m.msp_id },
|m: &mut EndorsementPrincipal| { &mut m.msp_id },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<EndorsementPrincipal_Role>>(
"role",
|m: &EndorsementPrincipal| { &m.role },
|m: &mut EndorsementPrincipal| { &mut m.role },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<EndorsementPrincipal>(
"EndorsementPrincipal",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static EndorsementPrincipal {
static instance: ::protobuf::rt::LazyV2<EndorsementPrincipal> = ::protobuf::rt::LazyV2::INIT;
instance.get(EndorsementPrincipal::new)
}
}
impl ::protobuf::Clear for EndorsementPrincipal {
fn clear(&mut self) {
self.msp_id.clear();
self.role = EndorsementPrincipal_Role::MEMBER;
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for EndorsementPrincipal {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for EndorsementPrincipal {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(Clone,PartialEq,Eq,Debug,Hash)]
pub enum EndorsementPrincipal_Role {
MEMBER = 0,
ADMIN = 1,
CLIENT = 2,
PEER = 3,
}
impl ::protobuf::ProtobufEnum for EndorsementPrincipal_Role {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<EndorsementPrincipal_Role> {
match value {
0 => ::std::option::Option::Some(EndorsementPrincipal_Role::MEMBER),
1 => ::std::option::Option::Some(EndorsementPrincipal_Role::ADMIN),
2 => ::std::option::Option::Some(EndorsementPrincipal_Role::CLIENT),
3 => ::std::option::Option::Some(EndorsementPrincipal_Role::PEER),
_ => ::std::option::Option::None
}
}
fn values() -> &'static [Self] {
static values: &'static [EndorsementPrincipal_Role] = &[
EndorsementPrincipal_Role::MEMBER,
EndorsementPrincipal_Role::ADMIN,
EndorsementPrincipal_Role::CLIENT,
EndorsementPrincipal_Role::PEER,
];
values
}
fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
::protobuf::reflect::EnumDescriptor::new_pb_name::<EndorsementPrincipal_Role>("EndorsementPrincipal.Role", file_descriptor_proto())
})
}
}
impl ::std::marker::Copy for EndorsementPrincipal_Role {
}
impl ::std::default::Default for EndorsementPrincipal_Role {
fn default() -> Self {
EndorsementPrincipal_Role::MEMBER
}
}
impl ::protobuf::reflect::ProtobufValue for EndorsementPrincipal_Role {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
}
}
#[derive(PartialEq,Clone,Default)]
pub struct EndorsementRule {
pub min_endorsements: i32,
pub principals: ::protobuf::RepeatedField<EndorsementPrincipal>,
pub rules: ::protobuf::RepeatedField<EndorsementRule>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a EndorsementRule {
fn default() -> &'a EndorsementRule {
<EndorsementRule as ::protobuf::Message>::default_instance()
}
}
impl EndorsementRule {
pub fn new() -> EndorsementRule {
::std::default::Default::default()
}
pub fn get_min_endorsements(&self) -> i32 {
self.min_endorsements
}
pub fn clear_min_endorsements(&mut self) {
self.min_endorsements = 0;
}
pub fn set_min_endorsements(&mut self, v: i32) {
self.min_endorsements = v;
}
pub fn get_principals(&self) -> &[EndorsementPrincipal] {
&self.principals
}
pub fn clear_principals(&mut self) {
self.principals.clear();
}
pub fn set_principals(&mut self, v: ::protobuf::RepeatedField<EndorsementPrincipal>) {
self.principals = v;
}
pub fn mut_principals(&mut self) -> &mut ::protobuf::RepeatedField<EndorsementPrincipal> {
&mut self.principals
}
pub fn take_principals(&mut self) -> ::protobuf::RepeatedField<EndorsementPrincipal> {
::std::mem::replace(&mut self.principals, ::protobuf::RepeatedField::new())
}
pub fn get_rules(&self) -> &[EndorsementRule] {
&self.rules
}
pub fn clear_rules(&mut self) {
self.rules.clear();
}
pub fn set_rules(&mut self, v: ::protobuf::RepeatedField<EndorsementRule>) {
self.rules = v;
}
pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField<EndorsementRule> {
&mut self.rules
}
pub fn take_rules(&mut self) -> ::protobuf::RepeatedField<EndorsementRule> {
::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new())
}
}
impl ::protobuf::Message for EndorsementRule {
fn is_initialized(&self) -> bool {
for v in &self.principals {
if !v.is_initialized() {
return false;
}
};
for v in &self.rules {
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::WireTypeVarint {
return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
}
let tmp = is.read_int32()?;
self.min_endorsements = tmp;
},
2 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.principals)?;
},
3 => {
::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?;
},
_ => {
::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.min_endorsements != 0 {
my_size += ::protobuf::rt::value_size(1, self.min_endorsements, ::protobuf::wire_format::WireTypeVarint);
}
for value in &self.principals {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
for value in &self.rules {
let len = value.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
};
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if self.min_endorsements != 0 {
os.write_int32(1, self.min_endorsements)?;
}
for v in &self.principals {
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
};
for v in &self.rules {
os.write_tag(3, ::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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> EndorsementRule {
EndorsementRule::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
"min_endorsements",
|m: &EndorsementRule| { &m.min_endorsements },
|m: &mut EndorsementRule| { &mut m.min_endorsements },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EndorsementPrincipal>>(
"principals",
|m: &EndorsementRule| { &m.principals },
|m: &mut EndorsementRule| { &mut m.principals },
));
fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EndorsementRule>>(
"rules",
|m: &EndorsementRule| { &m.rules },
|m: &mut EndorsementRule| { &mut m.rules },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<EndorsementRule>(
"EndorsementRule",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static EndorsementRule {
static instance: ::protobuf::rt::LazyV2<EndorsementRule> = ::protobuf::rt::LazyV2::INIT;
instance.get(EndorsementRule::new)
}
}
impl ::protobuf::Clear for EndorsementRule {
fn clear(&mut self) {
self.min_endorsements = 0;
self.principals.clear();
self.rules.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for EndorsementRule {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for EndorsementRule {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct EndorsementPolicy {
pub rule: ::protobuf::SingularPtrField<EndorsementRule>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a EndorsementPolicy {
fn default() -> &'a EndorsementPolicy {
<EndorsementPolicy as ::protobuf::Message>::default_instance()
}
}
impl EndorsementPolicy {
pub fn new() -> EndorsementPolicy {
::std::default::Default::default()
}
pub fn get_rule(&self) -> &EndorsementRule {
self.rule.as_ref().unwrap_or_else(|| <EndorsementRule as ::protobuf::Message>::default_instance())
}
pub fn clear_rule(&mut self) {
self.rule.clear();
}
pub fn has_rule(&self) -> bool {
self.rule.is_some()
}
pub fn set_rule(&mut self, v: EndorsementRule) {
self.rule = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_rule(&mut self) -> &mut EndorsementRule {
if self.rule.is_none() {
self.rule.set_default();
}
self.rule.as_mut().unwrap()
}
pub fn take_rule(&mut self) -> EndorsementRule {
self.rule.take().unwrap_or_else(|| EndorsementRule::new())
}
}
impl ::protobuf::Message for EndorsementPolicy {
fn is_initialized(&self) -> bool {
for v in &self.rule {
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_message_into(wire_type, is, &mut self.rule)?;
},
_ => {
::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 Some(ref v) = self.rule.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 let Some(ref v) = self.rule.as_ref() {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> EndorsementPolicy {
EndorsementPolicy::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EndorsementRule>>(
"rule",
|m: &EndorsementPolicy| { &m.rule },
|m: &mut EndorsementPolicy| { &mut m.rule },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<EndorsementPolicy>(
"EndorsementPolicy",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static EndorsementPolicy {
static instance: ::protobuf::rt::LazyV2<EndorsementPolicy> = ::protobuf::rt::LazyV2::INIT;
instance.get(EndorsementPolicy::new)
}
}
impl ::protobuf::Clear for EndorsementPolicy {
fn clear(&mut self) {
self.rule.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for EndorsementPolicy {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for EndorsementPolicy {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetEndorsementPolicyRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetEndorsementPolicyRequest {
fn default() -> &'a GetEndorsementPolicyRequest {
<GetEndorsementPolicyRequest as ::protobuf::Message>::default_instance()
}
}
impl GetEndorsementPolicyRequest {
pub fn new() -> GetEndorsementPolicyRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
}
impl ::protobuf::Message for GetEndorsementPolicyRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetEndorsementPolicyRequest {
GetEndorsementPolicyRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &GetEndorsementPolicyRequest| { &m.context },
|m: &mut GetEndorsementPolicyRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &GetEndorsementPolicyRequest| { &m.collection },
|m: &mut GetEndorsementPolicyRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &GetEndorsementPolicyRequest| { &m.state_key },
|m: &mut GetEndorsementPolicyRequest| { &mut m.state_key },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetEndorsementPolicyRequest>(
"GetEndorsementPolicyRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetEndorsementPolicyRequest {
static instance: ::protobuf::rt::LazyV2<GetEndorsementPolicyRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetEndorsementPolicyRequest::new)
}
}
impl ::protobuf::Clear for GetEndorsementPolicyRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetEndorsementPolicyRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetEndorsementPolicyRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct GetEndorsementPolicyResponse {
pub policy: ::protobuf::SingularPtrField<EndorsementPolicy>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a GetEndorsementPolicyResponse {
fn default() -> &'a GetEndorsementPolicyResponse {
<GetEndorsementPolicyResponse as ::protobuf::Message>::default_instance()
}
}
impl GetEndorsementPolicyResponse {
pub fn new() -> GetEndorsementPolicyResponse {
::std::default::Default::default()
}
pub fn get_policy(&self) -> &EndorsementPolicy {
self.policy.as_ref().unwrap_or_else(|| <EndorsementPolicy as ::protobuf::Message>::default_instance())
}
pub fn clear_policy(&mut self) {
self.policy.clear();
}
pub fn has_policy(&self) -> bool {
self.policy.is_some()
}
pub fn set_policy(&mut self, v: EndorsementPolicy) {
self.policy = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_policy(&mut self) -> &mut EndorsementPolicy {
if self.policy.is_none() {
self.policy.set_default();
}
self.policy.as_mut().unwrap()
}
pub fn take_policy(&mut self) -> EndorsementPolicy {
self.policy.take().unwrap_or_else(|| EndorsementPolicy::new())
}
}
impl ::protobuf::Message for GetEndorsementPolicyResponse {
fn is_initialized(&self) -> bool {
for v in &self.policy {
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_message_into(wire_type, is, &mut self.policy)?;
},
_ => {
::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 Some(ref v) = self.policy.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 let Some(ref v) = self.policy.as_ref() {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> GetEndorsementPolicyResponse {
GetEndorsementPolicyResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EndorsementPolicy>>(
"policy",
|m: &GetEndorsementPolicyResponse| { &m.policy },
|m: &mut GetEndorsementPolicyResponse| { &mut m.policy },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<GetEndorsementPolicyResponse>(
"GetEndorsementPolicyResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static GetEndorsementPolicyResponse {
static instance: ::protobuf::rt::LazyV2<GetEndorsementPolicyResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(GetEndorsementPolicyResponse::new)
}
}
impl ::protobuf::Clear for GetEndorsementPolicyResponse {
fn clear(&mut self) {
self.policy.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for GetEndorsementPolicyResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for GetEndorsementPolicyResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct SetEndorsementPolicyRequest {
pub context: ::protobuf::SingularPtrField<super::common_messages::TransactionContext>,
pub collection: ::protobuf::SingularPtrField<Collection>,
pub state_key: ::std::string::String,
pub policy: ::protobuf::SingularPtrField<EndorsementPolicy>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a SetEndorsementPolicyRequest {
fn default() -> &'a SetEndorsementPolicyRequest {
<SetEndorsementPolicyRequest as ::protobuf::Message>::default_instance()
}
}
impl SetEndorsementPolicyRequest {
pub fn new() -> SetEndorsementPolicyRequest {
::std::default::Default::default()
}
pub fn get_context(&self) -> &super::common_messages::TransactionContext {
self.context.as_ref().unwrap_or_else(|| <super::common_messages::TransactionContext as ::protobuf::Message>::default_instance())
}
pub fn clear_context(&mut self) {
self.context.clear();
}
pub fn has_context(&self) -> bool {
self.context.is_some()
}
pub fn set_context(&mut self, v: super::common_messages::TransactionContext) {
self.context = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_context(&mut self) -> &mut super::common_messages::TransactionContext {
if self.context.is_none() {
self.context.set_default();
}
self.context.as_mut().unwrap()
}
pub fn take_context(&mut self) -> super::common_messages::TransactionContext {
self.context.take().unwrap_or_else(|| super::common_messages::TransactionContext::new())
}
pub fn get_collection(&self) -> &Collection {
self.collection.as_ref().unwrap_or_else(|| <Collection as ::protobuf::Message>::default_instance())
}
pub fn clear_collection(&mut self) {
self.collection.clear();
}
pub fn has_collection(&self) -> bool {
self.collection.is_some()
}
pub fn set_collection(&mut self, v: Collection) {
self.collection = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_collection(&mut self) -> &mut Collection {
if self.collection.is_none() {
self.collection.set_default();
}
self.collection.as_mut().unwrap()
}
pub fn take_collection(&mut self) -> Collection {
self.collection.take().unwrap_or_else(|| Collection::new())
}
pub fn get_state_key(&self) -> &str {
&self.state_key
}
pub fn clear_state_key(&mut self) {
self.state_key.clear();
}
pub fn set_state_key(&mut self, v: ::std::string::String) {
self.state_key = v;
}
pub fn mut_state_key(&mut self) -> &mut ::std::string::String {
&mut self.state_key
}
pub fn take_state_key(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.state_key, ::std::string::String::new())
}
pub fn get_policy(&self) -> &EndorsementPolicy {
self.policy.as_ref().unwrap_or_else(|| <EndorsementPolicy as ::protobuf::Message>::default_instance())
}
pub fn clear_policy(&mut self) {
self.policy.clear();
}
pub fn has_policy(&self) -> bool {
self.policy.is_some()
}
pub fn set_policy(&mut self, v: EndorsementPolicy) {
self.policy = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_policy(&mut self) -> &mut EndorsementPolicy {
if self.policy.is_none() {
self.policy.set_default();
}
self.policy.as_mut().unwrap()
}
pub fn take_policy(&mut self) -> EndorsementPolicy {
self.policy.take().unwrap_or_else(|| EndorsementPolicy::new())
}
}
impl ::protobuf::Message for SetEndorsementPolicyRequest {
fn is_initialized(&self) -> bool {
for v in &self.context {
if !v.is_initialized() {
return false;
}
};
for v in &self.collection {
if !v.is_initialized() {
return false;
}
};
for v in &self.policy {
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_message_into(wire_type, is, &mut self.context)?;
},
2 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.collection)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state_key)?;
},
4 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?;
},
_ => {
::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 Some(ref v) = self.context.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if let Some(ref v) = self.collection.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.state_key.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.state_key);
}
if let Some(ref v) = self.policy.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 let Some(ref v) = self.context.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if let Some(ref v) = self.collection.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)?;
}
if !self.state_key.is_empty() {
os.write_string(3, &self.state_key)?;
}
if let Some(ref v) = self.policy.as_ref() {
os.write_tag(4, ::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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> SetEndorsementPolicyRequest {
SetEndorsementPolicyRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::common_messages::TransactionContext>>(
"context",
|m: &SetEndorsementPolicyRequest| { &m.context },
|m: &mut SetEndorsementPolicyRequest| { &mut m.context },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Collection>>(
"collection",
|m: &SetEndorsementPolicyRequest| { &m.collection },
|m: &mut SetEndorsementPolicyRequest| { &mut m.collection },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"state_key",
|m: &SetEndorsementPolicyRequest| { &m.state_key },
|m: &mut SetEndorsementPolicyRequest| { &mut m.state_key },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EndorsementPolicy>>(
"policy",
|m: &SetEndorsementPolicyRequest| { &m.policy },
|m: &mut SetEndorsementPolicyRequest| { &mut m.policy },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<SetEndorsementPolicyRequest>(
"SetEndorsementPolicyRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static SetEndorsementPolicyRequest {
static instance: ::protobuf::rt::LazyV2<SetEndorsementPolicyRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(SetEndorsementPolicyRequest::new)
}
}
impl ::protobuf::Clear for SetEndorsementPolicyRequest {
fn clear(&mut self) {
self.context.clear();
self.collection.clear();
self.state_key.clear();
self.policy.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for SetEndorsementPolicyRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for SetEndorsementPolicyRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct SetEndorsementPolicyResponse {
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a SetEndorsementPolicyResponse {
fn default() -> &'a SetEndorsementPolicyResponse {
<SetEndorsementPolicyResponse as ::protobuf::Message>::default_instance()
}
}
impl SetEndorsementPolicyResponse {
pub fn new() -> SetEndorsementPolicyResponse {
::std::default::Default::default()
}
}
impl ::protobuf::Message for SetEndorsementPolicyResponse {
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) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> SetEndorsementPolicyResponse {
SetEndorsementPolicyResponse::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let fields = ::std::vec::Vec::new();
::protobuf::reflect::MessageDescriptor::new_pb_name::<SetEndorsementPolicyResponse>(
"SetEndorsementPolicyResponse",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static SetEndorsementPolicyResponse {
static instance: ::protobuf::rt::LazyV2<SetEndorsementPolicyResponse> = ::protobuf::rt::LazyV2::INIT;
instance.get(SetEndorsementPolicyResponse::new)
}
}
impl ::protobuf::Clear for SetEndorsementPolicyResponse {
fn clear(&mut self) {
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for SetEndorsementPolicyResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for SetEndorsementPolicyResponse {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x15ledger_messages.proto\x12\x08contract\x1a\x1fgoogle/protobuf/times\
tamp.proto\x1a\x15common_messages.proto\"\x20\n\nCollection\x12\x12\n\
\x04name\x18\x01\x20\x01(\tR\x04name\"/\n\x05State\x12\x10\n\x03key\x18\
\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05valu\
e\"\xb4\x01\n\x0cStateHistory\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03ke\
y\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\x12%\n\x0etransactio\
n_id\x18\x03\x20\x01(\tR\rtransactionId\x128\n\ttimestamp\x18\x04\x20\
\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x1b\n\tis_delet\
e\x18\x05\x20\x01(\x08R\x08isDelete\"E\n\rKeyRangeQuery\x12\x1b\n\tstart\
_key\x18\x01\x20\x01(\tR\x08startKey\x12\x17\n\x07end_key\x18\x02\x20\
\x01(\tR\x06endKey\"\x0b\n\tRichQuery\"\xa9\x01\n\x12CreateStateRequest\
\x126\n\x07context\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionContext\
R\x07context\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.Colle\
ctionR\ncollection\x12%\n\x05state\x18\x03\x20\x01(\x0b2\x0f.contract.St\
ateR\x05state\"\x15\n\x13CreateStateResponse\"\x9d\x01\n\x10ReadStateReq\
uest\x126\n\x07context\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionCon\
textR\x07context\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.C\
ollectionR\ncollection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08state\
Key\":\n\x11ReadStateResponse\x12%\n\x05state\x18\x01\x20\x01(\x0b2\x0f.\
contract.StateR\x05state\"\xa9\x01\n\x12UpdateStateRequest\x126\n\x07con\
text\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionContextR\x07context\
\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.CollectionR\ncoll\
ection\x12%\n\x05state\x18\x03\x20\x01(\x0b2\x0f.contract.StateR\x05stat\
e\"\x15\n\x13UpdateStateResponse\"\x9f\x01\n\x12DeleteStateRequest\x126\
\n\x07context\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionContextR\x07\
context\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.Collection\
R\ncollection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08stateKey\"\x15\
\n\x13DeleteStateResponse\"\x9f\x01\n\x12ExistsStateRequest\x126\n\x07co\
ntext\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionContextR\x07context\
\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.CollectionR\ncoll\
ection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08stateKey\"-\n\x13Exis\
tsStateResponse\x12\x16\n\x06exists\x18\x01\x20\x01(\x08R\x06exists\"\
\x81\x02\n\x10GetStatesRequest\x126\n\x07context\x18\x01\x20\x01(\x0b2\
\x1c.contract.TransactionContextR\x07context\x124\n\ncollection\x18\x02\
\x20\x01(\x0b2\x14.contract.CollectionR\ncollection\x12;\n\x0cby_key_ran\
ge\x18\x03\x20\x01(\x0b2\x17.contract.KeyRangeQueryH\0R\nbyKeyRange\x129\
\n\rby_rich_query\x18\x04\x20\x01(\x0b2\x13.contract.RichQueryH\0R\x0bby\
RichQueryB\x07\n\x05query\"<\n\x11GetStatesResponse\x12'\n\x06states\x18\
\x01\x20\x03(\x0b2\x0f.contract.StateR\x06states\"\x9b\x01\n\x0eGetHashR\
equest\x126\n\x07context\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionC\
ontextR\x07context\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract\
.CollectionR\ncollection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08sta\
teKey\"%\n\x0fGetHashResponse\x12\x12\n\x04hash\x18\x01\x20\x01(\x0cR\
\x04hash\"\x9b\x01\n\x14EndorsementPrincipal\x12\x15\n\x06msp_id\x18\x01\
\x20\x01(\tR\x05mspId\x127\n\x04role\x18\x02\x20\x01(\x0e2#.contract.End\
orsementPrincipal.RoleR\x04role\"3\n\x04Role\x12\n\n\x06MEMBER\x10\0\x12\
\t\n\x05ADMIN\x10\x01\x12\n\n\x06CLIENT\x10\x02\x12\x08\n\x04PEER\x10\
\x03\"\xad\x01\n\x0fEndorsementRule\x12)\n\x10min_endorsements\x18\x01\
\x20\x01(\x05R\x0fminEndorsements\x12>\n\nprincipals\x18\x02\x20\x03(\
\x0b2\x1e.contract.EndorsementPrincipalR\nprincipals\x12/\n\x05rules\x18\
\x03\x20\x03(\x0b2\x19.contract.EndorsementRuleR\x05rules\"B\n\x11Endors\
ementPolicy\x12-\n\x04rule\x18\x01\x20\x01(\x0b2\x19.contract.Endorsemen\
tRuleR\x04rule\"\xa8\x01\n\x1bGetEndorsementPolicyRequest\x126\n\x07cont\
ext\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionContextR\x07context\
\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.CollectionR\ncoll\
ection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08stateKey\"S\n\x1cGetE\
ndorsementPolicyResponse\x123\n\x06policy\x18\x01\x20\x01(\x0b2\x1b.cont\
ract.EndorsementPolicyR\x06policy\"\xdd\x01\n\x1bSetEndorsementPolicyReq\
uest\x126\n\x07context\x18\x01\x20\x01(\x0b2\x1c.contract.TransactionCon\
textR\x07context\x124\n\ncollection\x18\x02\x20\x01(\x0b2\x14.contract.C\
ollectionR\ncollection\x12\x1b\n\tstate_key\x18\x03\x20\x01(\tR\x08state\
Key\x123\n\x06policy\x18\x04\x20\x01(\x0b2\x1b.contract.EndorsementPolic\
yR\x06policy\"\x1e\n\x1cSetEndorsementPolicyResponseBEZChttps://github.c\
om/hyperledgendary/fabric-ledger-protos-go/contractJ\xd5\x1d\n\x07\x12\
\x05\x02\0\x8e\x01\x01\n/\n\x01\x0c\x12\x03\x02\0\x122%\x20SPDX-License-\
Identifier:\x20Apache-2.0\n\n\x08\n\x01\x02\x12\x03\x04\0\x11\n\x08\n\
\x01\x08\x12\x03\x06\0Z\n\t\n\x02\x08\x0b\x12\x03\x06\0Z\n\t\n\x02\x03\0\
\x12\x03\x08\0)\n\t\n\x02\x03\x01\x12\x03\n\0\x1f\n\n\n\x02\x04\0\x12\
\x04\x0c\0\x0e\x01\n\n\n\x03\x04\0\x01\x12\x03\x0c\x08\x12\n\x0b\n\x04\
\x04\0\x02\0\x12\x03\r\x02\x12\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\r\x02\
\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\r\t\r\n\x0c\n\x05\x04\0\x02\0\
\x03\x12\x03\r\x10\x11\n\n\n\x02\x04\x01\x12\x04\x10\0\x13\x01\n\n\n\x03\
\x04\x01\x01\x12\x03\x10\x08\r\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x11\x02\
\x11\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x11\x02\x08\n\x0c\n\x05\x04\
\x01\x02\0\x01\x12\x03\x11\t\x0c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\
\x11\x0f\x10\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x12\x02\x12\n\x0c\n\x05\
\x04\x01\x02\x01\x05\x12\x03\x12\x02\x07\n\x0c\n\x05\x04\x01\x02\x01\x01\
\x12\x03\x12\x08\r\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\x12\x10\x11\n\
\n\n\x02\x04\x02\x12\x04\x15\0\x1b\x01\n\n\n\x03\x04\x02\x01\x12\x03\x15\
\x08\x14\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x16\x02\x11\n\x0c\n\x05\x04\
\x02\x02\0\x05\x12\x03\x16\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\
\x16\t\x0c\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x16\x0f\x10\n\x0b\n\x04\
\x04\x02\x02\x01\x12\x03\x17\x02\x12\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\
\x03\x17\x02\x07\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03\x17\x08\r\n\x0c\
\n\x05\x04\x02\x02\x01\x03\x12\x03\x17\x10\x11\n\x0b\n\x04\x04\x02\x02\
\x02\x12\x03\x18\x02\x1c\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03\x18\x02\
\x08\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03\x18\t\x17\n\x0c\n\x05\x04\
\x02\x02\x02\x03\x12\x03\x18\x1a\x1b\n\x0b\n\x04\x04\x02\x02\x03\x12\x03\
\x19\x02*\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03\x19\x02\x1b\n\x0c\n\
\x05\x04\x02\x02\x03\x01\x12\x03\x19\x1c%\n\x0c\n\x05\x04\x02\x02\x03\
\x03\x12\x03\x19()\n\x0b\n\x04\x04\x02\x02\x04\x12\x03\x1a\x02\x15\n\x0c\
\n\x05\x04\x02\x02\x04\x05\x12\x03\x1a\x02\x06\n\x0c\n\x05\x04\x02\x02\
\x04\x01\x12\x03\x1a\x07\x10\n\x0c\n\x05\x04\x02\x02\x04\x03\x12\x03\x1a\
\x13\x14\n\n\n\x02\x04\x03\x12\x04\x1d\0\x20\x01\n\n\n\x03\x04\x03\x01\
\x12\x03\x1d\x08\x15\n\x0b\n\x04\x04\x03\x02\0\x12\x03\x1e\x02\x17\n\x0c\
\n\x05\x04\x03\x02\0\x05\x12\x03\x1e\x02\x08\n\x0c\n\x05\x04\x03\x02\0\
\x01\x12\x03\x1e\t\x12\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x1e\x15\x16\
\n\x0b\n\x04\x04\x03\x02\x01\x12\x03\x1f\x02\x15\n\x0c\n\x05\x04\x03\x02\
\x01\x05\x12\x03\x1f\x02\x08\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03\x1f\
\t\x10\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03\x1f\x13\x14\n\t\n\x02\x04\
\x04\x12\x03\"\0\x15\n\n\n\x03\x04\x04\x01\x12\x03\"\x08\x11\n\n\n\x02\
\x04\x05\x12\x04$\0(\x01\n\n\n\x03\x04\x05\x01\x12\x03$\x08\x1a\n\x0b\n\
\x04\x04\x05\x02\0\x12\x03%\x02!\n\x0c\n\x05\x04\x05\x02\0\x06\x12\x03%\
\x02\x14\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03%\x15\x1c\n\x0c\n\x05\x04\
\x05\x02\0\x03\x12\x03%\x1f\x20\n\x0b\n\x04\x04\x05\x02\x01\x12\x03&\x02\
\x1c\n\x0c\n\x05\x04\x05\x02\x01\x06\x12\x03&\x02\x0c\n\x0c\n\x05\x04\
\x05\x02\x01\x01\x12\x03&\r\x17\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03&\
\x1a\x1b\n\x0b\n\x04\x04\x05\x02\x02\x12\x03'\x02\x12\n\x0c\n\x05\x04\
\x05\x02\x02\x06\x12\x03'\x02\x07\n\x0c\n\x05\x04\x05\x02\x02\x01\x12\
\x03'\x08\r\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\x03'\x10\x11\n\t\n\x02\
\x04\x06\x12\x03*\0\x1f\n\n\n\x03\x04\x06\x01\x12\x03*\x08\x1b\n\n\n\x02\
\x04\x07\x12\x04,\00\x01\n\n\n\x03\x04\x07\x01\x12\x03,\x08\x18\n\x0b\n\
\x04\x04\x07\x02\0\x12\x03-\x02!\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x03-\
\x02\x14\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03-\x15\x1c\n\x0c\n\x05\x04\
\x07\x02\0\x03\x12\x03-\x1f\x20\n\x0b\n\x04\x04\x07\x02\x01\x12\x03.\x02\
\x1c\n\x0c\n\x05\x04\x07\x02\x01\x06\x12\x03.\x02\x0c\n\x0c\n\x05\x04\
\x07\x02\x01\x01\x12\x03.\r\x17\n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x03.\
\x1a\x1b\n\x0b\n\x04\x04\x07\x02\x02\x12\x03/\x02\x17\n\x0c\n\x05\x04\
\x07\x02\x02\x05\x12\x03/\x02\x08\n\x0c\n\x05\x04\x07\x02\x02\x01\x12\
\x03/\t\x12\n\x0c\n\x05\x04\x07\x02\x02\x03\x12\x03/\x15\x16\n\n\n\x02\
\x04\x08\x12\x042\04\x01\n\n\n\x03\x04\x08\x01\x12\x032\x08\x19\n\x0b\n\
\x04\x04\x08\x02\0\x12\x033\x02\x12\n\x0c\n\x05\x04\x08\x02\0\x06\x12\
\x033\x02\x07\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x033\x08\r\n\x0c\n\x05\
\x04\x08\x02\0\x03\x12\x033\x10\x11\n\n\n\x02\x04\t\x12\x046\0:\x01\n\n\
\n\x03\x04\t\x01\x12\x036\x08\x1a\n\x0b\n\x04\x04\t\x02\0\x12\x037\x02!\
\n\x0c\n\x05\x04\t\x02\0\x06\x12\x037\x02\x14\n\x0c\n\x05\x04\t\x02\0\
\x01\x12\x037\x15\x1c\n\x0c\n\x05\x04\t\x02\0\x03\x12\x037\x1f\x20\n\x0b\
\n\x04\x04\t\x02\x01\x12\x038\x02\x1c\n\x0c\n\x05\x04\t\x02\x01\x06\x12\
\x038\x02\x0c\n\x0c\n\x05\x04\t\x02\x01\x01\x12\x038\r\x17\n\x0c\n\x05\
\x04\t\x02\x01\x03\x12\x038\x1a\x1b\n\x0b\n\x04\x04\t\x02\x02\x12\x039\
\x02\x12\n\x0c\n\x05\x04\t\x02\x02\x06\x12\x039\x02\x07\n\x0c\n\x05\x04\
\t\x02\x02\x01\x12\x039\x08\r\n\x0c\n\x05\x04\t\x02\x02\x03\x12\x039\x10\
\x11\n\t\n\x02\x04\n\x12\x03<\0\x1f\n\n\n\x03\x04\n\x01\x12\x03<\x08\x1b\
\n\n\n\x02\x04\x0b\x12\x04>\0B\x01\n\n\n\x03\x04\x0b\x01\x12\x03>\x08\
\x1a\n\x0b\n\x04\x04\x0b\x02\0\x12\x03?\x02!\n\x0c\n\x05\x04\x0b\x02\0\
\x06\x12\x03?\x02\x14\n\x0c\n\x05\x04\x0b\x02\0\x01\x12\x03?\x15\x1c\n\
\x0c\n\x05\x04\x0b\x02\0\x03\x12\x03?\x1f\x20\n\x0b\n\x04\x04\x0b\x02\
\x01\x12\x03@\x02\x1c\n\x0c\n\x05\x04\x0b\x02\x01\x06\x12\x03@\x02\x0c\n\
\x0c\n\x05\x04\x0b\x02\x01\x01\x12\x03@\r\x17\n\x0c\n\x05\x04\x0b\x02\
\x01\x03\x12\x03@\x1a\x1b\n\x0b\n\x04\x04\x0b\x02\x02\x12\x03A\x02\x17\n\
\x0c\n\x05\x04\x0b\x02\x02\x05\x12\x03A\x02\x08\n\x0c\n\x05\x04\x0b\x02\
\x02\x01\x12\x03A\t\x12\n\x0c\n\x05\x04\x0b\x02\x02\x03\x12\x03A\x15\x16\
\n\t\n\x02\x04\x0c\x12\x03D\0\x1f\n\n\n\x03\x04\x0c\x01\x12\x03D\x08\x1b\
\n\n\n\x02\x04\r\x12\x04F\0J\x01\n\n\n\x03\x04\r\x01\x12\x03F\x08\x1a\n\
\x0b\n\x04\x04\r\x02\0\x12\x03G\x02!\n\x0c\n\x05\x04\r\x02\0\x06\x12\x03\
G\x02\x14\n\x0c\n\x05\x04\r\x02\0\x01\x12\x03G\x15\x1c\n\x0c\n\x05\x04\r\
\x02\0\x03\x12\x03G\x1f\x20\n\x0b\n\x04\x04\r\x02\x01\x12\x03H\x02\x1c\n\
\x0c\n\x05\x04\r\x02\x01\x06\x12\x03H\x02\x0c\n\x0c\n\x05\x04\r\x02\x01\
\x01\x12\x03H\r\x17\n\x0c\n\x05\x04\r\x02\x01\x03\x12\x03H\x1a\x1b\n\x0b\
\n\x04\x04\r\x02\x02\x12\x03I\x02\x17\n\x0c\n\x05\x04\r\x02\x02\x05\x12\
\x03I\x02\x08\n\x0c\n\x05\x04\r\x02\x02\x01\x12\x03I\t\x12\n\x0c\n\x05\
\x04\r\x02\x02\x03\x12\x03I\x15\x16\n\n\n\x02\x04\x0e\x12\x04L\0N\x01\n\
\n\n\x03\x04\x0e\x01\x12\x03L\x08\x1b\n\x0b\n\x04\x04\x0e\x02\0\x12\x03M\
\x02\x12\n\x0c\n\x05\x04\x0e\x02\0\x05\x12\x03M\x02\x06\n\x0c\n\x05\x04\
\x0e\x02\0\x01\x12\x03M\x07\r\n\x0c\n\x05\x04\x0e\x02\0\x03\x12\x03M\x10\
\x11\n\n\n\x02\x04\x0f\x12\x04P\0W\x01\n\n\n\x03\x04\x0f\x01\x12\x03P\
\x08\x18\n\x0b\n\x04\x04\x0f\x02\0\x12\x03Q\x02!\n\x0c\n\x05\x04\x0f\x02\
\0\x06\x12\x03Q\x02\x14\n\x0c\n\x05\x04\x0f\x02\0\x01\x12\x03Q\x15\x1c\n\
\x0c\n\x05\x04\x0f\x02\0\x03\x12\x03Q\x1f\x20\n\x0b\n\x04\x04\x0f\x02\
\x01\x12\x03R\x02\x1c\n\x0c\n\x05\x04\x0f\x02\x01\x06\x12\x03R\x02\x0c\n\
\x0c\n\x05\x04\x0f\x02\x01\x01\x12\x03R\r\x17\n\x0c\n\x05\x04\x0f\x02\
\x01\x03\x12\x03R\x1a\x1b\n\x0c\n\x04\x04\x0f\x08\0\x12\x04S\x02V\x03\n\
\x0c\n\x05\x04\x0f\x08\0\x01\x12\x03S\x08\r\n\x0b\n\x04\x04\x0f\x02\x02\
\x12\x03T\x04#\n\x0c\n\x05\x04\x0f\x02\x02\x06\x12\x03T\x04\x11\n\x0c\n\
\x05\x04\x0f\x02\x02\x01\x12\x03T\x12\x1e\n\x0c\n\x05\x04\x0f\x02\x02\
\x03\x12\x03T!\"\n\x0b\n\x04\x04\x0f\x02\x03\x12\x03U\x04\x20\n\x0c\n\
\x05\x04\x0f\x02\x03\x06\x12\x03U\x04\r\n\x0c\n\x05\x04\x0f\x02\x03\x01\
\x12\x03U\x0e\x1b\n\x0c\n\x05\x04\x0f\x02\x03\x03\x12\x03U\x1e\x1f\n\n\n\
\x02\x04\x10\x12\x04Y\0[\x01\n\n\n\x03\x04\x10\x01\x12\x03Y\x08\x19\n\
\x0b\n\x04\x04\x10\x02\0\x12\x03Z\x02\x1c\n\x0c\n\x05\x04\x10\x02\0\x04\
\x12\x03Z\x02\n\n\x0c\n\x05\x04\x10\x02\0\x06\x12\x03Z\x0b\x10\n\x0c\n\
\x05\x04\x10\x02\0\x01\x12\x03Z\x11\x17\n\x0c\n\x05\x04\x10\x02\0\x03\
\x12\x03Z\x1a\x1b\n\n\n\x02\x04\x11\x12\x04]\0a\x01\n\n\n\x03\x04\x11\
\x01\x12\x03]\x08\x16\n\x0b\n\x04\x04\x11\x02\0\x12\x03^\x02!\n\x0c\n\
\x05\x04\x11\x02\0\x06\x12\x03^\x02\x14\n\x0c\n\x05\x04\x11\x02\0\x01\
\x12\x03^\x15\x1c\n\x0c\n\x05\x04\x11\x02\0\x03\x12\x03^\x1f\x20\n\x0b\n\
\x04\x04\x11\x02\x01\x12\x03_\x02\x1c\n\x0c\n\x05\x04\x11\x02\x01\x06\
\x12\x03_\x02\x0c\n\x0c\n\x05\x04\x11\x02\x01\x01\x12\x03_\r\x17\n\x0c\n\
\x05\x04\x11\x02\x01\x03\x12\x03_\x1a\x1b\n\x0b\n\x04\x04\x11\x02\x02\
\x12\x03`\x02\x17\n\x0c\n\x05\x04\x11\x02\x02\x05\x12\x03`\x02\x08\n\x0c\
\n\x05\x04\x11\x02\x02\x01\x12\x03`\t\x12\n\x0c\n\x05\x04\x11\x02\x02\
\x03\x12\x03`\x15\x16\n\n\n\x02\x04\x12\x12\x04c\0e\x01\n\n\n\x03\x04\
\x12\x01\x12\x03c\x08\x17\n\x0b\n\x04\x04\x12\x02\0\x12\x03d\x02\x11\n\
\x0c\n\x05\x04\x12\x02\0\x05\x12\x03d\x02\x07\n\x0c\n\x05\x04\x12\x02\0\
\x01\x12\x03d\x08\x0c\n\x0c\n\x05\x04\x12\x02\0\x03\x12\x03d\x0f\x10\n\n\
\n\x02\x04\x13\x12\x04g\0p\x01\n\n\n\x03\x04\x13\x01\x12\x03g\x08\x1c\n\
\x0b\n\x04\x04\x13\x02\0\x12\x03h\x02\x14\n\x0c\n\x05\x04\x13\x02\0\x05\
\x12\x03h\x02\x08\n\x0c\n\x05\x04\x13\x02\0\x01\x12\x03h\t\x0f\n\x0c\n\
\x05\x04\x13\x02\0\x03\x12\x03h\x12\x13\n\x0c\n\x04\x04\x13\x04\0\x12\
\x04i\x02n\x03\n\x0c\n\x05\x04\x13\x04\0\x01\x12\x03i\x07\x0b\n\r\n\x06\
\x04\x13\x04\0\x02\0\x12\x03j\x04\x0f\n\x0e\n\x07\x04\x13\x04\0\x02\0\
\x01\x12\x03j\x04\n\n\x0e\n\x07\x04\x13\x04\0\x02\0\x02\x12\x03j\r\x0e\n\
\r\n\x06\x04\x13\x04\0\x02\x01\x12\x03k\x04\x0e\n\x0e\n\x07\x04\x13\x04\
\0\x02\x01\x01\x12\x03k\x04\t\n\x0e\n\x07\x04\x13\x04\0\x02\x01\x02\x12\
\x03k\x0c\r\n\r\n\x06\x04\x13\x04\0\x02\x02\x12\x03l\x04\x0f\n\x0e\n\x07\
\x04\x13\x04\0\x02\x02\x01\x12\x03l\x04\n\n\x0e\n\x07\x04\x13\x04\0\x02\
\x02\x02\x12\x03l\r\x0e\n\r\n\x06\x04\x13\x04\0\x02\x03\x12\x03m\x04\r\n\
\x0e\n\x07\x04\x13\x04\0\x02\x03\x01\x12\x03m\x04\x08\n\x0e\n\x07\x04\
\x13\x04\0\x02\x03\x02\x12\x03m\x0b\x0c\n\x0b\n\x04\x04\x13\x02\x01\x12\
\x03o\x02\x10\n\x0c\n\x05\x04\x13\x02\x01\x06\x12\x03o\x02\x06\n\x0c\n\
\x05\x04\x13\x02\x01\x01\x12\x03o\x07\x0b\n\x0c\n\x05\x04\x13\x02\x01\
\x03\x12\x03o\x0e\x0f\n\n\n\x02\x04\x14\x12\x04r\0v\x01\n\n\n\x03\x04\
\x14\x01\x12\x03r\x08\x17\n\x0b\n\x04\x04\x14\x02\0\x12\x03s\x02\x1d\n\
\x0c\n\x05\x04\x14\x02\0\x05\x12\x03s\x02\x07\n\x0c\n\x05\x04\x14\x02\0\
\x01\x12\x03s\x08\x18\n\x0c\n\x05\x04\x14\x02\0\x03\x12\x03s\x1b\x1c\n\
\x0b\n\x04\x04\x14\x02\x01\x12\x03t\x02/\n\x0c\n\x05\x04\x14\x02\x01\x04\
\x12\x03t\x02\n\n\x0c\n\x05\x04\x14\x02\x01\x06\x12\x03t\x0b\x1f\n\x0c\n\
\x05\x04\x14\x02\x01\x01\x12\x03t\x20*\n\x0c\n\x05\x04\x14\x02\x01\x03\
\x12\x03t-.\n\x0b\n\x04\x04\x14\x02\x02\x12\x03u\x02%\n\x0c\n\x05\x04\
\x14\x02\x02\x04\x12\x03u\x02\n\n\x0c\n\x05\x04\x14\x02\x02\x06\x12\x03u\
\x0b\x1a\n\x0c\n\x05\x04\x14\x02\x02\x01\x12\x03u\x1b\x20\n\x0c\n\x05\
\x04\x14\x02\x02\x03\x12\x03u#$\n\n\n\x02\x04\x15\x12\x04x\0z\x01\n\n\n\
\x03\x04\x15\x01\x12\x03x\x08\x19\n\x0b\n\x04\x04\x15\x02\0\x12\x03y\x02\
\x1b\n\x0c\n\x05\x04\x15\x02\0\x06\x12\x03y\x02\x11\n\x0c\n\x05\x04\x15\
\x02\0\x01\x12\x03y\x12\x16\n\x0c\n\x05\x04\x15\x02\0\x03\x12\x03y\x19\
\x1a\n\x0b\n\x02\x04\x16\x12\x05|\0\x80\x01\x01\n\n\n\x03\x04\x16\x01\
\x12\x03|\x08#\n\x0b\n\x04\x04\x16\x02\0\x12\x03}\x02!\n\x0c\n\x05\x04\
\x16\x02\0\x06\x12\x03}\x02\x14\n\x0c\n\x05\x04\x16\x02\0\x01\x12\x03}\
\x15\x1c\n\x0c\n\x05\x04\x16\x02\0\x03\x12\x03}\x1f\x20\n\x0b\n\x04\x04\
\x16\x02\x01\x12\x03~\x02\x1c\n\x0c\n\x05\x04\x16\x02\x01\x06\x12\x03~\
\x02\x0c\n\x0c\n\x05\x04\x16\x02\x01\x01\x12\x03~\r\x17\n\x0c\n\x05\x04\
\x16\x02\x01\x03\x12\x03~\x1a\x1b\n\x0b\n\x04\x04\x16\x02\x02\x12\x03\
\x7f\x02\x17\n\x0c\n\x05\x04\x16\x02\x02\x05\x12\x03\x7f\x02\x08\n\x0c\n\
\x05\x04\x16\x02\x02\x01\x12\x03\x7f\t\x12\n\x0c\n\x05\x04\x16\x02\x02\
\x03\x12\x03\x7f\x15\x16\n\x0c\n\x02\x04\x17\x12\x06\x82\x01\0\x84\x01\
\x01\n\x0b\n\x03\x04\x17\x01\x12\x04\x82\x01\x08$\n\x0c\n\x04\x04\x17\
\x02\0\x12\x04\x83\x01\x02\x1f\n\r\n\x05\x04\x17\x02\0\x06\x12\x04\x83\
\x01\x02\x13\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\x83\x01\x14\x1a\n\r\n\
\x05\x04\x17\x02\0\x03\x12\x04\x83\x01\x1d\x1e\n\x0c\n\x02\x04\x18\x12\
\x06\x86\x01\0\x8b\x01\x01\n\x0b\n\x03\x04\x18\x01\x12\x04\x86\x01\x08#\
\n\x0c\n\x04\x04\x18\x02\0\x12\x04\x87\x01\x02!\n\r\n\x05\x04\x18\x02\0\
\x06\x12\x04\x87\x01\x02\x14\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\x87\x01\
\x15\x1c\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\x87\x01\x1f\x20\n\x0c\n\x04\
\x04\x18\x02\x01\x12\x04\x88\x01\x02\x1c\n\r\n\x05\x04\x18\x02\x01\x06\
\x12\x04\x88\x01\x02\x0c\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\x88\x01\r\
\x17\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\x88\x01\x1a\x1b\n\x0c\n\x04\
\x04\x18\x02\x02\x12\x04\x89\x01\x02\x17\n\r\n\x05\x04\x18\x02\x02\x05\
\x12\x04\x89\x01\x02\x08\n\r\n\x05\x04\x18\x02\x02\x01\x12\x04\x89\x01\t\
\x12\n\r\n\x05\x04\x18\x02\x02\x03\x12\x04\x89\x01\x15\x16\n\x0c\n\x04\
\x04\x18\x02\x03\x12\x04\x8a\x01\x02\x1f\n\r\n\x05\x04\x18\x02\x03\x06\
\x12\x04\x8a\x01\x02\x13\n\r\n\x05\x04\x18\x02\x03\x01\x12\x04\x8a\x01\
\x14\x1a\n\r\n\x05\x04\x18\x02\x03\x03\x12\x04\x8a\x01\x1d\x1e\n\x0c\n\
\x02\x04\x19\x12\x06\x8d\x01\0\x8e\x01\x01\n\x0b\n\x03\x04\x19\x01\x12\
\x04\x8d\x01\x08$b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
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 {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}