@dashevo/dapi-grpc 0.25.0-dev.9 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3555 +0,0 @@
1
- // This file is generated by rust-protobuf 3.2.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 `platform.proto`
23
-
24
- /// Generated files are compatible only with the same version
25
- /// of protobuf runtime.
26
- const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
27
-
28
- #[derive(PartialEq,Clone,Default,Debug)]
29
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.Proof)
30
- pub struct Proof {
31
- // message fields
32
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.Proof.merkle_proof)
33
- pub merkle_proof: ::std::vec::Vec<u8>,
34
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.Proof.quorum_hash)
35
- pub quorum_hash: ::std::vec::Vec<u8>,
36
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.Proof.signature)
37
- pub signature: ::std::vec::Vec<u8>,
38
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.Proof.round)
39
- pub round: u32,
40
- // special fields
41
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.Proof.special_fields)
42
- pub special_fields: ::protobuf::SpecialFields,
43
- }
44
-
45
- impl<'a> ::std::default::Default for &'a Proof {
46
- fn default() -> &'a Proof {
47
- <Proof as ::protobuf::Message>::default_instance()
48
- }
49
- }
50
-
51
- impl Proof {
52
- pub fn new() -> Proof {
53
- ::std::default::Default::default()
54
- }
55
-
56
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
57
- let mut fields = ::std::vec::Vec::with_capacity(4);
58
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
59
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
60
- "merkle_proof",
61
- |m: &Proof| { &m.merkle_proof },
62
- |m: &mut Proof| { &mut m.merkle_proof },
63
- ));
64
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
65
- "quorum_hash",
66
- |m: &Proof| { &m.quorum_hash },
67
- |m: &mut Proof| { &mut m.quorum_hash },
68
- ));
69
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
70
- "signature",
71
- |m: &Proof| { &m.signature },
72
- |m: &mut Proof| { &mut m.signature },
73
- ));
74
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
75
- "round",
76
- |m: &Proof| { &m.round },
77
- |m: &mut Proof| { &mut m.round },
78
- ));
79
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Proof>(
80
- "Proof",
81
- fields,
82
- oneofs,
83
- )
84
- }
85
- }
86
-
87
- impl ::protobuf::Message for Proof {
88
- const NAME: &'static str = "Proof";
89
-
90
- fn is_initialized(&self) -> bool {
91
- true
92
- }
93
-
94
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
95
- while let Some(tag) = is.read_raw_tag_or_eof()? {
96
- match tag {
97
- 10 => {
98
- self.merkle_proof = is.read_bytes()?;
99
- },
100
- 18 => {
101
- self.quorum_hash = is.read_bytes()?;
102
- },
103
- 26 => {
104
- self.signature = is.read_bytes()?;
105
- },
106
- 32 => {
107
- self.round = is.read_uint32()?;
108
- },
109
- tag => {
110
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
111
- },
112
- };
113
- }
114
- ::std::result::Result::Ok(())
115
- }
116
-
117
- // Compute sizes of nested messages
118
- #[allow(unused_variables)]
119
- fn compute_size(&self) -> u64 {
120
- let mut my_size = 0;
121
- if !self.merkle_proof.is_empty() {
122
- my_size += ::protobuf::rt::bytes_size(1, &self.merkle_proof);
123
- }
124
- if !self.quorum_hash.is_empty() {
125
- my_size += ::protobuf::rt::bytes_size(2, &self.quorum_hash);
126
- }
127
- if !self.signature.is_empty() {
128
- my_size += ::protobuf::rt::bytes_size(3, &self.signature);
129
- }
130
- if self.round != 0 {
131
- my_size += ::protobuf::rt::uint32_size(4, self.round);
132
- }
133
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
134
- self.special_fields.cached_size().set(my_size as u32);
135
- my_size
136
- }
137
-
138
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
139
- if !self.merkle_proof.is_empty() {
140
- os.write_bytes(1, &self.merkle_proof)?;
141
- }
142
- if !self.quorum_hash.is_empty() {
143
- os.write_bytes(2, &self.quorum_hash)?;
144
- }
145
- if !self.signature.is_empty() {
146
- os.write_bytes(3, &self.signature)?;
147
- }
148
- if self.round != 0 {
149
- os.write_uint32(4, self.round)?;
150
- }
151
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
152
- ::std::result::Result::Ok(())
153
- }
154
-
155
- fn special_fields(&self) -> &::protobuf::SpecialFields {
156
- &self.special_fields
157
- }
158
-
159
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
160
- &mut self.special_fields
161
- }
162
-
163
- fn new() -> Proof {
164
- Proof::new()
165
- }
166
-
167
- fn clear(&mut self) {
168
- self.merkle_proof.clear();
169
- self.quorum_hash.clear();
170
- self.signature.clear();
171
- self.round = 0;
172
- self.special_fields.clear();
173
- }
174
-
175
- fn default_instance() -> &'static Proof {
176
- static instance: Proof = Proof {
177
- merkle_proof: ::std::vec::Vec::new(),
178
- quorum_hash: ::std::vec::Vec::new(),
179
- signature: ::std::vec::Vec::new(),
180
- round: 0,
181
- special_fields: ::protobuf::SpecialFields::new(),
182
- };
183
- &instance
184
- }
185
- }
186
-
187
- impl ::protobuf::MessageFull for Proof {
188
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
189
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
190
- descriptor.get(|| file_descriptor().message_by_package_relative_name("Proof").unwrap()).clone()
191
- }
192
- }
193
-
194
- impl ::std::fmt::Display for Proof {
195
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
196
- ::protobuf::text_format::fmt(self, f)
197
- }
198
- }
199
-
200
- impl ::protobuf::reflect::ProtobufValue for Proof {
201
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
202
- }
203
-
204
- #[derive(PartialEq,Clone,Default,Debug)]
205
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.ResponseMetadata)
206
- pub struct ResponseMetadata {
207
- // message fields
208
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ResponseMetadata.height)
209
- pub height: i64,
210
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ResponseMetadata.core_chain_locked_height)
211
- pub core_chain_locked_height: u32,
212
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ResponseMetadata.time_ms)
213
- pub time_ms: u64,
214
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ResponseMetadata.protocol_version)
215
- pub protocol_version: u32,
216
- // special fields
217
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.ResponseMetadata.special_fields)
218
- pub special_fields: ::protobuf::SpecialFields,
219
- }
220
-
221
- impl<'a> ::std::default::Default for &'a ResponseMetadata {
222
- fn default() -> &'a ResponseMetadata {
223
- <ResponseMetadata as ::protobuf::Message>::default_instance()
224
- }
225
- }
226
-
227
- impl ResponseMetadata {
228
- pub fn new() -> ResponseMetadata {
229
- ::std::default::Default::default()
230
- }
231
-
232
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
233
- let mut fields = ::std::vec::Vec::with_capacity(4);
234
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
235
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
236
- "height",
237
- |m: &ResponseMetadata| { &m.height },
238
- |m: &mut ResponseMetadata| { &mut m.height },
239
- ));
240
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
241
- "core_chain_locked_height",
242
- |m: &ResponseMetadata| { &m.core_chain_locked_height },
243
- |m: &mut ResponseMetadata| { &mut m.core_chain_locked_height },
244
- ));
245
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
246
- "time_ms",
247
- |m: &ResponseMetadata| { &m.time_ms },
248
- |m: &mut ResponseMetadata| { &mut m.time_ms },
249
- ));
250
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
251
- "protocol_version",
252
- |m: &ResponseMetadata| { &m.protocol_version },
253
- |m: &mut ResponseMetadata| { &mut m.protocol_version },
254
- ));
255
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ResponseMetadata>(
256
- "ResponseMetadata",
257
- fields,
258
- oneofs,
259
- )
260
- }
261
- }
262
-
263
- impl ::protobuf::Message for ResponseMetadata {
264
- const NAME: &'static str = "ResponseMetadata";
265
-
266
- fn is_initialized(&self) -> bool {
267
- true
268
- }
269
-
270
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
271
- while let Some(tag) = is.read_raw_tag_or_eof()? {
272
- match tag {
273
- 8 => {
274
- self.height = is.read_int64()?;
275
- },
276
- 16 => {
277
- self.core_chain_locked_height = is.read_uint32()?;
278
- },
279
- 24 => {
280
- self.time_ms = is.read_uint64()?;
281
- },
282
- 32 => {
283
- self.protocol_version = is.read_uint32()?;
284
- },
285
- tag => {
286
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
287
- },
288
- };
289
- }
290
- ::std::result::Result::Ok(())
291
- }
292
-
293
- // Compute sizes of nested messages
294
- #[allow(unused_variables)]
295
- fn compute_size(&self) -> u64 {
296
- let mut my_size = 0;
297
- if self.height != 0 {
298
- my_size += ::protobuf::rt::int64_size(1, self.height);
299
- }
300
- if self.core_chain_locked_height != 0 {
301
- my_size += ::protobuf::rt::uint32_size(2, self.core_chain_locked_height);
302
- }
303
- if self.time_ms != 0 {
304
- my_size += ::protobuf::rt::uint64_size(3, self.time_ms);
305
- }
306
- if self.protocol_version != 0 {
307
- my_size += ::protobuf::rt::uint32_size(4, self.protocol_version);
308
- }
309
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
310
- self.special_fields.cached_size().set(my_size as u32);
311
- my_size
312
- }
313
-
314
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
315
- if self.height != 0 {
316
- os.write_int64(1, self.height)?;
317
- }
318
- if self.core_chain_locked_height != 0 {
319
- os.write_uint32(2, self.core_chain_locked_height)?;
320
- }
321
- if self.time_ms != 0 {
322
- os.write_uint64(3, self.time_ms)?;
323
- }
324
- if self.protocol_version != 0 {
325
- os.write_uint32(4, self.protocol_version)?;
326
- }
327
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
328
- ::std::result::Result::Ok(())
329
- }
330
-
331
- fn special_fields(&self) -> &::protobuf::SpecialFields {
332
- &self.special_fields
333
- }
334
-
335
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
336
- &mut self.special_fields
337
- }
338
-
339
- fn new() -> ResponseMetadata {
340
- ResponseMetadata::new()
341
- }
342
-
343
- fn clear(&mut self) {
344
- self.height = 0;
345
- self.core_chain_locked_height = 0;
346
- self.time_ms = 0;
347
- self.protocol_version = 0;
348
- self.special_fields.clear();
349
- }
350
-
351
- fn default_instance() -> &'static ResponseMetadata {
352
- static instance: ResponseMetadata = ResponseMetadata {
353
- height: 0,
354
- core_chain_locked_height: 0,
355
- time_ms: 0,
356
- protocol_version: 0,
357
- special_fields: ::protobuf::SpecialFields::new(),
358
- };
359
- &instance
360
- }
361
- }
362
-
363
- impl ::protobuf::MessageFull for ResponseMetadata {
364
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
365
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
366
- descriptor.get(|| file_descriptor().message_by_package_relative_name("ResponseMetadata").unwrap()).clone()
367
- }
368
- }
369
-
370
- impl ::std::fmt::Display for ResponseMetadata {
371
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
372
- ::protobuf::text_format::fmt(self, f)
373
- }
374
- }
375
-
376
- impl ::protobuf::reflect::ProtobufValue for ResponseMetadata {
377
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
378
- }
379
-
380
- #[derive(PartialEq,Clone,Default,Debug)]
381
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.StateTransitionBroadcastError)
382
- pub struct StateTransitionBroadcastError {
383
- // message fields
384
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.StateTransitionBroadcastError.code)
385
- pub code: u32,
386
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.StateTransitionBroadcastError.message)
387
- pub message: ::std::string::String,
388
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.StateTransitionBroadcastError.data)
389
- pub data: ::std::vec::Vec<u8>,
390
- // special fields
391
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.StateTransitionBroadcastError.special_fields)
392
- pub special_fields: ::protobuf::SpecialFields,
393
- }
394
-
395
- impl<'a> ::std::default::Default for &'a StateTransitionBroadcastError {
396
- fn default() -> &'a StateTransitionBroadcastError {
397
- <StateTransitionBroadcastError as ::protobuf::Message>::default_instance()
398
- }
399
- }
400
-
401
- impl StateTransitionBroadcastError {
402
- pub fn new() -> StateTransitionBroadcastError {
403
- ::std::default::Default::default()
404
- }
405
-
406
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
407
- let mut fields = ::std::vec::Vec::with_capacity(3);
408
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
409
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
410
- "code",
411
- |m: &StateTransitionBroadcastError| { &m.code },
412
- |m: &mut StateTransitionBroadcastError| { &mut m.code },
413
- ));
414
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
415
- "message",
416
- |m: &StateTransitionBroadcastError| { &m.message },
417
- |m: &mut StateTransitionBroadcastError| { &mut m.message },
418
- ));
419
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
420
- "data",
421
- |m: &StateTransitionBroadcastError| { &m.data },
422
- |m: &mut StateTransitionBroadcastError| { &mut m.data },
423
- ));
424
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<StateTransitionBroadcastError>(
425
- "StateTransitionBroadcastError",
426
- fields,
427
- oneofs,
428
- )
429
- }
430
- }
431
-
432
- impl ::protobuf::Message for StateTransitionBroadcastError {
433
- const NAME: &'static str = "StateTransitionBroadcastError";
434
-
435
- fn is_initialized(&self) -> bool {
436
- true
437
- }
438
-
439
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
440
- while let Some(tag) = is.read_raw_tag_or_eof()? {
441
- match tag {
442
- 8 => {
443
- self.code = is.read_uint32()?;
444
- },
445
- 18 => {
446
- self.message = is.read_string()?;
447
- },
448
- 26 => {
449
- self.data = is.read_bytes()?;
450
- },
451
- tag => {
452
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
453
- },
454
- };
455
- }
456
- ::std::result::Result::Ok(())
457
- }
458
-
459
- // Compute sizes of nested messages
460
- #[allow(unused_variables)]
461
- fn compute_size(&self) -> u64 {
462
- let mut my_size = 0;
463
- if self.code != 0 {
464
- my_size += ::protobuf::rt::uint32_size(1, self.code);
465
- }
466
- if !self.message.is_empty() {
467
- my_size += ::protobuf::rt::string_size(2, &self.message);
468
- }
469
- if !self.data.is_empty() {
470
- my_size += ::protobuf::rt::bytes_size(3, &self.data);
471
- }
472
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
473
- self.special_fields.cached_size().set(my_size as u32);
474
- my_size
475
- }
476
-
477
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
478
- if self.code != 0 {
479
- os.write_uint32(1, self.code)?;
480
- }
481
- if !self.message.is_empty() {
482
- os.write_string(2, &self.message)?;
483
- }
484
- if !self.data.is_empty() {
485
- os.write_bytes(3, &self.data)?;
486
- }
487
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
488
- ::std::result::Result::Ok(())
489
- }
490
-
491
- fn special_fields(&self) -> &::protobuf::SpecialFields {
492
- &self.special_fields
493
- }
494
-
495
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
496
- &mut self.special_fields
497
- }
498
-
499
- fn new() -> StateTransitionBroadcastError {
500
- StateTransitionBroadcastError::new()
501
- }
502
-
503
- fn clear(&mut self) {
504
- self.code = 0;
505
- self.message.clear();
506
- self.data.clear();
507
- self.special_fields.clear();
508
- }
509
-
510
- fn default_instance() -> &'static StateTransitionBroadcastError {
511
- static instance: StateTransitionBroadcastError = StateTransitionBroadcastError {
512
- code: 0,
513
- message: ::std::string::String::new(),
514
- data: ::std::vec::Vec::new(),
515
- special_fields: ::protobuf::SpecialFields::new(),
516
- };
517
- &instance
518
- }
519
- }
520
-
521
- impl ::protobuf::MessageFull for StateTransitionBroadcastError {
522
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
523
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
524
- descriptor.get(|| file_descriptor().message_by_package_relative_name("StateTransitionBroadcastError").unwrap()).clone()
525
- }
526
- }
527
-
528
- impl ::std::fmt::Display for StateTransitionBroadcastError {
529
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
530
- ::protobuf::text_format::fmt(self, f)
531
- }
532
- }
533
-
534
- impl ::protobuf::reflect::ProtobufValue for StateTransitionBroadcastError {
535
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
536
- }
537
-
538
- #[derive(PartialEq,Clone,Default,Debug)]
539
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.BroadcastStateTransitionRequest)
540
- pub struct BroadcastStateTransitionRequest {
541
- // message fields
542
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.BroadcastStateTransitionRequest.state_transition)
543
- pub state_transition: ::std::vec::Vec<u8>,
544
- // special fields
545
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.BroadcastStateTransitionRequest.special_fields)
546
- pub special_fields: ::protobuf::SpecialFields,
547
- }
548
-
549
- impl<'a> ::std::default::Default for &'a BroadcastStateTransitionRequest {
550
- fn default() -> &'a BroadcastStateTransitionRequest {
551
- <BroadcastStateTransitionRequest as ::protobuf::Message>::default_instance()
552
- }
553
- }
554
-
555
- impl BroadcastStateTransitionRequest {
556
- pub fn new() -> BroadcastStateTransitionRequest {
557
- ::std::default::Default::default()
558
- }
559
-
560
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
561
- let mut fields = ::std::vec::Vec::with_capacity(1);
562
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
563
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
564
- "state_transition",
565
- |m: &BroadcastStateTransitionRequest| { &m.state_transition },
566
- |m: &mut BroadcastStateTransitionRequest| { &mut m.state_transition },
567
- ));
568
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<BroadcastStateTransitionRequest>(
569
- "BroadcastStateTransitionRequest",
570
- fields,
571
- oneofs,
572
- )
573
- }
574
- }
575
-
576
- impl ::protobuf::Message for BroadcastStateTransitionRequest {
577
- const NAME: &'static str = "BroadcastStateTransitionRequest";
578
-
579
- fn is_initialized(&self) -> bool {
580
- true
581
- }
582
-
583
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
584
- while let Some(tag) = is.read_raw_tag_or_eof()? {
585
- match tag {
586
- 10 => {
587
- self.state_transition = is.read_bytes()?;
588
- },
589
- tag => {
590
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
591
- },
592
- };
593
- }
594
- ::std::result::Result::Ok(())
595
- }
596
-
597
- // Compute sizes of nested messages
598
- #[allow(unused_variables)]
599
- fn compute_size(&self) -> u64 {
600
- let mut my_size = 0;
601
- if !self.state_transition.is_empty() {
602
- my_size += ::protobuf::rt::bytes_size(1, &self.state_transition);
603
- }
604
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
605
- self.special_fields.cached_size().set(my_size as u32);
606
- my_size
607
- }
608
-
609
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
610
- if !self.state_transition.is_empty() {
611
- os.write_bytes(1, &self.state_transition)?;
612
- }
613
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
614
- ::std::result::Result::Ok(())
615
- }
616
-
617
- fn special_fields(&self) -> &::protobuf::SpecialFields {
618
- &self.special_fields
619
- }
620
-
621
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
622
- &mut self.special_fields
623
- }
624
-
625
- fn new() -> BroadcastStateTransitionRequest {
626
- BroadcastStateTransitionRequest::new()
627
- }
628
-
629
- fn clear(&mut self) {
630
- self.state_transition.clear();
631
- self.special_fields.clear();
632
- }
633
-
634
- fn default_instance() -> &'static BroadcastStateTransitionRequest {
635
- static instance: BroadcastStateTransitionRequest = BroadcastStateTransitionRequest {
636
- state_transition: ::std::vec::Vec::new(),
637
- special_fields: ::protobuf::SpecialFields::new(),
638
- };
639
- &instance
640
- }
641
- }
642
-
643
- impl ::protobuf::MessageFull for BroadcastStateTransitionRequest {
644
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
645
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
646
- descriptor.get(|| file_descriptor().message_by_package_relative_name("BroadcastStateTransitionRequest").unwrap()).clone()
647
- }
648
- }
649
-
650
- impl ::std::fmt::Display for BroadcastStateTransitionRequest {
651
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
652
- ::protobuf::text_format::fmt(self, f)
653
- }
654
- }
655
-
656
- impl ::protobuf::reflect::ProtobufValue for BroadcastStateTransitionRequest {
657
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
658
- }
659
-
660
- #[derive(PartialEq,Clone,Default,Debug)]
661
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.BroadcastStateTransitionResponse)
662
- pub struct BroadcastStateTransitionResponse {
663
- // special fields
664
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.BroadcastStateTransitionResponse.special_fields)
665
- pub special_fields: ::protobuf::SpecialFields,
666
- }
667
-
668
- impl<'a> ::std::default::Default for &'a BroadcastStateTransitionResponse {
669
- fn default() -> &'a BroadcastStateTransitionResponse {
670
- <BroadcastStateTransitionResponse as ::protobuf::Message>::default_instance()
671
- }
672
- }
673
-
674
- impl BroadcastStateTransitionResponse {
675
- pub fn new() -> BroadcastStateTransitionResponse {
676
- ::std::default::Default::default()
677
- }
678
-
679
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
680
- let mut fields = ::std::vec::Vec::with_capacity(0);
681
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
682
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<BroadcastStateTransitionResponse>(
683
- "BroadcastStateTransitionResponse",
684
- fields,
685
- oneofs,
686
- )
687
- }
688
- }
689
-
690
- impl ::protobuf::Message for BroadcastStateTransitionResponse {
691
- const NAME: &'static str = "BroadcastStateTransitionResponse";
692
-
693
- fn is_initialized(&self) -> bool {
694
- true
695
- }
696
-
697
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
698
- while let Some(tag) = is.read_raw_tag_or_eof()? {
699
- match tag {
700
- tag => {
701
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
702
- },
703
- };
704
- }
705
- ::std::result::Result::Ok(())
706
- }
707
-
708
- // Compute sizes of nested messages
709
- #[allow(unused_variables)]
710
- fn compute_size(&self) -> u64 {
711
- let mut my_size = 0;
712
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
713
- self.special_fields.cached_size().set(my_size as u32);
714
- my_size
715
- }
716
-
717
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
718
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
719
- ::std::result::Result::Ok(())
720
- }
721
-
722
- fn special_fields(&self) -> &::protobuf::SpecialFields {
723
- &self.special_fields
724
- }
725
-
726
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
727
- &mut self.special_fields
728
- }
729
-
730
- fn new() -> BroadcastStateTransitionResponse {
731
- BroadcastStateTransitionResponse::new()
732
- }
733
-
734
- fn clear(&mut self) {
735
- self.special_fields.clear();
736
- }
737
-
738
- fn default_instance() -> &'static BroadcastStateTransitionResponse {
739
- static instance: BroadcastStateTransitionResponse = BroadcastStateTransitionResponse {
740
- special_fields: ::protobuf::SpecialFields::new(),
741
- };
742
- &instance
743
- }
744
- }
745
-
746
- impl ::protobuf::MessageFull for BroadcastStateTransitionResponse {
747
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
748
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
749
- descriptor.get(|| file_descriptor().message_by_package_relative_name("BroadcastStateTransitionResponse").unwrap()).clone()
750
- }
751
- }
752
-
753
- impl ::std::fmt::Display for BroadcastStateTransitionResponse {
754
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
755
- ::protobuf::text_format::fmt(self, f)
756
- }
757
- }
758
-
759
- impl ::protobuf::reflect::ProtobufValue for BroadcastStateTransitionResponse {
760
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
761
- }
762
-
763
- #[derive(PartialEq,Clone,Default,Debug)]
764
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetIdentityRequest)
765
- pub struct GetIdentityRequest {
766
- // message fields
767
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentityRequest.id)
768
- pub id: ::std::vec::Vec<u8>,
769
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentityRequest.prove)
770
- pub prove: bool,
771
- // special fields
772
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetIdentityRequest.special_fields)
773
- pub special_fields: ::protobuf::SpecialFields,
774
- }
775
-
776
- impl<'a> ::std::default::Default for &'a GetIdentityRequest {
777
- fn default() -> &'a GetIdentityRequest {
778
- <GetIdentityRequest as ::protobuf::Message>::default_instance()
779
- }
780
- }
781
-
782
- impl GetIdentityRequest {
783
- pub fn new() -> GetIdentityRequest {
784
- ::std::default::Default::default()
785
- }
786
-
787
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
788
- let mut fields = ::std::vec::Vec::with_capacity(2);
789
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
790
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
791
- "id",
792
- |m: &GetIdentityRequest| { &m.id },
793
- |m: &mut GetIdentityRequest| { &mut m.id },
794
- ));
795
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
796
- "prove",
797
- |m: &GetIdentityRequest| { &m.prove },
798
- |m: &mut GetIdentityRequest| { &mut m.prove },
799
- ));
800
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetIdentityRequest>(
801
- "GetIdentityRequest",
802
- fields,
803
- oneofs,
804
- )
805
- }
806
- }
807
-
808
- impl ::protobuf::Message for GetIdentityRequest {
809
- const NAME: &'static str = "GetIdentityRequest";
810
-
811
- fn is_initialized(&self) -> bool {
812
- true
813
- }
814
-
815
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
816
- while let Some(tag) = is.read_raw_tag_or_eof()? {
817
- match tag {
818
- 10 => {
819
- self.id = is.read_bytes()?;
820
- },
821
- 16 => {
822
- self.prove = is.read_bool()?;
823
- },
824
- tag => {
825
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
826
- },
827
- };
828
- }
829
- ::std::result::Result::Ok(())
830
- }
831
-
832
- // Compute sizes of nested messages
833
- #[allow(unused_variables)]
834
- fn compute_size(&self) -> u64 {
835
- let mut my_size = 0;
836
- if !self.id.is_empty() {
837
- my_size += ::protobuf::rt::bytes_size(1, &self.id);
838
- }
839
- if self.prove != false {
840
- my_size += 1 + 1;
841
- }
842
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
843
- self.special_fields.cached_size().set(my_size as u32);
844
- my_size
845
- }
846
-
847
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
848
- if !self.id.is_empty() {
849
- os.write_bytes(1, &self.id)?;
850
- }
851
- if self.prove != false {
852
- os.write_bool(2, self.prove)?;
853
- }
854
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
855
- ::std::result::Result::Ok(())
856
- }
857
-
858
- fn special_fields(&self) -> &::protobuf::SpecialFields {
859
- &self.special_fields
860
- }
861
-
862
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
863
- &mut self.special_fields
864
- }
865
-
866
- fn new() -> GetIdentityRequest {
867
- GetIdentityRequest::new()
868
- }
869
-
870
- fn clear(&mut self) {
871
- self.id.clear();
872
- self.prove = false;
873
- self.special_fields.clear();
874
- }
875
-
876
- fn default_instance() -> &'static GetIdentityRequest {
877
- static instance: GetIdentityRequest = GetIdentityRequest {
878
- id: ::std::vec::Vec::new(),
879
- prove: false,
880
- special_fields: ::protobuf::SpecialFields::new(),
881
- };
882
- &instance
883
- }
884
- }
885
-
886
- impl ::protobuf::MessageFull for GetIdentityRequest {
887
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
888
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
889
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetIdentityRequest").unwrap()).clone()
890
- }
891
- }
892
-
893
- impl ::std::fmt::Display for GetIdentityRequest {
894
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
895
- ::protobuf::text_format::fmt(self, f)
896
- }
897
- }
898
-
899
- impl ::protobuf::reflect::ProtobufValue for GetIdentityRequest {
900
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
901
- }
902
-
903
- #[derive(PartialEq,Clone,Default,Debug)]
904
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetIdentityResponse)
905
- pub struct GetIdentityResponse {
906
- // message fields
907
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentityResponse.identity)
908
- pub identity: ::std::vec::Vec<u8>,
909
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentityResponse.proof)
910
- pub proof: ::protobuf::MessageField<Proof>,
911
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentityResponse.metadata)
912
- pub metadata: ::protobuf::MessageField<ResponseMetadata>,
913
- // special fields
914
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetIdentityResponse.special_fields)
915
- pub special_fields: ::protobuf::SpecialFields,
916
- }
917
-
918
- impl<'a> ::std::default::Default for &'a GetIdentityResponse {
919
- fn default() -> &'a GetIdentityResponse {
920
- <GetIdentityResponse as ::protobuf::Message>::default_instance()
921
- }
922
- }
923
-
924
- impl GetIdentityResponse {
925
- pub fn new() -> GetIdentityResponse {
926
- ::std::default::Default::default()
927
- }
928
-
929
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
930
- let mut fields = ::std::vec::Vec::with_capacity(3);
931
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
932
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
933
- "identity",
934
- |m: &GetIdentityResponse| { &m.identity },
935
- |m: &mut GetIdentityResponse| { &mut m.identity },
936
- ));
937
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Proof>(
938
- "proof",
939
- |m: &GetIdentityResponse| { &m.proof },
940
- |m: &mut GetIdentityResponse| { &mut m.proof },
941
- ));
942
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResponseMetadata>(
943
- "metadata",
944
- |m: &GetIdentityResponse| { &m.metadata },
945
- |m: &mut GetIdentityResponse| { &mut m.metadata },
946
- ));
947
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetIdentityResponse>(
948
- "GetIdentityResponse",
949
- fields,
950
- oneofs,
951
- )
952
- }
953
- }
954
-
955
- impl ::protobuf::Message for GetIdentityResponse {
956
- const NAME: &'static str = "GetIdentityResponse";
957
-
958
- fn is_initialized(&self) -> bool {
959
- true
960
- }
961
-
962
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
963
- while let Some(tag) = is.read_raw_tag_or_eof()? {
964
- match tag {
965
- 10 => {
966
- self.identity = is.read_bytes()?;
967
- },
968
- 18 => {
969
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.proof)?;
970
- },
971
- 26 => {
972
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
973
- },
974
- tag => {
975
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
976
- },
977
- };
978
- }
979
- ::std::result::Result::Ok(())
980
- }
981
-
982
- // Compute sizes of nested messages
983
- #[allow(unused_variables)]
984
- fn compute_size(&self) -> u64 {
985
- let mut my_size = 0;
986
- if !self.identity.is_empty() {
987
- my_size += ::protobuf::rt::bytes_size(1, &self.identity);
988
- }
989
- if let Some(v) = self.proof.as_ref() {
990
- let len = v.compute_size();
991
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
992
- }
993
- if let Some(v) = self.metadata.as_ref() {
994
- let len = v.compute_size();
995
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
996
- }
997
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
998
- self.special_fields.cached_size().set(my_size as u32);
999
- my_size
1000
- }
1001
-
1002
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1003
- if !self.identity.is_empty() {
1004
- os.write_bytes(1, &self.identity)?;
1005
- }
1006
- if let Some(v) = self.proof.as_ref() {
1007
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1008
- }
1009
- if let Some(v) = self.metadata.as_ref() {
1010
- ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
1011
- }
1012
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1013
- ::std::result::Result::Ok(())
1014
- }
1015
-
1016
- fn special_fields(&self) -> &::protobuf::SpecialFields {
1017
- &self.special_fields
1018
- }
1019
-
1020
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1021
- &mut self.special_fields
1022
- }
1023
-
1024
- fn new() -> GetIdentityResponse {
1025
- GetIdentityResponse::new()
1026
- }
1027
-
1028
- fn clear(&mut self) {
1029
- self.identity.clear();
1030
- self.proof.clear();
1031
- self.metadata.clear();
1032
- self.special_fields.clear();
1033
- }
1034
-
1035
- fn default_instance() -> &'static GetIdentityResponse {
1036
- static instance: GetIdentityResponse = GetIdentityResponse {
1037
- identity: ::std::vec::Vec::new(),
1038
- proof: ::protobuf::MessageField::none(),
1039
- metadata: ::protobuf::MessageField::none(),
1040
- special_fields: ::protobuf::SpecialFields::new(),
1041
- };
1042
- &instance
1043
- }
1044
- }
1045
-
1046
- impl ::protobuf::MessageFull for GetIdentityResponse {
1047
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1048
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1049
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetIdentityResponse").unwrap()).clone()
1050
- }
1051
- }
1052
-
1053
- impl ::std::fmt::Display for GetIdentityResponse {
1054
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1055
- ::protobuf::text_format::fmt(self, f)
1056
- }
1057
- }
1058
-
1059
- impl ::protobuf::reflect::ProtobufValue for GetIdentityResponse {
1060
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1061
- }
1062
-
1063
- #[derive(PartialEq,Clone,Default,Debug)]
1064
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetDataContractRequest)
1065
- pub struct GetDataContractRequest {
1066
- // message fields
1067
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDataContractRequest.id)
1068
- pub id: ::std::vec::Vec<u8>,
1069
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDataContractRequest.prove)
1070
- pub prove: bool,
1071
- // special fields
1072
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetDataContractRequest.special_fields)
1073
- pub special_fields: ::protobuf::SpecialFields,
1074
- }
1075
-
1076
- impl<'a> ::std::default::Default for &'a GetDataContractRequest {
1077
- fn default() -> &'a GetDataContractRequest {
1078
- <GetDataContractRequest as ::protobuf::Message>::default_instance()
1079
- }
1080
- }
1081
-
1082
- impl GetDataContractRequest {
1083
- pub fn new() -> GetDataContractRequest {
1084
- ::std::default::Default::default()
1085
- }
1086
-
1087
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1088
- let mut fields = ::std::vec::Vec::with_capacity(2);
1089
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
1090
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1091
- "id",
1092
- |m: &GetDataContractRequest| { &m.id },
1093
- |m: &mut GetDataContractRequest| { &mut m.id },
1094
- ));
1095
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1096
- "prove",
1097
- |m: &GetDataContractRequest| { &m.prove },
1098
- |m: &mut GetDataContractRequest| { &mut m.prove },
1099
- ));
1100
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetDataContractRequest>(
1101
- "GetDataContractRequest",
1102
- fields,
1103
- oneofs,
1104
- )
1105
- }
1106
- }
1107
-
1108
- impl ::protobuf::Message for GetDataContractRequest {
1109
- const NAME: &'static str = "GetDataContractRequest";
1110
-
1111
- fn is_initialized(&self) -> bool {
1112
- true
1113
- }
1114
-
1115
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1116
- while let Some(tag) = is.read_raw_tag_or_eof()? {
1117
- match tag {
1118
- 10 => {
1119
- self.id = is.read_bytes()?;
1120
- },
1121
- 16 => {
1122
- self.prove = is.read_bool()?;
1123
- },
1124
- tag => {
1125
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1126
- },
1127
- };
1128
- }
1129
- ::std::result::Result::Ok(())
1130
- }
1131
-
1132
- // Compute sizes of nested messages
1133
- #[allow(unused_variables)]
1134
- fn compute_size(&self) -> u64 {
1135
- let mut my_size = 0;
1136
- if !self.id.is_empty() {
1137
- my_size += ::protobuf::rt::bytes_size(1, &self.id);
1138
- }
1139
- if self.prove != false {
1140
- my_size += 1 + 1;
1141
- }
1142
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1143
- self.special_fields.cached_size().set(my_size as u32);
1144
- my_size
1145
- }
1146
-
1147
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1148
- if !self.id.is_empty() {
1149
- os.write_bytes(1, &self.id)?;
1150
- }
1151
- if self.prove != false {
1152
- os.write_bool(2, self.prove)?;
1153
- }
1154
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1155
- ::std::result::Result::Ok(())
1156
- }
1157
-
1158
- fn special_fields(&self) -> &::protobuf::SpecialFields {
1159
- &self.special_fields
1160
- }
1161
-
1162
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1163
- &mut self.special_fields
1164
- }
1165
-
1166
- fn new() -> GetDataContractRequest {
1167
- GetDataContractRequest::new()
1168
- }
1169
-
1170
- fn clear(&mut self) {
1171
- self.id.clear();
1172
- self.prove = false;
1173
- self.special_fields.clear();
1174
- }
1175
-
1176
- fn default_instance() -> &'static GetDataContractRequest {
1177
- static instance: GetDataContractRequest = GetDataContractRequest {
1178
- id: ::std::vec::Vec::new(),
1179
- prove: false,
1180
- special_fields: ::protobuf::SpecialFields::new(),
1181
- };
1182
- &instance
1183
- }
1184
- }
1185
-
1186
- impl ::protobuf::MessageFull for GetDataContractRequest {
1187
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1188
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1189
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDataContractRequest").unwrap()).clone()
1190
- }
1191
- }
1192
-
1193
- impl ::std::fmt::Display for GetDataContractRequest {
1194
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1195
- ::protobuf::text_format::fmt(self, f)
1196
- }
1197
- }
1198
-
1199
- impl ::protobuf::reflect::ProtobufValue for GetDataContractRequest {
1200
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1201
- }
1202
-
1203
- #[derive(PartialEq,Clone,Default,Debug)]
1204
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetDataContractResponse)
1205
- pub struct GetDataContractResponse {
1206
- // message fields
1207
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDataContractResponse.data_contract)
1208
- pub data_contract: ::std::vec::Vec<u8>,
1209
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDataContractResponse.proof)
1210
- pub proof: ::protobuf::MessageField<Proof>,
1211
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDataContractResponse.metadata)
1212
- pub metadata: ::protobuf::MessageField<ResponseMetadata>,
1213
- // special fields
1214
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetDataContractResponse.special_fields)
1215
- pub special_fields: ::protobuf::SpecialFields,
1216
- }
1217
-
1218
- impl<'a> ::std::default::Default for &'a GetDataContractResponse {
1219
- fn default() -> &'a GetDataContractResponse {
1220
- <GetDataContractResponse as ::protobuf::Message>::default_instance()
1221
- }
1222
- }
1223
-
1224
- impl GetDataContractResponse {
1225
- pub fn new() -> GetDataContractResponse {
1226
- ::std::default::Default::default()
1227
- }
1228
-
1229
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1230
- let mut fields = ::std::vec::Vec::with_capacity(3);
1231
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
1232
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1233
- "data_contract",
1234
- |m: &GetDataContractResponse| { &m.data_contract },
1235
- |m: &mut GetDataContractResponse| { &mut m.data_contract },
1236
- ));
1237
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Proof>(
1238
- "proof",
1239
- |m: &GetDataContractResponse| { &m.proof },
1240
- |m: &mut GetDataContractResponse| { &mut m.proof },
1241
- ));
1242
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResponseMetadata>(
1243
- "metadata",
1244
- |m: &GetDataContractResponse| { &m.metadata },
1245
- |m: &mut GetDataContractResponse| { &mut m.metadata },
1246
- ));
1247
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetDataContractResponse>(
1248
- "GetDataContractResponse",
1249
- fields,
1250
- oneofs,
1251
- )
1252
- }
1253
- }
1254
-
1255
- impl ::protobuf::Message for GetDataContractResponse {
1256
- const NAME: &'static str = "GetDataContractResponse";
1257
-
1258
- fn is_initialized(&self) -> bool {
1259
- true
1260
- }
1261
-
1262
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1263
- while let Some(tag) = is.read_raw_tag_or_eof()? {
1264
- match tag {
1265
- 10 => {
1266
- self.data_contract = is.read_bytes()?;
1267
- },
1268
- 18 => {
1269
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.proof)?;
1270
- },
1271
- 26 => {
1272
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
1273
- },
1274
- tag => {
1275
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1276
- },
1277
- };
1278
- }
1279
- ::std::result::Result::Ok(())
1280
- }
1281
-
1282
- // Compute sizes of nested messages
1283
- #[allow(unused_variables)]
1284
- fn compute_size(&self) -> u64 {
1285
- let mut my_size = 0;
1286
- if !self.data_contract.is_empty() {
1287
- my_size += ::protobuf::rt::bytes_size(1, &self.data_contract);
1288
- }
1289
- if let Some(v) = self.proof.as_ref() {
1290
- let len = v.compute_size();
1291
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1292
- }
1293
- if let Some(v) = self.metadata.as_ref() {
1294
- let len = v.compute_size();
1295
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1296
- }
1297
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1298
- self.special_fields.cached_size().set(my_size as u32);
1299
- my_size
1300
- }
1301
-
1302
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1303
- if !self.data_contract.is_empty() {
1304
- os.write_bytes(1, &self.data_contract)?;
1305
- }
1306
- if let Some(v) = self.proof.as_ref() {
1307
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1308
- }
1309
- if let Some(v) = self.metadata.as_ref() {
1310
- ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
1311
- }
1312
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1313
- ::std::result::Result::Ok(())
1314
- }
1315
-
1316
- fn special_fields(&self) -> &::protobuf::SpecialFields {
1317
- &self.special_fields
1318
- }
1319
-
1320
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1321
- &mut self.special_fields
1322
- }
1323
-
1324
- fn new() -> GetDataContractResponse {
1325
- GetDataContractResponse::new()
1326
- }
1327
-
1328
- fn clear(&mut self) {
1329
- self.data_contract.clear();
1330
- self.proof.clear();
1331
- self.metadata.clear();
1332
- self.special_fields.clear();
1333
- }
1334
-
1335
- fn default_instance() -> &'static GetDataContractResponse {
1336
- static instance: GetDataContractResponse = GetDataContractResponse {
1337
- data_contract: ::std::vec::Vec::new(),
1338
- proof: ::protobuf::MessageField::none(),
1339
- metadata: ::protobuf::MessageField::none(),
1340
- special_fields: ::protobuf::SpecialFields::new(),
1341
- };
1342
- &instance
1343
- }
1344
- }
1345
-
1346
- impl ::protobuf::MessageFull for GetDataContractResponse {
1347
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1348
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1349
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDataContractResponse").unwrap()).clone()
1350
- }
1351
- }
1352
-
1353
- impl ::std::fmt::Display for GetDataContractResponse {
1354
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1355
- ::protobuf::text_format::fmt(self, f)
1356
- }
1357
- }
1358
-
1359
- impl ::protobuf::reflect::ProtobufValue for GetDataContractResponse {
1360
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1361
- }
1362
-
1363
- #[derive(PartialEq,Clone,Default,Debug)]
1364
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetDocumentsRequest)
1365
- pub struct GetDocumentsRequest {
1366
- // message fields
1367
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.data_contract_id)
1368
- pub data_contract_id: ::std::vec::Vec<u8>,
1369
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.document_type)
1370
- pub document_type: ::std::string::String,
1371
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.where)
1372
- pub where_: ::std::vec::Vec<u8>,
1373
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.order_by)
1374
- pub order_by: ::std::vec::Vec<u8>,
1375
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.limit)
1376
- pub limit: u32,
1377
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsRequest.prove)
1378
- pub prove: bool,
1379
- // message oneof groups
1380
- pub start: ::std::option::Option<get_documents_request::Start>,
1381
- // special fields
1382
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetDocumentsRequest.special_fields)
1383
- pub special_fields: ::protobuf::SpecialFields,
1384
- }
1385
-
1386
- impl<'a> ::std::default::Default for &'a GetDocumentsRequest {
1387
- fn default() -> &'a GetDocumentsRequest {
1388
- <GetDocumentsRequest as ::protobuf::Message>::default_instance()
1389
- }
1390
- }
1391
-
1392
- impl GetDocumentsRequest {
1393
- pub fn new() -> GetDocumentsRequest {
1394
- ::std::default::Default::default()
1395
- }
1396
-
1397
- // bytes start_after = 6;
1398
-
1399
- pub fn start_after(&self) -> &[u8] {
1400
- match self.start {
1401
- ::std::option::Option::Some(get_documents_request::Start::StartAfter(ref v)) => v,
1402
- _ => &[],
1403
- }
1404
- }
1405
-
1406
- pub fn clear_start_after(&mut self) {
1407
- self.start = ::std::option::Option::None;
1408
- }
1409
-
1410
- pub fn has_start_after(&self) -> bool {
1411
- match self.start {
1412
- ::std::option::Option::Some(get_documents_request::Start::StartAfter(..)) => true,
1413
- _ => false,
1414
- }
1415
- }
1416
-
1417
- // Param is passed by value, moved
1418
- pub fn set_start_after(&mut self, v: ::std::vec::Vec<u8>) {
1419
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAfter(v))
1420
- }
1421
-
1422
- // Mutable pointer to the field.
1423
- pub fn mut_start_after(&mut self) -> &mut ::std::vec::Vec<u8> {
1424
- if let ::std::option::Option::Some(get_documents_request::Start::StartAfter(_)) = self.start {
1425
- } else {
1426
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAfter(::std::vec::Vec::new()));
1427
- }
1428
- match self.start {
1429
- ::std::option::Option::Some(get_documents_request::Start::StartAfter(ref mut v)) => v,
1430
- _ => panic!(),
1431
- }
1432
- }
1433
-
1434
- // Take field
1435
- pub fn take_start_after(&mut self) -> ::std::vec::Vec<u8> {
1436
- if self.has_start_after() {
1437
- match self.start.take() {
1438
- ::std::option::Option::Some(get_documents_request::Start::StartAfter(v)) => v,
1439
- _ => panic!(),
1440
- }
1441
- } else {
1442
- ::std::vec::Vec::new()
1443
- }
1444
- }
1445
-
1446
- // bytes start_at = 7;
1447
-
1448
- pub fn start_at(&self) -> &[u8] {
1449
- match self.start {
1450
- ::std::option::Option::Some(get_documents_request::Start::StartAt(ref v)) => v,
1451
- _ => &[],
1452
- }
1453
- }
1454
-
1455
- pub fn clear_start_at(&mut self) {
1456
- self.start = ::std::option::Option::None;
1457
- }
1458
-
1459
- pub fn has_start_at(&self) -> bool {
1460
- match self.start {
1461
- ::std::option::Option::Some(get_documents_request::Start::StartAt(..)) => true,
1462
- _ => false,
1463
- }
1464
- }
1465
-
1466
- // Param is passed by value, moved
1467
- pub fn set_start_at(&mut self, v: ::std::vec::Vec<u8>) {
1468
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAt(v))
1469
- }
1470
-
1471
- // Mutable pointer to the field.
1472
- pub fn mut_start_at(&mut self) -> &mut ::std::vec::Vec<u8> {
1473
- if let ::std::option::Option::Some(get_documents_request::Start::StartAt(_)) = self.start {
1474
- } else {
1475
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAt(::std::vec::Vec::new()));
1476
- }
1477
- match self.start {
1478
- ::std::option::Option::Some(get_documents_request::Start::StartAt(ref mut v)) => v,
1479
- _ => panic!(),
1480
- }
1481
- }
1482
-
1483
- // Take field
1484
- pub fn take_start_at(&mut self) -> ::std::vec::Vec<u8> {
1485
- if self.has_start_at() {
1486
- match self.start.take() {
1487
- ::std::option::Option::Some(get_documents_request::Start::StartAt(v)) => v,
1488
- _ => panic!(),
1489
- }
1490
- } else {
1491
- ::std::vec::Vec::new()
1492
- }
1493
- }
1494
-
1495
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1496
- let mut fields = ::std::vec::Vec::with_capacity(8);
1497
- let mut oneofs = ::std::vec::Vec::with_capacity(1);
1498
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1499
- "data_contract_id",
1500
- |m: &GetDocumentsRequest| { &m.data_contract_id },
1501
- |m: &mut GetDocumentsRequest| { &mut m.data_contract_id },
1502
- ));
1503
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1504
- "document_type",
1505
- |m: &GetDocumentsRequest| { &m.document_type },
1506
- |m: &mut GetDocumentsRequest| { &mut m.document_type },
1507
- ));
1508
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1509
- "where",
1510
- |m: &GetDocumentsRequest| { &m.where_ },
1511
- |m: &mut GetDocumentsRequest| { &mut m.where_ },
1512
- ));
1513
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1514
- "order_by",
1515
- |m: &GetDocumentsRequest| { &m.order_by },
1516
- |m: &mut GetDocumentsRequest| { &mut m.order_by },
1517
- ));
1518
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1519
- "limit",
1520
- |m: &GetDocumentsRequest| { &m.limit },
1521
- |m: &mut GetDocumentsRequest| { &mut m.limit },
1522
- ));
1523
- fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>(
1524
- "start_after",
1525
- GetDocumentsRequest::has_start_after,
1526
- GetDocumentsRequest::start_after,
1527
- GetDocumentsRequest::set_start_after,
1528
- ));
1529
- fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>(
1530
- "start_at",
1531
- GetDocumentsRequest::has_start_at,
1532
- GetDocumentsRequest::start_at,
1533
- GetDocumentsRequest::set_start_at,
1534
- ));
1535
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1536
- "prove",
1537
- |m: &GetDocumentsRequest| { &m.prove },
1538
- |m: &mut GetDocumentsRequest| { &mut m.prove },
1539
- ));
1540
- oneofs.push(get_documents_request::Start::generated_oneof_descriptor_data());
1541
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetDocumentsRequest>(
1542
- "GetDocumentsRequest",
1543
- fields,
1544
- oneofs,
1545
- )
1546
- }
1547
- }
1548
-
1549
- impl ::protobuf::Message for GetDocumentsRequest {
1550
- const NAME: &'static str = "GetDocumentsRequest";
1551
-
1552
- fn is_initialized(&self) -> bool {
1553
- true
1554
- }
1555
-
1556
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1557
- while let Some(tag) = is.read_raw_tag_or_eof()? {
1558
- match tag {
1559
- 10 => {
1560
- self.data_contract_id = is.read_bytes()?;
1561
- },
1562
- 18 => {
1563
- self.document_type = is.read_string()?;
1564
- },
1565
- 26 => {
1566
- self.where_ = is.read_bytes()?;
1567
- },
1568
- 34 => {
1569
- self.order_by = is.read_bytes()?;
1570
- },
1571
- 40 => {
1572
- self.limit = is.read_uint32()?;
1573
- },
1574
- 50 => {
1575
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAfter(is.read_bytes()?));
1576
- },
1577
- 58 => {
1578
- self.start = ::std::option::Option::Some(get_documents_request::Start::StartAt(is.read_bytes()?));
1579
- },
1580
- 64 => {
1581
- self.prove = is.read_bool()?;
1582
- },
1583
- tag => {
1584
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1585
- },
1586
- };
1587
- }
1588
- ::std::result::Result::Ok(())
1589
- }
1590
-
1591
- // Compute sizes of nested messages
1592
- #[allow(unused_variables)]
1593
- fn compute_size(&self) -> u64 {
1594
- let mut my_size = 0;
1595
- if !self.data_contract_id.is_empty() {
1596
- my_size += ::protobuf::rt::bytes_size(1, &self.data_contract_id);
1597
- }
1598
- if !self.document_type.is_empty() {
1599
- my_size += ::protobuf::rt::string_size(2, &self.document_type);
1600
- }
1601
- if !self.where_.is_empty() {
1602
- my_size += ::protobuf::rt::bytes_size(3, &self.where_);
1603
- }
1604
- if !self.order_by.is_empty() {
1605
- my_size += ::protobuf::rt::bytes_size(4, &self.order_by);
1606
- }
1607
- if self.limit != 0 {
1608
- my_size += ::protobuf::rt::uint32_size(5, self.limit);
1609
- }
1610
- if self.prove != false {
1611
- my_size += 1 + 1;
1612
- }
1613
- if let ::std::option::Option::Some(ref v) = self.start {
1614
- match v {
1615
- &get_documents_request::Start::StartAfter(ref v) => {
1616
- my_size += ::protobuf::rt::bytes_size(6, &v);
1617
- },
1618
- &get_documents_request::Start::StartAt(ref v) => {
1619
- my_size += ::protobuf::rt::bytes_size(7, &v);
1620
- },
1621
- };
1622
- }
1623
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1624
- self.special_fields.cached_size().set(my_size as u32);
1625
- my_size
1626
- }
1627
-
1628
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1629
- if !self.data_contract_id.is_empty() {
1630
- os.write_bytes(1, &self.data_contract_id)?;
1631
- }
1632
- if !self.document_type.is_empty() {
1633
- os.write_string(2, &self.document_type)?;
1634
- }
1635
- if !self.where_.is_empty() {
1636
- os.write_bytes(3, &self.where_)?;
1637
- }
1638
- if !self.order_by.is_empty() {
1639
- os.write_bytes(4, &self.order_by)?;
1640
- }
1641
- if self.limit != 0 {
1642
- os.write_uint32(5, self.limit)?;
1643
- }
1644
- if self.prove != false {
1645
- os.write_bool(8, self.prove)?;
1646
- }
1647
- if let ::std::option::Option::Some(ref v) = self.start {
1648
- match v {
1649
- &get_documents_request::Start::StartAfter(ref v) => {
1650
- os.write_bytes(6, v)?;
1651
- },
1652
- &get_documents_request::Start::StartAt(ref v) => {
1653
- os.write_bytes(7, v)?;
1654
- },
1655
- };
1656
- }
1657
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1658
- ::std::result::Result::Ok(())
1659
- }
1660
-
1661
- fn special_fields(&self) -> &::protobuf::SpecialFields {
1662
- &self.special_fields
1663
- }
1664
-
1665
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1666
- &mut self.special_fields
1667
- }
1668
-
1669
- fn new() -> GetDocumentsRequest {
1670
- GetDocumentsRequest::new()
1671
- }
1672
-
1673
- fn clear(&mut self) {
1674
- self.data_contract_id.clear();
1675
- self.document_type.clear();
1676
- self.where_.clear();
1677
- self.order_by.clear();
1678
- self.limit = 0;
1679
- self.start = ::std::option::Option::None;
1680
- self.start = ::std::option::Option::None;
1681
- self.prove = false;
1682
- self.special_fields.clear();
1683
- }
1684
-
1685
- fn default_instance() -> &'static GetDocumentsRequest {
1686
- static instance: GetDocumentsRequest = GetDocumentsRequest {
1687
- data_contract_id: ::std::vec::Vec::new(),
1688
- document_type: ::std::string::String::new(),
1689
- where_: ::std::vec::Vec::new(),
1690
- order_by: ::std::vec::Vec::new(),
1691
- limit: 0,
1692
- prove: false,
1693
- start: ::std::option::Option::None,
1694
- special_fields: ::protobuf::SpecialFields::new(),
1695
- };
1696
- &instance
1697
- }
1698
- }
1699
-
1700
- impl ::protobuf::MessageFull for GetDocumentsRequest {
1701
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1702
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1703
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDocumentsRequest").unwrap()).clone()
1704
- }
1705
- }
1706
-
1707
- impl ::std::fmt::Display for GetDocumentsRequest {
1708
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1709
- ::protobuf::text_format::fmt(self, f)
1710
- }
1711
- }
1712
-
1713
- impl ::protobuf::reflect::ProtobufValue for GetDocumentsRequest {
1714
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1715
- }
1716
-
1717
- /// Nested message and enums of message `GetDocumentsRequest`
1718
- pub mod get_documents_request {
1719
-
1720
- #[derive(Clone,PartialEq,Debug)]
1721
- #[non_exhaustive]
1722
- // @@protoc_insertion_point(oneof:org.dash.platform.dapi.v0.GetDocumentsRequest.start)
1723
- pub enum Start {
1724
- // @@protoc_insertion_point(oneof_field:org.dash.platform.dapi.v0.GetDocumentsRequest.start_after)
1725
- StartAfter(::std::vec::Vec<u8>),
1726
- // @@protoc_insertion_point(oneof_field:org.dash.platform.dapi.v0.GetDocumentsRequest.start_at)
1727
- StartAt(::std::vec::Vec<u8>),
1728
- }
1729
-
1730
- impl ::protobuf::Oneof for Start {
1731
- }
1732
-
1733
- impl ::protobuf::OneofFull for Start {
1734
- fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
1735
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
1736
- descriptor.get(|| <super::GetDocumentsRequest as ::protobuf::MessageFull>::descriptor().oneof_by_name("start").unwrap()).clone()
1737
- }
1738
- }
1739
-
1740
- impl Start {
1741
- pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
1742
- ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Start>("start")
1743
- }
1744
- }
1745
- }
1746
-
1747
- #[derive(PartialEq,Clone,Default,Debug)]
1748
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetDocumentsResponse)
1749
- pub struct GetDocumentsResponse {
1750
- // message fields
1751
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsResponse.documents)
1752
- pub documents: ::std::vec::Vec<::std::vec::Vec<u8>>,
1753
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsResponse.proof)
1754
- pub proof: ::protobuf::MessageField<Proof>,
1755
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetDocumentsResponse.metadata)
1756
- pub metadata: ::protobuf::MessageField<ResponseMetadata>,
1757
- // special fields
1758
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetDocumentsResponse.special_fields)
1759
- pub special_fields: ::protobuf::SpecialFields,
1760
- }
1761
-
1762
- impl<'a> ::std::default::Default for &'a GetDocumentsResponse {
1763
- fn default() -> &'a GetDocumentsResponse {
1764
- <GetDocumentsResponse as ::protobuf::Message>::default_instance()
1765
- }
1766
- }
1767
-
1768
- impl GetDocumentsResponse {
1769
- pub fn new() -> GetDocumentsResponse {
1770
- ::std::default::Default::default()
1771
- }
1772
-
1773
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1774
- let mut fields = ::std::vec::Vec::with_capacity(3);
1775
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
1776
- fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1777
- "documents",
1778
- |m: &GetDocumentsResponse| { &m.documents },
1779
- |m: &mut GetDocumentsResponse| { &mut m.documents },
1780
- ));
1781
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Proof>(
1782
- "proof",
1783
- |m: &GetDocumentsResponse| { &m.proof },
1784
- |m: &mut GetDocumentsResponse| { &mut m.proof },
1785
- ));
1786
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResponseMetadata>(
1787
- "metadata",
1788
- |m: &GetDocumentsResponse| { &m.metadata },
1789
- |m: &mut GetDocumentsResponse| { &mut m.metadata },
1790
- ));
1791
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetDocumentsResponse>(
1792
- "GetDocumentsResponse",
1793
- fields,
1794
- oneofs,
1795
- )
1796
- }
1797
- }
1798
-
1799
- impl ::protobuf::Message for GetDocumentsResponse {
1800
- const NAME: &'static str = "GetDocumentsResponse";
1801
-
1802
- fn is_initialized(&self) -> bool {
1803
- true
1804
- }
1805
-
1806
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1807
- while let Some(tag) = is.read_raw_tag_or_eof()? {
1808
- match tag {
1809
- 10 => {
1810
- self.documents.push(is.read_bytes()?);
1811
- },
1812
- 18 => {
1813
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.proof)?;
1814
- },
1815
- 26 => {
1816
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
1817
- },
1818
- tag => {
1819
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1820
- },
1821
- };
1822
- }
1823
- ::std::result::Result::Ok(())
1824
- }
1825
-
1826
- // Compute sizes of nested messages
1827
- #[allow(unused_variables)]
1828
- fn compute_size(&self) -> u64 {
1829
- let mut my_size = 0;
1830
- for value in &self.documents {
1831
- my_size += ::protobuf::rt::bytes_size(1, &value);
1832
- };
1833
- if let Some(v) = self.proof.as_ref() {
1834
- let len = v.compute_size();
1835
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1836
- }
1837
- if let Some(v) = self.metadata.as_ref() {
1838
- let len = v.compute_size();
1839
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1840
- }
1841
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1842
- self.special_fields.cached_size().set(my_size as u32);
1843
- my_size
1844
- }
1845
-
1846
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1847
- for v in &self.documents {
1848
- os.write_bytes(1, &v)?;
1849
- };
1850
- if let Some(v) = self.proof.as_ref() {
1851
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1852
- }
1853
- if let Some(v) = self.metadata.as_ref() {
1854
- ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
1855
- }
1856
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1857
- ::std::result::Result::Ok(())
1858
- }
1859
-
1860
- fn special_fields(&self) -> &::protobuf::SpecialFields {
1861
- &self.special_fields
1862
- }
1863
-
1864
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1865
- &mut self.special_fields
1866
- }
1867
-
1868
- fn new() -> GetDocumentsResponse {
1869
- GetDocumentsResponse::new()
1870
- }
1871
-
1872
- fn clear(&mut self) {
1873
- self.documents.clear();
1874
- self.proof.clear();
1875
- self.metadata.clear();
1876
- self.special_fields.clear();
1877
- }
1878
-
1879
- fn default_instance() -> &'static GetDocumentsResponse {
1880
- static instance: GetDocumentsResponse = GetDocumentsResponse {
1881
- documents: ::std::vec::Vec::new(),
1882
- proof: ::protobuf::MessageField::none(),
1883
- metadata: ::protobuf::MessageField::none(),
1884
- special_fields: ::protobuf::SpecialFields::new(),
1885
- };
1886
- &instance
1887
- }
1888
- }
1889
-
1890
- impl ::protobuf::MessageFull for GetDocumentsResponse {
1891
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1892
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1893
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDocumentsResponse").unwrap()).clone()
1894
- }
1895
- }
1896
-
1897
- impl ::std::fmt::Display for GetDocumentsResponse {
1898
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1899
- ::protobuf::text_format::fmt(self, f)
1900
- }
1901
- }
1902
-
1903
- impl ::protobuf::reflect::ProtobufValue for GetDocumentsResponse {
1904
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1905
- }
1906
-
1907
- #[derive(PartialEq,Clone,Default,Debug)]
1908
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest)
1909
- pub struct GetIdentitiesByPublicKeyHashesRequest {
1910
- // message fields
1911
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest.public_key_hashes)
1912
- pub public_key_hashes: ::std::vec::Vec<::std::vec::Vec<u8>>,
1913
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest.prove)
1914
- pub prove: bool,
1915
- // special fields
1916
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest.special_fields)
1917
- pub special_fields: ::protobuf::SpecialFields,
1918
- }
1919
-
1920
- impl<'a> ::std::default::Default for &'a GetIdentitiesByPublicKeyHashesRequest {
1921
- fn default() -> &'a GetIdentitiesByPublicKeyHashesRequest {
1922
- <GetIdentitiesByPublicKeyHashesRequest as ::protobuf::Message>::default_instance()
1923
- }
1924
- }
1925
-
1926
- impl GetIdentitiesByPublicKeyHashesRequest {
1927
- pub fn new() -> GetIdentitiesByPublicKeyHashesRequest {
1928
- ::std::default::Default::default()
1929
- }
1930
-
1931
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1932
- let mut fields = ::std::vec::Vec::with_capacity(2);
1933
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
1934
- fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1935
- "public_key_hashes",
1936
- |m: &GetIdentitiesByPublicKeyHashesRequest| { &m.public_key_hashes },
1937
- |m: &mut GetIdentitiesByPublicKeyHashesRequest| { &mut m.public_key_hashes },
1938
- ));
1939
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1940
- "prove",
1941
- |m: &GetIdentitiesByPublicKeyHashesRequest| { &m.prove },
1942
- |m: &mut GetIdentitiesByPublicKeyHashesRequest| { &mut m.prove },
1943
- ));
1944
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetIdentitiesByPublicKeyHashesRequest>(
1945
- "GetIdentitiesByPublicKeyHashesRequest",
1946
- fields,
1947
- oneofs,
1948
- )
1949
- }
1950
- }
1951
-
1952
- impl ::protobuf::Message for GetIdentitiesByPublicKeyHashesRequest {
1953
- const NAME: &'static str = "GetIdentitiesByPublicKeyHashesRequest";
1954
-
1955
- fn is_initialized(&self) -> bool {
1956
- true
1957
- }
1958
-
1959
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1960
- while let Some(tag) = is.read_raw_tag_or_eof()? {
1961
- match tag {
1962
- 10 => {
1963
- self.public_key_hashes.push(is.read_bytes()?);
1964
- },
1965
- 16 => {
1966
- self.prove = is.read_bool()?;
1967
- },
1968
- tag => {
1969
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1970
- },
1971
- };
1972
- }
1973
- ::std::result::Result::Ok(())
1974
- }
1975
-
1976
- // Compute sizes of nested messages
1977
- #[allow(unused_variables)]
1978
- fn compute_size(&self) -> u64 {
1979
- let mut my_size = 0;
1980
- for value in &self.public_key_hashes {
1981
- my_size += ::protobuf::rt::bytes_size(1, &value);
1982
- };
1983
- if self.prove != false {
1984
- my_size += 1 + 1;
1985
- }
1986
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1987
- self.special_fields.cached_size().set(my_size as u32);
1988
- my_size
1989
- }
1990
-
1991
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1992
- for v in &self.public_key_hashes {
1993
- os.write_bytes(1, &v)?;
1994
- };
1995
- if self.prove != false {
1996
- os.write_bool(2, self.prove)?;
1997
- }
1998
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
1999
- ::std::result::Result::Ok(())
2000
- }
2001
-
2002
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2003
- &self.special_fields
2004
- }
2005
-
2006
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2007
- &mut self.special_fields
2008
- }
2009
-
2010
- fn new() -> GetIdentitiesByPublicKeyHashesRequest {
2011
- GetIdentitiesByPublicKeyHashesRequest::new()
2012
- }
2013
-
2014
- fn clear(&mut self) {
2015
- self.public_key_hashes.clear();
2016
- self.prove = false;
2017
- self.special_fields.clear();
2018
- }
2019
-
2020
- fn default_instance() -> &'static GetIdentitiesByPublicKeyHashesRequest {
2021
- static instance: GetIdentitiesByPublicKeyHashesRequest = GetIdentitiesByPublicKeyHashesRequest {
2022
- public_key_hashes: ::std::vec::Vec::new(),
2023
- prove: false,
2024
- special_fields: ::protobuf::SpecialFields::new(),
2025
- };
2026
- &instance
2027
- }
2028
- }
2029
-
2030
- impl ::protobuf::MessageFull for GetIdentitiesByPublicKeyHashesRequest {
2031
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2032
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2033
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetIdentitiesByPublicKeyHashesRequest").unwrap()).clone()
2034
- }
2035
- }
2036
-
2037
- impl ::std::fmt::Display for GetIdentitiesByPublicKeyHashesRequest {
2038
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2039
- ::protobuf::text_format::fmt(self, f)
2040
- }
2041
- }
2042
-
2043
- impl ::protobuf::reflect::ProtobufValue for GetIdentitiesByPublicKeyHashesRequest {
2044
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2045
- }
2046
-
2047
- #[derive(PartialEq,Clone,Default,Debug)]
2048
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse)
2049
- pub struct GetIdentitiesByPublicKeyHashesResponse {
2050
- // message fields
2051
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.identities)
2052
- pub identities: ::std::vec::Vec<::std::vec::Vec<u8>>,
2053
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.proof)
2054
- pub proof: ::protobuf::MessageField<Proof>,
2055
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.metadata)
2056
- pub metadata: ::protobuf::MessageField<ResponseMetadata>,
2057
- // special fields
2058
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.special_fields)
2059
- pub special_fields: ::protobuf::SpecialFields,
2060
- }
2061
-
2062
- impl<'a> ::std::default::Default for &'a GetIdentitiesByPublicKeyHashesResponse {
2063
- fn default() -> &'a GetIdentitiesByPublicKeyHashesResponse {
2064
- <GetIdentitiesByPublicKeyHashesResponse as ::protobuf::Message>::default_instance()
2065
- }
2066
- }
2067
-
2068
- impl GetIdentitiesByPublicKeyHashesResponse {
2069
- pub fn new() -> GetIdentitiesByPublicKeyHashesResponse {
2070
- ::std::default::Default::default()
2071
- }
2072
-
2073
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2074
- let mut fields = ::std::vec::Vec::with_capacity(3);
2075
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
2076
- fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
2077
- "identities",
2078
- |m: &GetIdentitiesByPublicKeyHashesResponse| { &m.identities },
2079
- |m: &mut GetIdentitiesByPublicKeyHashesResponse| { &mut m.identities },
2080
- ));
2081
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Proof>(
2082
- "proof",
2083
- |m: &GetIdentitiesByPublicKeyHashesResponse| { &m.proof },
2084
- |m: &mut GetIdentitiesByPublicKeyHashesResponse| { &mut m.proof },
2085
- ));
2086
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResponseMetadata>(
2087
- "metadata",
2088
- |m: &GetIdentitiesByPublicKeyHashesResponse| { &m.metadata },
2089
- |m: &mut GetIdentitiesByPublicKeyHashesResponse| { &mut m.metadata },
2090
- ));
2091
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetIdentitiesByPublicKeyHashesResponse>(
2092
- "GetIdentitiesByPublicKeyHashesResponse",
2093
- fields,
2094
- oneofs,
2095
- )
2096
- }
2097
- }
2098
-
2099
- impl ::protobuf::Message for GetIdentitiesByPublicKeyHashesResponse {
2100
- const NAME: &'static str = "GetIdentitiesByPublicKeyHashesResponse";
2101
-
2102
- fn is_initialized(&self) -> bool {
2103
- true
2104
- }
2105
-
2106
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2107
- while let Some(tag) = is.read_raw_tag_or_eof()? {
2108
- match tag {
2109
- 10 => {
2110
- self.identities.push(is.read_bytes()?);
2111
- },
2112
- 18 => {
2113
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.proof)?;
2114
- },
2115
- 26 => {
2116
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
2117
- },
2118
- tag => {
2119
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2120
- },
2121
- };
2122
- }
2123
- ::std::result::Result::Ok(())
2124
- }
2125
-
2126
- // Compute sizes of nested messages
2127
- #[allow(unused_variables)]
2128
- fn compute_size(&self) -> u64 {
2129
- let mut my_size = 0;
2130
- for value in &self.identities {
2131
- my_size += ::protobuf::rt::bytes_size(1, &value);
2132
- };
2133
- if let Some(v) = self.proof.as_ref() {
2134
- let len = v.compute_size();
2135
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2136
- }
2137
- if let Some(v) = self.metadata.as_ref() {
2138
- let len = v.compute_size();
2139
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2140
- }
2141
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2142
- self.special_fields.cached_size().set(my_size as u32);
2143
- my_size
2144
- }
2145
-
2146
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2147
- for v in &self.identities {
2148
- os.write_bytes(1, &v)?;
2149
- };
2150
- if let Some(v) = self.proof.as_ref() {
2151
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
2152
- }
2153
- if let Some(v) = self.metadata.as_ref() {
2154
- ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
2155
- }
2156
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
2157
- ::std::result::Result::Ok(())
2158
- }
2159
-
2160
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2161
- &self.special_fields
2162
- }
2163
-
2164
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2165
- &mut self.special_fields
2166
- }
2167
-
2168
- fn new() -> GetIdentitiesByPublicKeyHashesResponse {
2169
- GetIdentitiesByPublicKeyHashesResponse::new()
2170
- }
2171
-
2172
- fn clear(&mut self) {
2173
- self.identities.clear();
2174
- self.proof.clear();
2175
- self.metadata.clear();
2176
- self.special_fields.clear();
2177
- }
2178
-
2179
- fn default_instance() -> &'static GetIdentitiesByPublicKeyHashesResponse {
2180
- static instance: GetIdentitiesByPublicKeyHashesResponse = GetIdentitiesByPublicKeyHashesResponse {
2181
- identities: ::std::vec::Vec::new(),
2182
- proof: ::protobuf::MessageField::none(),
2183
- metadata: ::protobuf::MessageField::none(),
2184
- special_fields: ::protobuf::SpecialFields::new(),
2185
- };
2186
- &instance
2187
- }
2188
- }
2189
-
2190
- impl ::protobuf::MessageFull for GetIdentitiesByPublicKeyHashesResponse {
2191
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2192
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2193
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetIdentitiesByPublicKeyHashesResponse").unwrap()).clone()
2194
- }
2195
- }
2196
-
2197
- impl ::std::fmt::Display for GetIdentitiesByPublicKeyHashesResponse {
2198
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2199
- ::protobuf::text_format::fmt(self, f)
2200
- }
2201
- }
2202
-
2203
- impl ::protobuf::reflect::ProtobufValue for GetIdentitiesByPublicKeyHashesResponse {
2204
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2205
- }
2206
-
2207
- #[derive(PartialEq,Clone,Default,Debug)]
2208
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest)
2209
- pub struct WaitForStateTransitionResultRequest {
2210
- // message fields
2211
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.state_transition_hash)
2212
- pub state_transition_hash: ::std::vec::Vec<u8>,
2213
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.prove)
2214
- pub prove: bool,
2215
- // special fields
2216
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.special_fields)
2217
- pub special_fields: ::protobuf::SpecialFields,
2218
- }
2219
-
2220
- impl<'a> ::std::default::Default for &'a WaitForStateTransitionResultRequest {
2221
- fn default() -> &'a WaitForStateTransitionResultRequest {
2222
- <WaitForStateTransitionResultRequest as ::protobuf::Message>::default_instance()
2223
- }
2224
- }
2225
-
2226
- impl WaitForStateTransitionResultRequest {
2227
- pub fn new() -> WaitForStateTransitionResultRequest {
2228
- ::std::default::Default::default()
2229
- }
2230
-
2231
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2232
- let mut fields = ::std::vec::Vec::with_capacity(2);
2233
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
2234
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2235
- "state_transition_hash",
2236
- |m: &WaitForStateTransitionResultRequest| { &m.state_transition_hash },
2237
- |m: &mut WaitForStateTransitionResultRequest| { &mut m.state_transition_hash },
2238
- ));
2239
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2240
- "prove",
2241
- |m: &WaitForStateTransitionResultRequest| { &m.prove },
2242
- |m: &mut WaitForStateTransitionResultRequest| { &mut m.prove },
2243
- ));
2244
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<WaitForStateTransitionResultRequest>(
2245
- "WaitForStateTransitionResultRequest",
2246
- fields,
2247
- oneofs,
2248
- )
2249
- }
2250
- }
2251
-
2252
- impl ::protobuf::Message for WaitForStateTransitionResultRequest {
2253
- const NAME: &'static str = "WaitForStateTransitionResultRequest";
2254
-
2255
- fn is_initialized(&self) -> bool {
2256
- true
2257
- }
2258
-
2259
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2260
- while let Some(tag) = is.read_raw_tag_or_eof()? {
2261
- match tag {
2262
- 10 => {
2263
- self.state_transition_hash = is.read_bytes()?;
2264
- },
2265
- 16 => {
2266
- self.prove = is.read_bool()?;
2267
- },
2268
- tag => {
2269
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2270
- },
2271
- };
2272
- }
2273
- ::std::result::Result::Ok(())
2274
- }
2275
-
2276
- // Compute sizes of nested messages
2277
- #[allow(unused_variables)]
2278
- fn compute_size(&self) -> u64 {
2279
- let mut my_size = 0;
2280
- if !self.state_transition_hash.is_empty() {
2281
- my_size += ::protobuf::rt::bytes_size(1, &self.state_transition_hash);
2282
- }
2283
- if self.prove != false {
2284
- my_size += 1 + 1;
2285
- }
2286
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2287
- self.special_fields.cached_size().set(my_size as u32);
2288
- my_size
2289
- }
2290
-
2291
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2292
- if !self.state_transition_hash.is_empty() {
2293
- os.write_bytes(1, &self.state_transition_hash)?;
2294
- }
2295
- if self.prove != false {
2296
- os.write_bool(2, self.prove)?;
2297
- }
2298
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
2299
- ::std::result::Result::Ok(())
2300
- }
2301
-
2302
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2303
- &self.special_fields
2304
- }
2305
-
2306
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2307
- &mut self.special_fields
2308
- }
2309
-
2310
- fn new() -> WaitForStateTransitionResultRequest {
2311
- WaitForStateTransitionResultRequest::new()
2312
- }
2313
-
2314
- fn clear(&mut self) {
2315
- self.state_transition_hash.clear();
2316
- self.prove = false;
2317
- self.special_fields.clear();
2318
- }
2319
-
2320
- fn default_instance() -> &'static WaitForStateTransitionResultRequest {
2321
- static instance: WaitForStateTransitionResultRequest = WaitForStateTransitionResultRequest {
2322
- state_transition_hash: ::std::vec::Vec::new(),
2323
- prove: false,
2324
- special_fields: ::protobuf::SpecialFields::new(),
2325
- };
2326
- &instance
2327
- }
2328
- }
2329
-
2330
- impl ::protobuf::MessageFull for WaitForStateTransitionResultRequest {
2331
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2332
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2333
- descriptor.get(|| file_descriptor().message_by_package_relative_name("WaitForStateTransitionResultRequest").unwrap()).clone()
2334
- }
2335
- }
2336
-
2337
- impl ::std::fmt::Display for WaitForStateTransitionResultRequest {
2338
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2339
- ::protobuf::text_format::fmt(self, f)
2340
- }
2341
- }
2342
-
2343
- impl ::protobuf::reflect::ProtobufValue for WaitForStateTransitionResultRequest {
2344
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2345
- }
2346
-
2347
- #[derive(PartialEq,Clone,Default,Debug)]
2348
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse)
2349
- pub struct WaitForStateTransitionResultResponse {
2350
- // message fields
2351
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.metadata)
2352
- pub metadata: ::protobuf::MessageField<ResponseMetadata>,
2353
- // message oneof groups
2354
- pub responses: ::std::option::Option<wait_for_state_transition_result_response::Responses>,
2355
- // special fields
2356
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.special_fields)
2357
- pub special_fields: ::protobuf::SpecialFields,
2358
- }
2359
-
2360
- impl<'a> ::std::default::Default for &'a WaitForStateTransitionResultResponse {
2361
- fn default() -> &'a WaitForStateTransitionResultResponse {
2362
- <WaitForStateTransitionResultResponse as ::protobuf::Message>::default_instance()
2363
- }
2364
- }
2365
-
2366
- impl WaitForStateTransitionResultResponse {
2367
- pub fn new() -> WaitForStateTransitionResultResponse {
2368
- ::std::default::Default::default()
2369
- }
2370
-
2371
- // .org.dash.platform.dapi.v0.StateTransitionBroadcastError error = 1;
2372
-
2373
- pub fn error(&self) -> &StateTransitionBroadcastError {
2374
- match self.responses {
2375
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(ref v)) => v,
2376
- _ => <StateTransitionBroadcastError as ::protobuf::Message>::default_instance(),
2377
- }
2378
- }
2379
-
2380
- pub fn clear_error(&mut self) {
2381
- self.responses = ::std::option::Option::None;
2382
- }
2383
-
2384
- pub fn has_error(&self) -> bool {
2385
- match self.responses {
2386
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(..)) => true,
2387
- _ => false,
2388
- }
2389
- }
2390
-
2391
- // Param is passed by value, moved
2392
- pub fn set_error(&mut self, v: StateTransitionBroadcastError) {
2393
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(v))
2394
- }
2395
-
2396
- // Mutable pointer to the field.
2397
- pub fn mut_error(&mut self) -> &mut StateTransitionBroadcastError {
2398
- if let ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(_)) = self.responses {
2399
- } else {
2400
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(StateTransitionBroadcastError::new()));
2401
- }
2402
- match self.responses {
2403
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(ref mut v)) => v,
2404
- _ => panic!(),
2405
- }
2406
- }
2407
-
2408
- // Take field
2409
- pub fn take_error(&mut self) -> StateTransitionBroadcastError {
2410
- if self.has_error() {
2411
- match self.responses.take() {
2412
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(v)) => v,
2413
- _ => panic!(),
2414
- }
2415
- } else {
2416
- StateTransitionBroadcastError::new()
2417
- }
2418
- }
2419
-
2420
- // .org.dash.platform.dapi.v0.Proof proof = 2;
2421
-
2422
- pub fn proof(&self) -> &Proof {
2423
- match self.responses {
2424
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(ref v)) => v,
2425
- _ => <Proof as ::protobuf::Message>::default_instance(),
2426
- }
2427
- }
2428
-
2429
- pub fn clear_proof(&mut self) {
2430
- self.responses = ::std::option::Option::None;
2431
- }
2432
-
2433
- pub fn has_proof(&self) -> bool {
2434
- match self.responses {
2435
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(..)) => true,
2436
- _ => false,
2437
- }
2438
- }
2439
-
2440
- // Param is passed by value, moved
2441
- pub fn set_proof(&mut self, v: Proof) {
2442
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(v))
2443
- }
2444
-
2445
- // Mutable pointer to the field.
2446
- pub fn mut_proof(&mut self) -> &mut Proof {
2447
- if let ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(_)) = self.responses {
2448
- } else {
2449
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(Proof::new()));
2450
- }
2451
- match self.responses {
2452
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(ref mut v)) => v,
2453
- _ => panic!(),
2454
- }
2455
- }
2456
-
2457
- // Take field
2458
- pub fn take_proof(&mut self) -> Proof {
2459
- if self.has_proof() {
2460
- match self.responses.take() {
2461
- ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(v)) => v,
2462
- _ => panic!(),
2463
- }
2464
- } else {
2465
- Proof::new()
2466
- }
2467
- }
2468
-
2469
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2470
- let mut fields = ::std::vec::Vec::with_capacity(3);
2471
- let mut oneofs = ::std::vec::Vec::with_capacity(1);
2472
- fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, StateTransitionBroadcastError>(
2473
- "error",
2474
- WaitForStateTransitionResultResponse::has_error,
2475
- WaitForStateTransitionResultResponse::error,
2476
- WaitForStateTransitionResultResponse::mut_error,
2477
- WaitForStateTransitionResultResponse::set_error,
2478
- ));
2479
- fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, Proof>(
2480
- "proof",
2481
- WaitForStateTransitionResultResponse::has_proof,
2482
- WaitForStateTransitionResultResponse::proof,
2483
- WaitForStateTransitionResultResponse::mut_proof,
2484
- WaitForStateTransitionResultResponse::set_proof,
2485
- ));
2486
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResponseMetadata>(
2487
- "metadata",
2488
- |m: &WaitForStateTransitionResultResponse| { &m.metadata },
2489
- |m: &mut WaitForStateTransitionResultResponse| { &mut m.metadata },
2490
- ));
2491
- oneofs.push(wait_for_state_transition_result_response::Responses::generated_oneof_descriptor_data());
2492
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<WaitForStateTransitionResultResponse>(
2493
- "WaitForStateTransitionResultResponse",
2494
- fields,
2495
- oneofs,
2496
- )
2497
- }
2498
- }
2499
-
2500
- impl ::protobuf::Message for WaitForStateTransitionResultResponse {
2501
- const NAME: &'static str = "WaitForStateTransitionResultResponse";
2502
-
2503
- fn is_initialized(&self) -> bool {
2504
- true
2505
- }
2506
-
2507
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2508
- while let Some(tag) = is.read_raw_tag_or_eof()? {
2509
- match tag {
2510
- 10 => {
2511
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Error(is.read_message()?));
2512
- },
2513
- 18 => {
2514
- self.responses = ::std::option::Option::Some(wait_for_state_transition_result_response::Responses::Proof(is.read_message()?));
2515
- },
2516
- 26 => {
2517
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?;
2518
- },
2519
- tag => {
2520
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2521
- },
2522
- };
2523
- }
2524
- ::std::result::Result::Ok(())
2525
- }
2526
-
2527
- // Compute sizes of nested messages
2528
- #[allow(unused_variables)]
2529
- fn compute_size(&self) -> u64 {
2530
- let mut my_size = 0;
2531
- if let Some(v) = self.metadata.as_ref() {
2532
- let len = v.compute_size();
2533
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2534
- }
2535
- if let ::std::option::Option::Some(ref v) = self.responses {
2536
- match v {
2537
- &wait_for_state_transition_result_response::Responses::Error(ref v) => {
2538
- let len = v.compute_size();
2539
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2540
- },
2541
- &wait_for_state_transition_result_response::Responses::Proof(ref v) => {
2542
- let len = v.compute_size();
2543
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2544
- },
2545
- };
2546
- }
2547
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2548
- self.special_fields.cached_size().set(my_size as u32);
2549
- my_size
2550
- }
2551
-
2552
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2553
- if let Some(v) = self.metadata.as_ref() {
2554
- ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
2555
- }
2556
- if let ::std::option::Option::Some(ref v) = self.responses {
2557
- match v {
2558
- &wait_for_state_transition_result_response::Responses::Error(ref v) => {
2559
- ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
2560
- },
2561
- &wait_for_state_transition_result_response::Responses::Proof(ref v) => {
2562
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
2563
- },
2564
- };
2565
- }
2566
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
2567
- ::std::result::Result::Ok(())
2568
- }
2569
-
2570
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2571
- &self.special_fields
2572
- }
2573
-
2574
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2575
- &mut self.special_fields
2576
- }
2577
-
2578
- fn new() -> WaitForStateTransitionResultResponse {
2579
- WaitForStateTransitionResultResponse::new()
2580
- }
2581
-
2582
- fn clear(&mut self) {
2583
- self.responses = ::std::option::Option::None;
2584
- self.responses = ::std::option::Option::None;
2585
- self.metadata.clear();
2586
- self.special_fields.clear();
2587
- }
2588
-
2589
- fn default_instance() -> &'static WaitForStateTransitionResultResponse {
2590
- static instance: WaitForStateTransitionResultResponse = WaitForStateTransitionResultResponse {
2591
- metadata: ::protobuf::MessageField::none(),
2592
- responses: ::std::option::Option::None,
2593
- special_fields: ::protobuf::SpecialFields::new(),
2594
- };
2595
- &instance
2596
- }
2597
- }
2598
-
2599
- impl ::protobuf::MessageFull for WaitForStateTransitionResultResponse {
2600
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2601
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2602
- descriptor.get(|| file_descriptor().message_by_package_relative_name("WaitForStateTransitionResultResponse").unwrap()).clone()
2603
- }
2604
- }
2605
-
2606
- impl ::std::fmt::Display for WaitForStateTransitionResultResponse {
2607
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2608
- ::protobuf::text_format::fmt(self, f)
2609
- }
2610
- }
2611
-
2612
- impl ::protobuf::reflect::ProtobufValue for WaitForStateTransitionResultResponse {
2613
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2614
- }
2615
-
2616
- /// Nested message and enums of message `WaitForStateTransitionResultResponse`
2617
- pub mod wait_for_state_transition_result_response {
2618
-
2619
- #[derive(Clone,PartialEq,Debug)]
2620
- #[non_exhaustive]
2621
- // @@protoc_insertion_point(oneof:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.responses)
2622
- pub enum Responses {
2623
- // @@protoc_insertion_point(oneof_field:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.error)
2624
- Error(super::StateTransitionBroadcastError),
2625
- // @@protoc_insertion_point(oneof_field:org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.proof)
2626
- Proof(super::Proof),
2627
- }
2628
-
2629
- impl ::protobuf::Oneof for Responses {
2630
- }
2631
-
2632
- impl ::protobuf::OneofFull for Responses {
2633
- fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
2634
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
2635
- descriptor.get(|| <super::WaitForStateTransitionResultResponse as ::protobuf::MessageFull>::descriptor().oneof_by_name("responses").unwrap()).clone()
2636
- }
2637
- }
2638
-
2639
- impl Responses {
2640
- pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
2641
- ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Responses>("responses")
2642
- }
2643
- }
2644
- }
2645
-
2646
- #[derive(PartialEq,Clone,Default,Debug)]
2647
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.ConsensusParamsBlock)
2648
- pub struct ConsensusParamsBlock {
2649
- // message fields
2650
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsBlock.max_bytes)
2651
- pub max_bytes: ::std::string::String,
2652
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsBlock.max_gas)
2653
- pub max_gas: ::std::string::String,
2654
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsBlock.time_iota_ms)
2655
- pub time_iota_ms: ::std::string::String,
2656
- // special fields
2657
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.ConsensusParamsBlock.special_fields)
2658
- pub special_fields: ::protobuf::SpecialFields,
2659
- }
2660
-
2661
- impl<'a> ::std::default::Default for &'a ConsensusParamsBlock {
2662
- fn default() -> &'a ConsensusParamsBlock {
2663
- <ConsensusParamsBlock as ::protobuf::Message>::default_instance()
2664
- }
2665
- }
2666
-
2667
- impl ConsensusParamsBlock {
2668
- pub fn new() -> ConsensusParamsBlock {
2669
- ::std::default::Default::default()
2670
- }
2671
-
2672
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2673
- let mut fields = ::std::vec::Vec::with_capacity(3);
2674
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
2675
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2676
- "max_bytes",
2677
- |m: &ConsensusParamsBlock| { &m.max_bytes },
2678
- |m: &mut ConsensusParamsBlock| { &mut m.max_bytes },
2679
- ));
2680
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2681
- "max_gas",
2682
- |m: &ConsensusParamsBlock| { &m.max_gas },
2683
- |m: &mut ConsensusParamsBlock| { &mut m.max_gas },
2684
- ));
2685
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2686
- "time_iota_ms",
2687
- |m: &ConsensusParamsBlock| { &m.time_iota_ms },
2688
- |m: &mut ConsensusParamsBlock| { &mut m.time_iota_ms },
2689
- ));
2690
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ConsensusParamsBlock>(
2691
- "ConsensusParamsBlock",
2692
- fields,
2693
- oneofs,
2694
- )
2695
- }
2696
- }
2697
-
2698
- impl ::protobuf::Message for ConsensusParamsBlock {
2699
- const NAME: &'static str = "ConsensusParamsBlock";
2700
-
2701
- fn is_initialized(&self) -> bool {
2702
- true
2703
- }
2704
-
2705
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2706
- while let Some(tag) = is.read_raw_tag_or_eof()? {
2707
- match tag {
2708
- 10 => {
2709
- self.max_bytes = is.read_string()?;
2710
- },
2711
- 18 => {
2712
- self.max_gas = is.read_string()?;
2713
- },
2714
- 26 => {
2715
- self.time_iota_ms = is.read_string()?;
2716
- },
2717
- tag => {
2718
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2719
- },
2720
- };
2721
- }
2722
- ::std::result::Result::Ok(())
2723
- }
2724
-
2725
- // Compute sizes of nested messages
2726
- #[allow(unused_variables)]
2727
- fn compute_size(&self) -> u64 {
2728
- let mut my_size = 0;
2729
- if !self.max_bytes.is_empty() {
2730
- my_size += ::protobuf::rt::string_size(1, &self.max_bytes);
2731
- }
2732
- if !self.max_gas.is_empty() {
2733
- my_size += ::protobuf::rt::string_size(2, &self.max_gas);
2734
- }
2735
- if !self.time_iota_ms.is_empty() {
2736
- my_size += ::protobuf::rt::string_size(3, &self.time_iota_ms);
2737
- }
2738
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2739
- self.special_fields.cached_size().set(my_size as u32);
2740
- my_size
2741
- }
2742
-
2743
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2744
- if !self.max_bytes.is_empty() {
2745
- os.write_string(1, &self.max_bytes)?;
2746
- }
2747
- if !self.max_gas.is_empty() {
2748
- os.write_string(2, &self.max_gas)?;
2749
- }
2750
- if !self.time_iota_ms.is_empty() {
2751
- os.write_string(3, &self.time_iota_ms)?;
2752
- }
2753
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
2754
- ::std::result::Result::Ok(())
2755
- }
2756
-
2757
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2758
- &self.special_fields
2759
- }
2760
-
2761
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2762
- &mut self.special_fields
2763
- }
2764
-
2765
- fn new() -> ConsensusParamsBlock {
2766
- ConsensusParamsBlock::new()
2767
- }
2768
-
2769
- fn clear(&mut self) {
2770
- self.max_bytes.clear();
2771
- self.max_gas.clear();
2772
- self.time_iota_ms.clear();
2773
- self.special_fields.clear();
2774
- }
2775
-
2776
- fn default_instance() -> &'static ConsensusParamsBlock {
2777
- static instance: ConsensusParamsBlock = ConsensusParamsBlock {
2778
- max_bytes: ::std::string::String::new(),
2779
- max_gas: ::std::string::String::new(),
2780
- time_iota_ms: ::std::string::String::new(),
2781
- special_fields: ::protobuf::SpecialFields::new(),
2782
- };
2783
- &instance
2784
- }
2785
- }
2786
-
2787
- impl ::protobuf::MessageFull for ConsensusParamsBlock {
2788
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2789
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2790
- descriptor.get(|| file_descriptor().message_by_package_relative_name("ConsensusParamsBlock").unwrap()).clone()
2791
- }
2792
- }
2793
-
2794
- impl ::std::fmt::Display for ConsensusParamsBlock {
2795
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2796
- ::protobuf::text_format::fmt(self, f)
2797
- }
2798
- }
2799
-
2800
- impl ::protobuf::reflect::ProtobufValue for ConsensusParamsBlock {
2801
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2802
- }
2803
-
2804
- #[derive(PartialEq,Clone,Default,Debug)]
2805
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.ConsensusParamsEvidence)
2806
- pub struct ConsensusParamsEvidence {
2807
- // message fields
2808
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsEvidence.max_age_num_blocks)
2809
- pub max_age_num_blocks: ::std::string::String,
2810
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsEvidence.max_age_duration)
2811
- pub max_age_duration: ::std::string::String,
2812
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.ConsensusParamsEvidence.max_bytes)
2813
- pub max_bytes: ::std::string::String,
2814
- // special fields
2815
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.ConsensusParamsEvidence.special_fields)
2816
- pub special_fields: ::protobuf::SpecialFields,
2817
- }
2818
-
2819
- impl<'a> ::std::default::Default for &'a ConsensusParamsEvidence {
2820
- fn default() -> &'a ConsensusParamsEvidence {
2821
- <ConsensusParamsEvidence as ::protobuf::Message>::default_instance()
2822
- }
2823
- }
2824
-
2825
- impl ConsensusParamsEvidence {
2826
- pub fn new() -> ConsensusParamsEvidence {
2827
- ::std::default::Default::default()
2828
- }
2829
-
2830
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2831
- let mut fields = ::std::vec::Vec::with_capacity(3);
2832
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
2833
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2834
- "max_age_num_blocks",
2835
- |m: &ConsensusParamsEvidence| { &m.max_age_num_blocks },
2836
- |m: &mut ConsensusParamsEvidence| { &mut m.max_age_num_blocks },
2837
- ));
2838
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2839
- "max_age_duration",
2840
- |m: &ConsensusParamsEvidence| { &m.max_age_duration },
2841
- |m: &mut ConsensusParamsEvidence| { &mut m.max_age_duration },
2842
- ));
2843
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2844
- "max_bytes",
2845
- |m: &ConsensusParamsEvidence| { &m.max_bytes },
2846
- |m: &mut ConsensusParamsEvidence| { &mut m.max_bytes },
2847
- ));
2848
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ConsensusParamsEvidence>(
2849
- "ConsensusParamsEvidence",
2850
- fields,
2851
- oneofs,
2852
- )
2853
- }
2854
- }
2855
-
2856
- impl ::protobuf::Message for ConsensusParamsEvidence {
2857
- const NAME: &'static str = "ConsensusParamsEvidence";
2858
-
2859
- fn is_initialized(&self) -> bool {
2860
- true
2861
- }
2862
-
2863
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2864
- while let Some(tag) = is.read_raw_tag_or_eof()? {
2865
- match tag {
2866
- 10 => {
2867
- self.max_age_num_blocks = is.read_string()?;
2868
- },
2869
- 18 => {
2870
- self.max_age_duration = is.read_string()?;
2871
- },
2872
- 26 => {
2873
- self.max_bytes = is.read_string()?;
2874
- },
2875
- tag => {
2876
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2877
- },
2878
- };
2879
- }
2880
- ::std::result::Result::Ok(())
2881
- }
2882
-
2883
- // Compute sizes of nested messages
2884
- #[allow(unused_variables)]
2885
- fn compute_size(&self) -> u64 {
2886
- let mut my_size = 0;
2887
- if !self.max_age_num_blocks.is_empty() {
2888
- my_size += ::protobuf::rt::string_size(1, &self.max_age_num_blocks);
2889
- }
2890
- if !self.max_age_duration.is_empty() {
2891
- my_size += ::protobuf::rt::string_size(2, &self.max_age_duration);
2892
- }
2893
- if !self.max_bytes.is_empty() {
2894
- my_size += ::protobuf::rt::string_size(3, &self.max_bytes);
2895
- }
2896
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2897
- self.special_fields.cached_size().set(my_size as u32);
2898
- my_size
2899
- }
2900
-
2901
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2902
- if !self.max_age_num_blocks.is_empty() {
2903
- os.write_string(1, &self.max_age_num_blocks)?;
2904
- }
2905
- if !self.max_age_duration.is_empty() {
2906
- os.write_string(2, &self.max_age_duration)?;
2907
- }
2908
- if !self.max_bytes.is_empty() {
2909
- os.write_string(3, &self.max_bytes)?;
2910
- }
2911
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
2912
- ::std::result::Result::Ok(())
2913
- }
2914
-
2915
- fn special_fields(&self) -> &::protobuf::SpecialFields {
2916
- &self.special_fields
2917
- }
2918
-
2919
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2920
- &mut self.special_fields
2921
- }
2922
-
2923
- fn new() -> ConsensusParamsEvidence {
2924
- ConsensusParamsEvidence::new()
2925
- }
2926
-
2927
- fn clear(&mut self) {
2928
- self.max_age_num_blocks.clear();
2929
- self.max_age_duration.clear();
2930
- self.max_bytes.clear();
2931
- self.special_fields.clear();
2932
- }
2933
-
2934
- fn default_instance() -> &'static ConsensusParamsEvidence {
2935
- static instance: ConsensusParamsEvidence = ConsensusParamsEvidence {
2936
- max_age_num_blocks: ::std::string::String::new(),
2937
- max_age_duration: ::std::string::String::new(),
2938
- max_bytes: ::std::string::String::new(),
2939
- special_fields: ::protobuf::SpecialFields::new(),
2940
- };
2941
- &instance
2942
- }
2943
- }
2944
-
2945
- impl ::protobuf::MessageFull for ConsensusParamsEvidence {
2946
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2947
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2948
- descriptor.get(|| file_descriptor().message_by_package_relative_name("ConsensusParamsEvidence").unwrap()).clone()
2949
- }
2950
- }
2951
-
2952
- impl ::std::fmt::Display for ConsensusParamsEvidence {
2953
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2954
- ::protobuf::text_format::fmt(self, f)
2955
- }
2956
- }
2957
-
2958
- impl ::protobuf::reflect::ProtobufValue for ConsensusParamsEvidence {
2959
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2960
- }
2961
-
2962
- #[derive(PartialEq,Clone,Default,Debug)]
2963
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetConsensusParamsRequest)
2964
- pub struct GetConsensusParamsRequest {
2965
- // message fields
2966
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetConsensusParamsRequest.height)
2967
- pub height: i64,
2968
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetConsensusParamsRequest.prove)
2969
- pub prove: bool,
2970
- // special fields
2971
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetConsensusParamsRequest.special_fields)
2972
- pub special_fields: ::protobuf::SpecialFields,
2973
- }
2974
-
2975
- impl<'a> ::std::default::Default for &'a GetConsensusParamsRequest {
2976
- fn default() -> &'a GetConsensusParamsRequest {
2977
- <GetConsensusParamsRequest as ::protobuf::Message>::default_instance()
2978
- }
2979
- }
2980
-
2981
- impl GetConsensusParamsRequest {
2982
- pub fn new() -> GetConsensusParamsRequest {
2983
- ::std::default::Default::default()
2984
- }
2985
-
2986
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2987
- let mut fields = ::std::vec::Vec::with_capacity(2);
2988
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
2989
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2990
- "height",
2991
- |m: &GetConsensusParamsRequest| { &m.height },
2992
- |m: &mut GetConsensusParamsRequest| { &mut m.height },
2993
- ));
2994
- fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2995
- "prove",
2996
- |m: &GetConsensusParamsRequest| { &m.prove },
2997
- |m: &mut GetConsensusParamsRequest| { &mut m.prove },
2998
- ));
2999
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetConsensusParamsRequest>(
3000
- "GetConsensusParamsRequest",
3001
- fields,
3002
- oneofs,
3003
- )
3004
- }
3005
- }
3006
-
3007
- impl ::protobuf::Message for GetConsensusParamsRequest {
3008
- const NAME: &'static str = "GetConsensusParamsRequest";
3009
-
3010
- fn is_initialized(&self) -> bool {
3011
- true
3012
- }
3013
-
3014
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
3015
- while let Some(tag) = is.read_raw_tag_or_eof()? {
3016
- match tag {
3017
- 8 => {
3018
- self.height = is.read_int64()?;
3019
- },
3020
- 16 => {
3021
- self.prove = is.read_bool()?;
3022
- },
3023
- tag => {
3024
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3025
- },
3026
- };
3027
- }
3028
- ::std::result::Result::Ok(())
3029
- }
3030
-
3031
- // Compute sizes of nested messages
3032
- #[allow(unused_variables)]
3033
- fn compute_size(&self) -> u64 {
3034
- let mut my_size = 0;
3035
- if self.height != 0 {
3036
- my_size += ::protobuf::rt::int64_size(1, self.height);
3037
- }
3038
- if self.prove != false {
3039
- my_size += 1 + 1;
3040
- }
3041
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3042
- self.special_fields.cached_size().set(my_size as u32);
3043
- my_size
3044
- }
3045
-
3046
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
3047
- if self.height != 0 {
3048
- os.write_int64(1, self.height)?;
3049
- }
3050
- if self.prove != false {
3051
- os.write_bool(2, self.prove)?;
3052
- }
3053
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
3054
- ::std::result::Result::Ok(())
3055
- }
3056
-
3057
- fn special_fields(&self) -> &::protobuf::SpecialFields {
3058
- &self.special_fields
3059
- }
3060
-
3061
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
3062
- &mut self.special_fields
3063
- }
3064
-
3065
- fn new() -> GetConsensusParamsRequest {
3066
- GetConsensusParamsRequest::new()
3067
- }
3068
-
3069
- fn clear(&mut self) {
3070
- self.height = 0;
3071
- self.prove = false;
3072
- self.special_fields.clear();
3073
- }
3074
-
3075
- fn default_instance() -> &'static GetConsensusParamsRequest {
3076
- static instance: GetConsensusParamsRequest = GetConsensusParamsRequest {
3077
- height: 0,
3078
- prove: false,
3079
- special_fields: ::protobuf::SpecialFields::new(),
3080
- };
3081
- &instance
3082
- }
3083
- }
3084
-
3085
- impl ::protobuf::MessageFull for GetConsensusParamsRequest {
3086
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
3087
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
3088
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetConsensusParamsRequest").unwrap()).clone()
3089
- }
3090
- }
3091
-
3092
- impl ::std::fmt::Display for GetConsensusParamsRequest {
3093
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3094
- ::protobuf::text_format::fmt(self, f)
3095
- }
3096
- }
3097
-
3098
- impl ::protobuf::reflect::ProtobufValue for GetConsensusParamsRequest {
3099
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
3100
- }
3101
-
3102
- #[derive(PartialEq,Clone,Default,Debug)]
3103
- // @@protoc_insertion_point(message:org.dash.platform.dapi.v0.GetConsensusParamsResponse)
3104
- pub struct GetConsensusParamsResponse {
3105
- // message fields
3106
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetConsensusParamsResponse.block)
3107
- pub block: ::protobuf::MessageField<ConsensusParamsBlock>,
3108
- // @@protoc_insertion_point(field:org.dash.platform.dapi.v0.GetConsensusParamsResponse.evidence)
3109
- pub evidence: ::protobuf::MessageField<ConsensusParamsEvidence>,
3110
- // special fields
3111
- // @@protoc_insertion_point(special_field:org.dash.platform.dapi.v0.GetConsensusParamsResponse.special_fields)
3112
- pub special_fields: ::protobuf::SpecialFields,
3113
- }
3114
-
3115
- impl<'a> ::std::default::Default for &'a GetConsensusParamsResponse {
3116
- fn default() -> &'a GetConsensusParamsResponse {
3117
- <GetConsensusParamsResponse as ::protobuf::Message>::default_instance()
3118
- }
3119
- }
3120
-
3121
- impl GetConsensusParamsResponse {
3122
- pub fn new() -> GetConsensusParamsResponse {
3123
- ::std::default::Default::default()
3124
- }
3125
-
3126
- fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
3127
- let mut fields = ::std::vec::Vec::with_capacity(2);
3128
- let mut oneofs = ::std::vec::Vec::with_capacity(0);
3129
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ConsensusParamsBlock>(
3130
- "block",
3131
- |m: &GetConsensusParamsResponse| { &m.block },
3132
- |m: &mut GetConsensusParamsResponse| { &mut m.block },
3133
- ));
3134
- fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ConsensusParamsEvidence>(
3135
- "evidence",
3136
- |m: &GetConsensusParamsResponse| { &m.evidence },
3137
- |m: &mut GetConsensusParamsResponse| { &mut m.evidence },
3138
- ));
3139
- ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<GetConsensusParamsResponse>(
3140
- "GetConsensusParamsResponse",
3141
- fields,
3142
- oneofs,
3143
- )
3144
- }
3145
- }
3146
-
3147
- impl ::protobuf::Message for GetConsensusParamsResponse {
3148
- const NAME: &'static str = "GetConsensusParamsResponse";
3149
-
3150
- fn is_initialized(&self) -> bool {
3151
- true
3152
- }
3153
-
3154
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
3155
- while let Some(tag) = is.read_raw_tag_or_eof()? {
3156
- match tag {
3157
- 10 => {
3158
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.block)?;
3159
- },
3160
- 18 => {
3161
- ::protobuf::rt::read_singular_message_into_field(is, &mut self.evidence)?;
3162
- },
3163
- tag => {
3164
- ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3165
- },
3166
- };
3167
- }
3168
- ::std::result::Result::Ok(())
3169
- }
3170
-
3171
- // Compute sizes of nested messages
3172
- #[allow(unused_variables)]
3173
- fn compute_size(&self) -> u64 {
3174
- let mut my_size = 0;
3175
- if let Some(v) = self.block.as_ref() {
3176
- let len = v.compute_size();
3177
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3178
- }
3179
- if let Some(v) = self.evidence.as_ref() {
3180
- let len = v.compute_size();
3181
- my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3182
- }
3183
- my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3184
- self.special_fields.cached_size().set(my_size as u32);
3185
- my_size
3186
- }
3187
-
3188
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
3189
- if let Some(v) = self.block.as_ref() {
3190
- ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
3191
- }
3192
- if let Some(v) = self.evidence.as_ref() {
3193
- ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
3194
- }
3195
- os.write_unknown_fields(self.special_fields.unknown_fields())?;
3196
- ::std::result::Result::Ok(())
3197
- }
3198
-
3199
- fn special_fields(&self) -> &::protobuf::SpecialFields {
3200
- &self.special_fields
3201
- }
3202
-
3203
- fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
3204
- &mut self.special_fields
3205
- }
3206
-
3207
- fn new() -> GetConsensusParamsResponse {
3208
- GetConsensusParamsResponse::new()
3209
- }
3210
-
3211
- fn clear(&mut self) {
3212
- self.block.clear();
3213
- self.evidence.clear();
3214
- self.special_fields.clear();
3215
- }
3216
-
3217
- fn default_instance() -> &'static GetConsensusParamsResponse {
3218
- static instance: GetConsensusParamsResponse = GetConsensusParamsResponse {
3219
- block: ::protobuf::MessageField::none(),
3220
- evidence: ::protobuf::MessageField::none(),
3221
- special_fields: ::protobuf::SpecialFields::new(),
3222
- };
3223
- &instance
3224
- }
3225
- }
3226
-
3227
- impl ::protobuf::MessageFull for GetConsensusParamsResponse {
3228
- fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
3229
- static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
3230
- descriptor.get(|| file_descriptor().message_by_package_relative_name("GetConsensusParamsResponse").unwrap()).clone()
3231
- }
3232
- }
3233
-
3234
- impl ::std::fmt::Display for GetConsensusParamsResponse {
3235
- fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3236
- ::protobuf::text_format::fmt(self, f)
3237
- }
3238
- }
3239
-
3240
- impl ::protobuf::reflect::ProtobufValue for GetConsensusParamsResponse {
3241
- type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
3242
- }
3243
-
3244
- static file_descriptor_proto_data: &'static [u8] = b"\
3245
- \n\x0eplatform.proto\x12\x19org.dash.platform.dapi.v0\x1a\x1fgoogle/prot\
3246
- obuf/timestamp.proto\"\x7f\n\x05Proof\x12!\n\x0cmerkle_proof\x18\x01\x20\
3247
- \x01(\x0cR\x0bmerkleProof\x12\x1f\n\x0bquorum_hash\x18\x02\x20\x01(\x0cR\
3248
- \nquorumHash\x12\x1c\n\tsignature\x18\x03\x20\x01(\x0cR\tsignature\x12\
3249
- \x14\n\x05round\x18\x04\x20\x01(\rR\x05round\"\xa7\x01\n\x10ResponseMeta\
3250
- data\x12\x16\n\x06height\x18\x01\x20\x01(\x03R\x06height\x127\n\x18core_\
3251
- chain_locked_height\x18\x02\x20\x01(\rR\x15coreChainLockedHeight\x12\x17\
3252
- \n\x07time_ms\x18\x03\x20\x01(\x04R\x06timeMs\x12)\n\x10protocol_version\
3253
- \x18\x04\x20\x01(\rR\x0fprotocolVersion\"a\n\x1dStateTransitionBroadcast\
3254
- Error\x12\x12\n\x04code\x18\x01\x20\x01(\rR\x04code\x12\x18\n\x07message\
3255
- \x18\x02\x20\x01(\tR\x07message\x12\x12\n\x04data\x18\x03\x20\x01(\x0cR\
3256
- \x04data\"L\n\x1fBroadcastStateTransitionRequest\x12)\n\x10state_transit\
3257
- ion\x18\x01\x20\x01(\x0cR\x0fstateTransition\"\"\n\x20BroadcastStateTran\
3258
- sitionResponse\":\n\x12GetIdentityRequest\x12\x0e\n\x02id\x18\x01\x20\
3259
- \x01(\x0cR\x02id\x12\x14\n\x05prove\x18\x02\x20\x01(\x08R\x05prove\"\xb2\
3260
- \x01\n\x13GetIdentityResponse\x12\x1a\n\x08identity\x18\x01\x20\x01(\x0c\
3261
- R\x08identity\x126\n\x05proof\x18\x02\x20\x01(\x0b2\x20.org.dash.platfor\
3262
- m.dapi.v0.ProofR\x05proof\x12G\n\x08metadata\x18\x03\x20\x01(\x0b2+.org.\
3263
- dash.platform.dapi.v0.ResponseMetadataR\x08metadata\">\n\x16GetDataContr\
3264
- actRequest\x12\x0e\n\x02id\x18\x01\x20\x01(\x0cR\x02id\x12\x14\n\x05prov\
3265
- e\x18\x02\x20\x01(\x08R\x05prove\"\xbf\x01\n\x17GetDataContractResponse\
3266
- \x12#\n\rdata_contract\x18\x01\x20\x01(\x0cR\x0cdataContract\x126\n\x05p\
3267
- roof\x18\x02\x20\x01(\x0b2\x20.org.dash.platform.dapi.v0.ProofR\x05proof\
3268
- \x12G\n\x08metadata\x18\x03\x20\x01(\x0b2+.org.dash.platform.dapi.v0.Res\
3269
- ponseMetadataR\x08metadata\"\x8a\x02\n\x13GetDocumentsRequest\x12(\n\x10\
3270
- data_contract_id\x18\x01\x20\x01(\x0cR\x0edataContractId\x12#\n\rdocumen\
3271
- t_type\x18\x02\x20\x01(\tR\x0cdocumentType\x12\x14\n\x05where\x18\x03\
3272
- \x20\x01(\x0cR\x05where\x12\x19\n\x08order_by\x18\x04\x20\x01(\x0cR\x07o\
3273
- rderBy\x12\x14\n\x05limit\x18\x05\x20\x01(\rR\x05limit\x12!\n\x0bstart_a\
3274
- fter\x18\x06\x20\x01(\x0cH\0R\nstartAfter\x12\x1b\n\x08start_at\x18\x07\
3275
- \x20\x01(\x0cH\0R\x07startAt\x12\x14\n\x05prove\x18\x08\x20\x01(\x08R\
3276
- \x05proveB\x07\n\x05start\"\xb5\x01\n\x14GetDocumentsResponse\x12\x1c\n\
3277
- \tdocuments\x18\x01\x20\x03(\x0cR\tdocuments\x126\n\x05proof\x18\x02\x20\
3278
- \x01(\x0b2\x20.org.dash.platform.dapi.v0.ProofR\x05proof\x12G\n\x08metad\
3279
- ata\x18\x03\x20\x01(\x0b2+.org.dash.platform.dapi.v0.ResponseMetadataR\
3280
- \x08metadata\"i\n%GetIdentitiesByPublicKeyHashesRequest\x12*\n\x11public\
3281
- _key_hashes\x18\x01\x20\x03(\x0cR\x0fpublicKeyHashes\x12\x14\n\x05prove\
3282
- \x18\x02\x20\x01(\x08R\x05prove\"\xc9\x01\n&GetIdentitiesByPublicKeyHash\
3283
- esResponse\x12\x1e\n\nidentities\x18\x01\x20\x03(\x0cR\nidentities\x126\
3284
- \n\x05proof\x18\x02\x20\x01(\x0b2\x20.org.dash.platform.dapi.v0.ProofR\
3285
- \x05proof\x12G\n\x08metadata\x18\x03\x20\x01(\x0b2+.org.dash.platform.da\
3286
- pi.v0.ResponseMetadataR\x08metadata\"o\n#WaitForStateTransitionResultReq\
3287
- uest\x122\n\x15state_transition_hash\x18\x01\x20\x01(\x0cR\x13stateTrans\
3288
- itionHash\x12\x14\n\x05prove\x18\x02\x20\x01(\x08R\x05prove\"\x88\x02\n$\
3289
- WaitForStateTransitionResultResponse\x12P\n\x05error\x18\x01\x20\x01(\
3290
- \x0b28.org.dash.platform.dapi.v0.StateTransitionBroadcastErrorH\0R\x05er\
3291
- ror\x128\n\x05proof\x18\x02\x20\x01(\x0b2\x20.org.dash.platform.dapi.v0.\
3292
- ProofH\0R\x05proof\x12G\n\x08metadata\x18\x03\x20\x01(\x0b2+.org.dash.pl\
3293
- atform.dapi.v0.ResponseMetadataR\x08metadataB\x0b\n\tresponses\"n\n\x14C\
3294
- onsensusParamsBlock\x12\x1b\n\tmax_bytes\x18\x01\x20\x01(\tR\x08maxBytes\
3295
- \x12\x17\n\x07max_gas\x18\x02\x20\x01(\tR\x06maxGas\x12\x20\n\x0ctime_io\
3296
- ta_ms\x18\x03\x20\x01(\tR\ntimeIotaMs\"\x8d\x01\n\x17ConsensusParamsEvid\
3297
- ence\x12+\n\x12max_age_num_blocks\x18\x01\x20\x01(\tR\x0fmaxAgeNumBlocks\
3298
- \x12(\n\x10max_age_duration\x18\x02\x20\x01(\tR\x0emaxAgeDuration\x12\
3299
- \x1b\n\tmax_bytes\x18\x03\x20\x01(\tR\x08maxBytes\"I\n\x19GetConsensusPa\
3300
- ramsRequest\x12\x16\n\x06height\x18\x01\x20\x01(\x03R\x06height\x12\x14\
3301
- \n\x05prove\x18\x02\x20\x01(\x08R\x05prove\"\xb3\x01\n\x1aGetConsensusPa\
3302
- ramsResponse\x12E\n\x05block\x18\x01\x20\x01(\x0b2/.org.dash.platform.da\
3303
- pi.v0.ConsensusParamsBlockR\x05block\x12N\n\x08evidence\x18\x02\x20\x01(\
3304
- \x0b22.org.dash.platform.dapi.v0.ConsensusParamsEvidenceR\x08evidence2\
3305
- \xc7\x07\n\x08Platform\x12\x93\x01\n\x18broadcastStateTransition\x12:.or\
3306
- g.dash.platform.dapi.v0.BroadcastStateTransitionRequest\x1a;.org.dash.pl\
3307
- atform.dapi.v0.BroadcastStateTransitionResponse\x12l\n\x0bgetIdentity\
3308
- \x12-.org.dash.platform.dapi.v0.GetIdentityRequest\x1a..org.dash.platfor\
3309
- m.dapi.v0.GetIdentityResponse\x12x\n\x0fgetDataContract\x121.org.dash.pl\
3310
- atform.dapi.v0.GetDataContractRequest\x1a2.org.dash.platform.dapi.v0.Get\
3311
- DataContractResponse\x12o\n\x0cgetDocuments\x12..org.dash.platform.dapi.\
3312
- v0.GetDocumentsRequest\x1a/.org.dash.platform.dapi.v0.GetDocumentsRespon\
3313
- se\x12\xa5\x01\n\x1egetIdentitiesByPublicKeyHashes\x12@.org.dash.platfor\
3314
- m.dapi.v0.GetIdentitiesByPublicKeyHashesRequest\x1aA.org.dash.platform.d\
3315
- api.v0.GetIdentitiesByPublicKeyHashesResponse\x12\x9f\x01\n\x1cwaitForSt\
3316
- ateTransitionResult\x12>.org.dash.platform.dapi.v0.WaitForStateTransitio\
3317
- nResultRequest\x1a?.org.dash.platform.dapi.v0.WaitForStateTransitionResu\
3318
- ltResponse\x12\x81\x01\n\x12getConsensusParams\x124.org.dash.platform.da\
3319
- pi.v0.GetConsensusParamsRequest\x1a5.org.dash.platform.dapi.v0.GetConsen\
3320
- susParamsResponseJ\xda\x1e\n\x07\x12\x05\0\0\x85\x01\x01\n\x08\n\x01\x0c\
3321
- \x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\"\n\t\n\x02\x03\0\x12\x03\
3322
- \x04\0)\n\n\n\x02\x06\0\x12\x04\x06\0\x0e\x01\n\n\n\x03\x06\0\x01\x12\
3323
- \x03\x06\x08\x10\n\x0b\n\x04\x06\0\x02\0\x12\x03\x07\x02l\n\x0c\n\x05\
3324
- \x06\0\x02\0\x01\x12\x03\x07\x06\x1e\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03\
3325
- \x07\x20?\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03\x07Jj\n\x0b\n\x04\x06\0\
3326
- \x02\x01\x12\x03\x08\x02E\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\x08\x06\
3327
- \x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03\x08\x13%\n\x0c\n\x05\x06\0\
3328
- \x02\x01\x03\x12\x03\x080C\n\x0b\n\x04\x06\0\x02\x02\x12\x03\t\x02Q\n\
3329
- \x0c\n\x05\x06\0\x02\x02\x01\x12\x03\t\x06\x15\n\x0c\n\x05\x06\0\x02\x02\
3330
- \x02\x12\x03\t\x17-\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03\t8O\n\x0b\n\
3331
- \x04\x06\0\x02\x03\x12\x03\n\x02H\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03\
3332
- \n\x06\x12\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03\n\x14'\n\x0c\n\x05\x06\
3333
- \0\x02\x03\x03\x12\x03\n2F\n\x0b\n\x04\x06\0\x02\x04\x12\x03\x0b\x02~\n\
3334
- \x0c\n\x05\x06\0\x02\x04\x01\x12\x03\x0b\x06$\n\x0c\n\x05\x06\0\x02\x04\
3335
- \x02\x12\x03\x0b&K\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03\x0bV|\n\x0b\n\
3336
- \x04\x06\0\x02\x05\x12\x03\x0c\x02x\n\x0c\n\x05\x06\0\x02\x05\x01\x12\
3337
- \x03\x0c\x06\"\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03\x0c$G\n\x0c\n\x05\
3338
- \x06\0\x02\x05\x03\x12\x03\x0cRv\n\x0b\n\x04\x06\0\x02\x06\x12\x03\r\x02\
3339
- Z\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03\r\x06\x18\n\x0c\n\x05\x06\0\x02\
3340
- \x06\x02\x12\x03\r\x1a3\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03\r>X\n\n\n\
3341
- \x02\x04\0\x12\x04\x10\0\x15\x01\n\n\n\x03\x04\0\x01\x12\x03\x10\x08\r\n\
3342
- \x0b\n\x04\x04\0\x02\0\x12\x03\x11\x02\x19\n\x0c\n\x05\x04\0\x02\0\x05\
3343
- \x12\x03\x11\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x11\x08\x14\n\
3344
- \x0c\n\x05\x04\0\x02\0\x03\x12\x03\x11\x17\x18\n\x0b\n\x04\x04\0\x02\x01\
3345
- \x12\x03\x12\x02\x18\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x12\x02\x07\n\
3346
- \x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x12\x08\x13\n\x0c\n\x05\x04\0\x02\
3347
- \x01\x03\x12\x03\x12\x16\x17\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x13\x02\
3348
- \x16\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x13\x02\x07\n\x0c\n\x05\x04\0\
3349
- \x02\x02\x01\x12\x03\x13\x08\x11\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\
3350
- \x13\x14\x15\n\x0b\n\x04\x04\0\x02\x03\x12\x03\x14\x02\x13\n\x0c\n\x05\
3351
- \x04\0\x02\x03\x05\x12\x03\x14\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\
3352
- \x03\x14\t\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x14\x11\x12\n\n\n\
3353
- \x02\x04\x01\x12\x04\x17\0\x1c\x01\n\n\n\x03\x04\x01\x01\x12\x03\x17\x08\
3354
- \x18\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x18\x02\x13\n\x0c\n\x05\x04\x01\
3355
- \x02\0\x05\x12\x03\x18\x02\x07\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x18\
3356
- \x08\x0e\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x18\x11\x12\n\x0b\n\x04\
3357
- \x04\x01\x02\x01\x12\x03\x19\x02&\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\
3358
- \x03\x19\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\x19\t!\n\x0c\n\
3359
- \x05\x04\x01\x02\x01\x03\x12\x03\x19$%\n\x0b\n\x04\x04\x01\x02\x02\x12\
3360
- \x03\x1a\x02\x15\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\x1a\x02\x08\n\
3361
- \x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x1a\t\x10\n\x0c\n\x05\x04\x01\x02\
3362
- \x02\x03\x12\x03\x1a\x13\x14\n\x0b\n\x04\x04\x01\x02\x03\x12\x03\x1b\x02\
3363
- \x1e\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03\x1b\x02\x08\n\x0c\n\x05\x04\
3364
- \x01\x02\x03\x01\x12\x03\x1b\t\x19\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\
3365
- \x03\x1b\x1c\x1d\n\n\n\x02\x04\x02\x12\x04\x1e\0\"\x01\n\n\n\x03\x04\x02\
3366
- \x01\x12\x03\x1e\x08%\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x1f\x02\x12\n\
3367
- \x0c\n\x05\x04\x02\x02\0\x05\x12\x03\x1f\x02\x08\n\x0c\n\x05\x04\x02\x02\
3368
- \0\x01\x12\x03\x1f\t\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x1f\x10\x11\
3369
- \n\x0b\n\x04\x04\x02\x02\x01\x12\x03\x20\x02\x15\n\x0c\n\x05\x04\x02\x02\
3370
- \x01\x05\x12\x03\x20\x02\x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03\x20\
3371
- \t\x10\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03\x20\x13\x14\n\x0b\n\x04\
3372
- \x04\x02\x02\x02\x12\x03!\x02\x11\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\
3373
- \x03!\x02\x07\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03!\x08\x0c\n\x0c\n\
3374
- \x05\x04\x02\x02\x02\x03\x12\x03!\x0f\x10\n\n\n\x02\x04\x03\x12\x04$\0&\
3375
- \x01\n\n\n\x03\x04\x03\x01\x12\x03$\x08'\n\x0b\n\x04\x04\x03\x02\0\x12\
3376
- \x03%\x02\x1d\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03%\x02\x07\n\x0c\n\x05\
3377
- \x04\x03\x02\0\x01\x12\x03%\x08\x18\n\x0c\n\x05\x04\x03\x02\0\x03\x12\
3378
- \x03%\x1b\x1c\n\n\n\x02\x04\x04\x12\x04(\0*\x01\n\n\n\x03\x04\x04\x01\
3379
- \x12\x03(\x08(\n\n\n\x02\x04\x05\x12\x04,\0/\x01\n\n\n\x03\x04\x05\x01\
3380
- \x12\x03,\x08\x1a\n\x0b\n\x04\x04\x05\x02\0\x12\x03-\x02\x0f\n\x0c\n\x05\
3381
- \x04\x05\x02\0\x05\x12\x03-\x02\x07\n\x0c\n\x05\x04\x05\x02\0\x01\x12\
3382
- \x03-\x08\n\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03-\r\x0e\n\x0b\n\x04\x04\
3383
- \x05\x02\x01\x12\x03.\x02\x11\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03.\
3384
- \x02\x06\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03.\x07\x0c\n\x0c\n\x05\
3385
- \x04\x05\x02\x01\x03\x12\x03.\x0f\x10\n\n\n\x02\x04\x06\x12\x041\05\x01\
3386
- \n\n\n\x03\x04\x06\x01\x12\x031\x08\x1b\n\x0b\n\x04\x04\x06\x02\0\x12\
3387
- \x032\x02\x15\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x032\x02\x07\n\x0c\n\x05\
3388
- \x04\x06\x02\0\x01\x12\x032\x08\x10\n\x0c\n\x05\x04\x06\x02\0\x03\x12\
3389
- \x032\x13\x14\n\x0b\n\x04\x04\x06\x02\x01\x12\x033\x02\x12\n\x0c\n\x05\
3390
- \x04\x06\x02\x01\x06\x12\x033\x02\x07\n\x0c\n\x05\x04\x06\x02\x01\x01\
3391
- \x12\x033\x08\r\n\x0c\n\x05\x04\x06\x02\x01\x03\x12\x033\x10\x11\n\x0b\n\
3392
- \x04\x04\x06\x02\x02\x12\x034\x02\x20\n\x0c\n\x05\x04\x06\x02\x02\x06\
3393
- \x12\x034\x02\x12\n\x0c\n\x05\x04\x06\x02\x02\x01\x12\x034\x13\x1b\n\x0c\
3394
- \n\x05\x04\x06\x02\x02\x03\x12\x034\x1e\x1f\n\n\n\x02\x04\x07\x12\x047\
3395
- \x01:\x01\n\n\n\x03\x04\x07\x01\x12\x037\t\x1f\n\x0b\n\x04\x04\x07\x02\0\
3396
- \x12\x038\x02\x0f\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x038\x02\x07\n\x0c\n\
3397
- \x05\x04\x07\x02\0\x01\x12\x038\x08\n\n\x0c\n\x05\x04\x07\x02\0\x03\x12\
3398
- \x038\r\x0e\n\x0b\n\x04\x04\x07\x02\x01\x12\x039\x02\x11\n\x0c\n\x05\x04\
3399
- \x07\x02\x01\x05\x12\x039\x02\x06\n\x0c\n\x05\x04\x07\x02\x01\x01\x12\
3400
- \x039\x07\x0c\n\x0c\n\x05\x04\x07\x02\x01\x03\x12\x039\x0f\x10\n\n\n\x02\
3401
- \x04\x08\x12\x04<\0@\x01\n\n\n\x03\x04\x08\x01\x12\x03<\x08\x1f\n\x0b\n\
3402
- \x04\x04\x08\x02\0\x12\x03=\x02\x1a\n\x0c\n\x05\x04\x08\x02\0\x05\x12\
3403
- \x03=\x02\x07\n\x0c\n\x05\x04\x08\x02\0\x01\x12\x03=\x08\x15\n\x0c\n\x05\
3404
- \x04\x08\x02\0\x03\x12\x03=\x18\x19\n\x0b\n\x04\x04\x08\x02\x01\x12\x03>\
3405
- \x02\x12\n\x0c\n\x05\x04\x08\x02\x01\x06\x12\x03>\x02\x07\n\x0c\n\x05\
3406
- \x04\x08\x02\x01\x01\x12\x03>\x08\r\n\x0c\n\x05\x04\x08\x02\x01\x03\x12\
3407
- \x03>\x10\x11\n\x0b\n\x04\x04\x08\x02\x02\x12\x03?\x02\x20\n\x0c\n\x05\
3408
- \x04\x08\x02\x02\x06\x12\x03?\x02\x12\n\x0c\n\x05\x04\x08\x02\x02\x01\
3409
- \x12\x03?\x13\x1b\n\x0c\n\x05\x04\x08\x02\x02\x03\x12\x03?\x1e\x1f\n\n\n\
3410
- \x02\x04\t\x12\x04B\0Q\x01\n\n\n\x03\x04\t\x01\x12\x03B\x08\x1b\n\x0b\n\
3411
- \x04\x04\t\x02\0\x12\x03C\x02\x1d\n\x0c\n\x05\x04\t\x02\0\x05\x12\x03C\
3412
- \x02\x07\n\x0c\n\x05\x04\t\x02\0\x01\x12\x03C\x08\x18\n\x0c\n\x05\x04\t\
3413
- \x02\0\x03\x12\x03C\x1b\x1c\n\x0b\n\x04\x04\t\x02\x01\x12\x03D\x02\x1b\n\
3414
- \x0c\n\x05\x04\t\x02\x01\x05\x12\x03D\x02\x08\n\x0c\n\x05\x04\t\x02\x01\
3415
- \x01\x12\x03D\t\x16\n\x0c\n\x05\x04\t\x02\x01\x03\x12\x03D\x19\x1a\n\x0b\
3416
- \n\x04\x04\t\x02\x02\x12\x03F\x02\x12\n\x0c\n\x05\x04\t\x02\x02\x05\x12\
3417
- \x03F\x02\x07\n\x0c\n\x05\x04\t\x02\x02\x01\x12\x03F\x08\r\n\x0c\n\x05\
3418
- \x04\t\x02\x02\x03\x12\x03F\x10\x11\n\x0b\n\x04\x04\t\x02\x03\x12\x03G\
3419
- \x02\x15\n\x0c\n\x05\x04\t\x02\x03\x05\x12\x03G\x02\x07\n\x0c\n\x05\x04\
3420
- \t\x02\x03\x01\x12\x03G\x08\x10\n\x0c\n\x05\x04\t\x02\x03\x03\x12\x03G\
3421
- \x13\x14\n\x0b\n\x04\x04\t\x02\x04\x12\x03I\x02\x13\n\x0c\n\x05\x04\t\
3422
- \x02\x04\x05\x12\x03I\x02\x08\n\x0c\n\x05\x04\t\x02\x04\x01\x12\x03I\t\
3423
- \x0e\n\x0c\n\x05\x04\t\x02\x04\x03\x12\x03I\x11\x12\n\x0c\n\x04\x04\t\
3424
- \x08\0\x12\x04K\x04N\x05\n\x0c\n\x05\x04\t\x08\0\x01\x12\x03K\n\x0f\n\
3425
- \x0b\n\x04\x04\t\x02\x05\x12\x03L\x06\x1c\n\x0c\n\x05\x04\t\x02\x05\x05\
3426
- \x12\x03L\x06\x0b\n\x0c\n\x05\x04\t\x02\x05\x01\x12\x03L\x0c\x17\n\x0c\n\
3427
- \x05\x04\t\x02\x05\x03\x12\x03L\x1a\x1b\n\x0b\n\x04\x04\t\x02\x06\x12\
3428
- \x03M\x06\x19\n\x0c\n\x05\x04\t\x02\x06\x05\x12\x03M\x06\x0b\n\x0c\n\x05\
3429
- \x04\t\x02\x06\x01\x12\x03M\x0c\x14\n\x0c\n\x05\x04\t\x02\x06\x03\x12\
3430
- \x03M\x17\x18\n\x0b\n\x04\x04\t\x02\x07\x12\x03P\x02\x11\n\x0c\n\x05\x04\
3431
- \t\x02\x07\x05\x12\x03P\x02\x06\n\x0c\n\x05\x04\t\x02\x07\x01\x12\x03P\
3432
- \x07\x0c\n\x0c\n\x05\x04\t\x02\x07\x03\x12\x03P\x0f\x10\n\n\n\x02\x04\n\
3433
- \x12\x04S\0W\x01\n\n\n\x03\x04\n\x01\x12\x03S\x08\x1c\n\x0b\n\x04\x04\n\
3434
- \x02\0\x12\x03T\x02\x1f\n\x0c\n\x05\x04\n\x02\0\x04\x12\x03T\x02\n\n\x0c\
3435
- \n\x05\x04\n\x02\0\x05\x12\x03T\x0b\x10\n\x0c\n\x05\x04\n\x02\0\x01\x12\
3436
- \x03T\x11\x1a\n\x0c\n\x05\x04\n\x02\0\x03\x12\x03T\x1d\x1e\n\x0b\n\x04\
3437
- \x04\n\x02\x01\x12\x03U\x02\x12\n\x0c\n\x05\x04\n\x02\x01\x06\x12\x03U\
3438
- \x02\x07\n\x0c\n\x05\x04\n\x02\x01\x01\x12\x03U\x08\r\n\x0c\n\x05\x04\n\
3439
- \x02\x01\x03\x12\x03U\x10\x11\n\x0b\n\x04\x04\n\x02\x02\x12\x03V\x02\x20\
3440
- \n\x0c\n\x05\x04\n\x02\x02\x06\x12\x03V\x02\x12\n\x0c\n\x05\x04\n\x02\
3441
- \x02\x01\x12\x03V\x13\x1b\n\x0c\n\x05\x04\n\x02\x02\x03\x12\x03V\x1e\x1f\
3442
- \n\n\n\x02\x04\x0b\x12\x04Y\0\\\x01\n\n\n\x03\x04\x0b\x01\x12\x03Y\x08-\
3443
- \n\x0b\n\x04\x04\x0b\x02\0\x12\x03Z\x02'\n\x0c\n\x05\x04\x0b\x02\0\x04\
3444
- \x12\x03Z\x02\n\n\x0c\n\x05\x04\x0b\x02\0\x05\x12\x03Z\x0b\x10\n\x0c\n\
3445
- \x05\x04\x0b\x02\0\x01\x12\x03Z\x11\"\n\x0c\n\x05\x04\x0b\x02\0\x03\x12\
3446
- \x03Z%&\n\x0b\n\x04\x04\x0b\x02\x01\x12\x03[\x02\x11\n\x0c\n\x05\x04\x0b\
3447
- \x02\x01\x05\x12\x03[\x02\x06\n\x0c\n\x05\x04\x0b\x02\x01\x01\x12\x03[\
3448
- \x07\x0c\n\x0c\n\x05\x04\x0b\x02\x01\x03\x12\x03[\x0f\x10\n\n\n\x02\x04\
3449
- \x0c\x12\x04^\0b\x01\n\n\n\x03\x04\x0c\x01\x12\x03^\x08.\n\x0b\n\x04\x04\
3450
- \x0c\x02\0\x12\x03_\x02\x20\n\x0c\n\x05\x04\x0c\x02\0\x04\x12\x03_\x02\n\
3451
- \n\x0c\n\x05\x04\x0c\x02\0\x05\x12\x03_\x0b\x10\n\x0c\n\x05\x04\x0c\x02\
3452
- \0\x01\x12\x03_\x11\x1b\n\x0c\n\x05\x04\x0c\x02\0\x03\x12\x03_\x1e\x1f\n\
3453
- \x0b\n\x04\x04\x0c\x02\x01\x12\x03`\x02\x12\n\x0c\n\x05\x04\x0c\x02\x01\
3454
- \x06\x12\x03`\x02\x07\n\x0c\n\x05\x04\x0c\x02\x01\x01\x12\x03`\x08\r\n\
3455
- \x0c\n\x05\x04\x0c\x02\x01\x03\x12\x03`\x10\x11\n\x0b\n\x04\x04\x0c\x02\
3456
- \x02\x12\x03a\x02\x20\n\x0c\n\x05\x04\x0c\x02\x02\x06\x12\x03a\x02\x12\n\
3457
- \x0c\n\x05\x04\x0c\x02\x02\x01\x12\x03a\x13\x1b\n\x0c\n\x05\x04\x0c\x02\
3458
- \x02\x03\x12\x03a\x1e\x1f\n\n\n\x02\x04\r\x12\x04d\0g\x01\n\n\n\x03\x04\
3459
- \r\x01\x12\x03d\x08+\n\x0b\n\x04\x04\r\x02\0\x12\x03e\x02\"\n\x0c\n\x05\
3460
- \x04\r\x02\0\x05\x12\x03e\x02\x07\n\x0c\n\x05\x04\r\x02\0\x01\x12\x03e\
3461
- \x08\x1d\n\x0c\n\x05\x04\r\x02\0\x03\x12\x03e\x20!\n\x0b\n\x04\x04\r\x02\
3462
- \x01\x12\x03f\x02\x11\n\x0c\n\x05\x04\r\x02\x01\x05\x12\x03f\x02\x06\n\
3463
- \x0c\n\x05\x04\r\x02\x01\x01\x12\x03f\x07\x0c\n\x0c\n\x05\x04\r\x02\x01\
3464
- \x03\x12\x03f\x0f\x10\n\n\n\x02\x04\x0e\x12\x04i\0o\x01\n\n\n\x03\x04\
3465
- \x0e\x01\x12\x03i\x08,\n\x0c\n\x04\x04\x0e\x08\0\x12\x04j\x02m\x03\n\x0c\
3466
- \n\x05\x04\x0e\x08\0\x01\x12\x03j\x08\x11\n\x0b\n\x04\x04\x0e\x02\0\x12\
3467
- \x03k\x04,\n\x0c\n\x05\x04\x0e\x02\0\x06\x12\x03k\x04!\n\x0c\n\x05\x04\
3468
- \x0e\x02\0\x01\x12\x03k\"'\n\x0c\n\x05\x04\x0e\x02\0\x03\x12\x03k*+\n\
3469
- \x0b\n\x04\x04\x0e\x02\x01\x12\x03l\x04\x14\n\x0c\n\x05\x04\x0e\x02\x01\
3470
- \x06\x12\x03l\x04\t\n\x0c\n\x05\x04\x0e\x02\x01\x01\x12\x03l\n\x0f\n\x0c\
3471
- \n\x05\x04\x0e\x02\x01\x03\x12\x03l\x12\x13\n\x0b\n\x04\x04\x0e\x02\x02\
3472
- \x12\x03n\x02\x20\n\x0c\n\x05\x04\x0e\x02\x02\x06\x12\x03n\x02\x12\n\x0c\
3473
- \n\x05\x04\x0e\x02\x02\x01\x12\x03n\x13\x1b\n\x0c\n\x05\x04\x0e\x02\x02\
3474
- \x03\x12\x03n\x1e\x1f\n\n\n\x02\x04\x0f\x12\x04q\0u\x01\n\n\n\x03\x04\
3475
- \x0f\x01\x12\x03q\x08\x1c\n\x0b\n\x04\x04\x0f\x02\0\x12\x03r\x02\x17\n\
3476
- \x0c\n\x05\x04\x0f\x02\0\x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\x0f\x02\0\
3477
- \x01\x12\x03r\t\x12\n\x0c\n\x05\x04\x0f\x02\0\x03\x12\x03r\x15\x16\n\x0b\
3478
- \n\x04\x04\x0f\x02\x01\x12\x03s\x02\x15\n\x0c\n\x05\x04\x0f\x02\x01\x05\
3479
- \x12\x03s\x02\x08\n\x0c\n\x05\x04\x0f\x02\x01\x01\x12\x03s\t\x10\n\x0c\n\
3480
- \x05\x04\x0f\x02\x01\x03\x12\x03s\x13\x14\n\x0b\n\x04\x04\x0f\x02\x02\
3481
- \x12\x03t\x02\x1a\n\x0c\n\x05\x04\x0f\x02\x02\x05\x12\x03t\x02\x08\n\x0c\
3482
- \n\x05\x04\x0f\x02\x02\x01\x12\x03t\t\x15\n\x0c\n\x05\x04\x0f\x02\x02\
3483
- \x03\x12\x03t\x18\x19\n\n\n\x02\x04\x10\x12\x04w\0{\x01\n\n\n\x03\x04\
3484
- \x10\x01\x12\x03w\x08\x1f\n\x0b\n\x04\x04\x10\x02\0\x12\x03x\x02\x20\n\
3485
- \x0c\n\x05\x04\x10\x02\0\x05\x12\x03x\x02\x08\n\x0c\n\x05\x04\x10\x02\0\
3486
- \x01\x12\x03x\t\x1b\n\x0c\n\x05\x04\x10\x02\0\x03\x12\x03x\x1e\x1f\n\x0b\
3487
- \n\x04\x04\x10\x02\x01\x12\x03y\x02\x1e\n\x0c\n\x05\x04\x10\x02\x01\x05\
3488
- \x12\x03y\x02\x08\n\x0c\n\x05\x04\x10\x02\x01\x01\x12\x03y\t\x19\n\x0c\n\
3489
- \x05\x04\x10\x02\x01\x03\x12\x03y\x1c\x1d\n\x0b\n\x04\x04\x10\x02\x02\
3490
- \x12\x03z\x02\x17\n\x0c\n\x05\x04\x10\x02\x02\x05\x12\x03z\x02\x08\n\x0c\
3491
- \n\x05\x04\x10\x02\x02\x01\x12\x03z\t\x12\n\x0c\n\x05\x04\x10\x02\x02\
3492
- \x03\x12\x03z\x15\x16\n\x0b\n\x02\x04\x11\x12\x05}\0\x80\x01\x01\n\n\n\
3493
- \x03\x04\x11\x01\x12\x03}\x08!\n\x0b\n\x04\x04\x11\x02\0\x12\x03~\x02\
3494
- \x13\n\x0c\n\x05\x04\x11\x02\0\x05\x12\x03~\x02\x07\n\x0c\n\x05\x04\x11\
3495
- \x02\0\x01\x12\x03~\x08\x0e\n\x0c\n\x05\x04\x11\x02\0\x03\x12\x03~\x11\
3496
- \x12\n\x0b\n\x04\x04\x11\x02\x01\x12\x03\x7f\x02\x11\n\x0c\n\x05\x04\x11\
3497
- \x02\x01\x05\x12\x03\x7f\x02\x06\n\x0c\n\x05\x04\x11\x02\x01\x01\x12\x03\
3498
- \x7f\x07\x0c\n\x0c\n\x05\x04\x11\x02\x01\x03\x12\x03\x7f\x0f\x10\n\x0c\n\
3499
- \x02\x04\x12\x12\x06\x82\x01\0\x85\x01\x01\n\x0b\n\x03\x04\x12\x01\x12\
3500
- \x04\x82\x01\x08\"\n\x0c\n\x04\x04\x12\x02\0\x12\x04\x83\x01\x02!\n\r\n\
3501
- \x05\x04\x12\x02\0\x06\x12\x04\x83\x01\x02\x16\n\r\n\x05\x04\x12\x02\0\
3502
- \x01\x12\x04\x83\x01\x17\x1c\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\x83\x01\
3503
- \x1f\x20\n\x0c\n\x04\x04\x12\x02\x01\x12\x04\x84\x01\x02'\n\r\n\x05\x04\
3504
- \x12\x02\x01\x06\x12\x04\x84\x01\x02\x19\n\r\n\x05\x04\x12\x02\x01\x01\
3505
- \x12\x04\x84\x01\x1a\"\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\x84\x01%&b\
3506
- \x06proto3\
3507
- ";
3508
-
3509
- /// `FileDescriptorProto` object which was a source for this generated file
3510
- fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
3511
- static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
3512
- file_descriptor_proto_lazy.get(|| {
3513
- ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
3514
- })
3515
- }
3516
-
3517
- /// `FileDescriptor` object which allows dynamic access to files
3518
- pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
3519
- static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
3520
- static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
3521
- file_descriptor.get(|| {
3522
- let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
3523
- let mut deps = ::std::vec::Vec::with_capacity(1);
3524
- deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone());
3525
- let mut messages = ::std::vec::Vec::with_capacity(19);
3526
- messages.push(Proof::generated_message_descriptor_data());
3527
- messages.push(ResponseMetadata::generated_message_descriptor_data());
3528
- messages.push(StateTransitionBroadcastError::generated_message_descriptor_data());
3529
- messages.push(BroadcastStateTransitionRequest::generated_message_descriptor_data());
3530
- messages.push(BroadcastStateTransitionResponse::generated_message_descriptor_data());
3531
- messages.push(GetIdentityRequest::generated_message_descriptor_data());
3532
- messages.push(GetIdentityResponse::generated_message_descriptor_data());
3533
- messages.push(GetDataContractRequest::generated_message_descriptor_data());
3534
- messages.push(GetDataContractResponse::generated_message_descriptor_data());
3535
- messages.push(GetDocumentsRequest::generated_message_descriptor_data());
3536
- messages.push(GetDocumentsResponse::generated_message_descriptor_data());
3537
- messages.push(GetIdentitiesByPublicKeyHashesRequest::generated_message_descriptor_data());
3538
- messages.push(GetIdentitiesByPublicKeyHashesResponse::generated_message_descriptor_data());
3539
- messages.push(WaitForStateTransitionResultRequest::generated_message_descriptor_data());
3540
- messages.push(WaitForStateTransitionResultResponse::generated_message_descriptor_data());
3541
- messages.push(ConsensusParamsBlock::generated_message_descriptor_data());
3542
- messages.push(ConsensusParamsEvidence::generated_message_descriptor_data());
3543
- messages.push(GetConsensusParamsRequest::generated_message_descriptor_data());
3544
- messages.push(GetConsensusParamsResponse::generated_message_descriptor_data());
3545
- let mut enums = ::std::vec::Vec::with_capacity(0);
3546
- ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
3547
- file_descriptor_proto(),
3548
- deps,
3549
- messages,
3550
- enums,
3551
- )
3552
- });
3553
- ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
3554
- })
3555
- }