tendermint_proto/prost/v0_37/
tendermint.blocksync.rs

1// This file is @generated by prost-build.
2/// BlockRequest requests a block for a specific height
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, Copy, PartialEq, ::prost::Message)]
5pub struct BlockRequest {
6    #[prost(int64, tag = "1")]
7    pub height: i64,
8}
9/// NoBlockResponse informs the node that the peer does not have block at the requested height
10#[allow(clippy::derive_partial_eq_without_eq)]
11#[derive(Clone, Copy, PartialEq, ::prost::Message)]
12pub struct NoBlockResponse {
13    #[prost(int64, tag = "1")]
14    pub height: i64,
15}
16/// BlockResponse returns block to the requested
17#[allow(clippy::derive_partial_eq_without_eq)]
18#[derive(Clone, PartialEq, ::prost::Message)]
19pub struct BlockResponse {
20    #[prost(message, optional, tag = "1")]
21    pub block: ::core::option::Option<super::types::Block>,
22}
23/// StatusRequest requests the status of a peer.
24#[allow(clippy::derive_partial_eq_without_eq)]
25#[derive(Clone, Copy, PartialEq, ::prost::Message)]
26pub struct StatusRequest {}
27/// StatusResponse is a peer response to inform their status.
28#[allow(clippy::derive_partial_eq_without_eq)]
29#[derive(Clone, Copy, PartialEq, ::prost::Message)]
30pub struct StatusResponse {
31    #[prost(int64, tag = "1")]
32    pub height: i64,
33    #[prost(int64, tag = "2")]
34    pub base: i64,
35}
36#[allow(clippy::derive_partial_eq_without_eq)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct Message {
39    #[prost(oneof = "message::Sum", tags = "1, 2, 3, 4, 5")]
40    pub sum: ::core::option::Option<message::Sum>,
41}
42/// Nested message and enum types in `Message`.
43pub mod message {
44    #[allow(clippy::derive_partial_eq_without_eq)]
45    #[derive(Clone, PartialEq, ::prost::Oneof)]
46    pub enum Sum {
47        #[prost(message, tag = "1")]
48        BlockRequest(super::BlockRequest),
49        #[prost(message, tag = "2")]
50        NoBlockResponse(super::NoBlockResponse),
51        #[prost(message, tag = "3")]
52        BlockResponse(super::BlockResponse),
53        #[prost(message, tag = "4")]
54        StatusRequest(super::StatusRequest),
55        #[prost(message, tag = "5")]
56        StatusResponse(super::StatusResponse),
57    }
58}