sei_cosmwasm/
tx.rs

1// This file is generated by rust-protobuf 3.1.0. Do not edit
2// .proto file is parsed by protoc --rust-out=...
3// @generated
4
5// https://github.com/rust-lang/rust-clippy/issues/702
6#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
12#![allow(box_pointers)]
13#![allow(dead_code)]
14#![allow(missing_docs)]
15#![allow(non_camel_case_types)]
16#![allow(non_snake_case)]
17#![allow(non_upper_case_globals)]
18#![allow(trivial_casts)]
19#![allow(unused_results)]
20#![allow(unused_mut)]
21
22//! Generated file from `tx.proto`
23
24/// Generated files are compatible only with the same version
25/// of protobuf runtime.
26const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
27
28#[derive(PartialEq,Clone,Default,Debug)]
29// @@protoc_insertion_point(message:MsgPlaceOrdersResponse)
30pub struct MsgPlaceOrdersResponse {
31    // message fields
32    // @@protoc_insertion_point(field:MsgPlaceOrdersResponse.order_ids)
33    pub order_ids: ::std::vec::Vec<u64>,
34    // special fields
35    // @@protoc_insertion_point(special_field:MsgPlaceOrdersResponse.special_fields)
36    pub special_fields: ::protobuf::SpecialFields,
37}
38
39impl<'a> ::std::default::Default for &'a MsgPlaceOrdersResponse {
40    fn default() -> &'a MsgPlaceOrdersResponse {
41        <MsgPlaceOrdersResponse as ::protobuf::Message>::default_instance()
42    }
43}
44
45impl MsgPlaceOrdersResponse {
46    pub fn new() -> MsgPlaceOrdersResponse {
47        ::std::default::Default::default()
48    }
49
50    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
51        let mut fields = ::std::vec::Vec::with_capacity(1);
52        let mut oneofs = ::std::vec::Vec::with_capacity(0);
53        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
54            "order_ids",
55            |m: &MsgPlaceOrdersResponse| { &m.order_ids },
56            |m: &mut MsgPlaceOrdersResponse| { &mut m.order_ids },
57        ));
58        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<MsgPlaceOrdersResponse>(
59            "MsgPlaceOrdersResponse",
60            fields,
61            oneofs,
62        )
63    }
64}
65
66impl ::protobuf::Message for MsgPlaceOrdersResponse {
67    const NAME: &'static str = "MsgPlaceOrdersResponse";
68
69    fn is_initialized(&self) -> bool {
70        true
71    }
72
73    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
74        while let Some(tag) = is.read_raw_tag_or_eof()? {
75            match tag {
76                10 => {
77                    is.read_repeated_packed_uint64_into(&mut self.order_ids)?;
78                },
79                8 => {
80                    self.order_ids.push(is.read_uint64()?);
81                },
82                tag => {
83                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
84                },
85            };
86        }
87        ::std::result::Result::Ok(())
88    }
89
90    // Compute sizes of nested messages
91    #[allow(unused_variables)]
92    fn compute_size(&self) -> u64 {
93        let mut my_size = 0;
94        for value in &self.order_ids {
95            my_size += ::protobuf::rt::uint64_size(1, *value);
96        };
97        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
98        self.special_fields.cached_size().set(my_size as u32);
99        my_size
100    }
101
102    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
103        for v in &self.order_ids {
104            os.write_uint64(1, *v)?;
105        };
106        os.write_unknown_fields(self.special_fields.unknown_fields())?;
107        ::std::result::Result::Ok(())
108    }
109
110    fn special_fields(&self) -> &::protobuf::SpecialFields {
111        &self.special_fields
112    }
113
114    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
115        &mut self.special_fields
116    }
117
118    fn new() -> MsgPlaceOrdersResponse {
119        MsgPlaceOrdersResponse::new()
120    }
121
122    fn clear(&mut self) {
123        self.order_ids.clear();
124        self.special_fields.clear();
125    }
126
127    fn default_instance() -> &'static MsgPlaceOrdersResponse {
128        static instance: MsgPlaceOrdersResponse = MsgPlaceOrdersResponse {
129            order_ids: ::std::vec::Vec::new(),
130            special_fields: ::protobuf::SpecialFields::new(),
131        };
132        &instance
133    }
134}
135
136impl ::protobuf::MessageFull for MsgPlaceOrdersResponse {
137    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
138        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
139        descriptor.get(|| file_descriptor().message_by_package_relative_name("MsgPlaceOrdersResponse").unwrap()).clone()
140    }
141}
142
143impl ::std::fmt::Display for MsgPlaceOrdersResponse {
144    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
145        ::protobuf::text_format::fmt(self, f)
146    }
147}
148
149impl ::protobuf::reflect::ProtobufValue for MsgPlaceOrdersResponse {
150    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
151}
152
153static file_descriptor_proto_data: &'static [u8] = b"\
154    \n\x08tx.proto\"5\n\x16MsgPlaceOrdersResponse\x12\x1b\n\torder_ids\x18\
155    \x01\x20\x03(\x04R\x08orderIdsJo\n\x06\x12\x04\0\0\x04\x01\n\x08\n\x01\
156    \x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x04\x01\n\n\n\x03\x04\
157    \0\x01\x12\x03\x02\x08\x1e\n\x0b\n\x04\x04\0\x02\0\x12\x03\x03\x02\x20\n\
158    \x0c\n\x05\x04\0\x02\0\x04\x12\x03\x03\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\
159    \x12\x03\x03\x0b\x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x03\x12\x1b\n\
160    \x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03\x1e\x1fb\x06proto3\
161";
162
163/// `FileDescriptorProto` object which was a source for this generated file
164fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
165    static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
166    file_descriptor_proto_lazy.get(|| {
167        ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
168    })
169}
170
171/// `FileDescriptor` object which allows dynamic access to files
172pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
173    static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
174    static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
175    file_descriptor.get(|| {
176        let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
177            let mut deps = ::std::vec::Vec::with_capacity(0);
178            let mut messages = ::std::vec::Vec::with_capacity(1);
179            messages.push(MsgPlaceOrdersResponse::generated_message_descriptor_data());
180            let mut enums = ::std::vec::Vec::with_capacity(0);
181            ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
182                file_descriptor_proto(),
183                deps,
184                messages,
185                enums,
186            )
187        });
188        ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
189    })
190}