github.com/vipernet-xyz/tendermint-core@v0.32.0/proto/blockchain/msgs.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: proto/blockchain/msgs.proto
     3  
     4  package blockchain
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	types "github.com/tendermint/tendermint/proto/types"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  // BlockRequest requests a block for a specific height
    26  type BlockRequest struct {
    27  	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    28  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    29  	XXX_unrecognized     []byte   `json:"-"`
    30  	XXX_sizecache        int32    `json:"-"`
    31  }
    32  
    33  func (m *BlockRequest) Reset()         { *m = BlockRequest{} }
    34  func (m *BlockRequest) String() string { return proto.CompactTextString(m) }
    35  func (*BlockRequest) ProtoMessage()    {}
    36  func (*BlockRequest) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_ecf660069f8bb334, []int{0}
    38  }
    39  func (m *BlockRequest) XXX_Unmarshal(b []byte) error {
    40  	return xxx_messageInfo_BlockRequest.Unmarshal(m, b)
    41  }
    42  func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	return xxx_messageInfo_BlockRequest.Marshal(b, m, deterministic)
    44  }
    45  func (m *BlockRequest) XXX_Merge(src proto.Message) {
    46  	xxx_messageInfo_BlockRequest.Merge(m, src)
    47  }
    48  func (m *BlockRequest) XXX_Size() int {
    49  	return xxx_messageInfo_BlockRequest.Size(m)
    50  }
    51  func (m *BlockRequest) XXX_DiscardUnknown() {
    52  	xxx_messageInfo_BlockRequest.DiscardUnknown(m)
    53  }
    54  
    55  var xxx_messageInfo_BlockRequest proto.InternalMessageInfo
    56  
    57  func (m *BlockRequest) GetHeight() int64 {
    58  	if m != nil {
    59  		return m.Height
    60  	}
    61  	return 0
    62  }
    63  
    64  // NoBlockResponse informs the node that the peer does not have block at the requested height
    65  type NoBlockResponse struct {
    66  	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
    67  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    68  	XXX_unrecognized     []byte   `json:"-"`
    69  	XXX_sizecache        int32    `json:"-"`
    70  }
    71  
    72  func (m *NoBlockResponse) Reset()         { *m = NoBlockResponse{} }
    73  func (m *NoBlockResponse) String() string { return proto.CompactTextString(m) }
    74  func (*NoBlockResponse) ProtoMessage()    {}
    75  func (*NoBlockResponse) Descriptor() ([]byte, []int) {
    76  	return fileDescriptor_ecf660069f8bb334, []int{1}
    77  }
    78  func (m *NoBlockResponse) XXX_Unmarshal(b []byte) error {
    79  	return xxx_messageInfo_NoBlockResponse.Unmarshal(m, b)
    80  }
    81  func (m *NoBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    82  	return xxx_messageInfo_NoBlockResponse.Marshal(b, m, deterministic)
    83  }
    84  func (m *NoBlockResponse) XXX_Merge(src proto.Message) {
    85  	xxx_messageInfo_NoBlockResponse.Merge(m, src)
    86  }
    87  func (m *NoBlockResponse) XXX_Size() int {
    88  	return xxx_messageInfo_NoBlockResponse.Size(m)
    89  }
    90  func (m *NoBlockResponse) XXX_DiscardUnknown() {
    91  	xxx_messageInfo_NoBlockResponse.DiscardUnknown(m)
    92  }
    93  
    94  var xxx_messageInfo_NoBlockResponse proto.InternalMessageInfo
    95  
    96  func (m *NoBlockResponse) GetHeight() int64 {
    97  	if m != nil {
    98  		return m.Height
    99  	}
   100  	return 0
   101  }
   102  
   103  // BlockResponse returns block to the requested
   104  type BlockResponse struct {
   105  	Block                types.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block"`
   106  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
   107  	XXX_unrecognized     []byte      `json:"-"`
   108  	XXX_sizecache        int32       `json:"-"`
   109  }
   110  
   111  func (m *BlockResponse) Reset()         { *m = BlockResponse{} }
   112  func (m *BlockResponse) String() string { return proto.CompactTextString(m) }
   113  func (*BlockResponse) ProtoMessage()    {}
   114  func (*BlockResponse) Descriptor() ([]byte, []int) {
   115  	return fileDescriptor_ecf660069f8bb334, []int{2}
   116  }
   117  func (m *BlockResponse) XXX_Unmarshal(b []byte) error {
   118  	return xxx_messageInfo_BlockResponse.Unmarshal(m, b)
   119  }
   120  func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   121  	return xxx_messageInfo_BlockResponse.Marshal(b, m, deterministic)
   122  }
   123  func (m *BlockResponse) XXX_Merge(src proto.Message) {
   124  	xxx_messageInfo_BlockResponse.Merge(m, src)
   125  }
   126  func (m *BlockResponse) XXX_Size() int {
   127  	return xxx_messageInfo_BlockResponse.Size(m)
   128  }
   129  func (m *BlockResponse) XXX_DiscardUnknown() {
   130  	xxx_messageInfo_BlockResponse.DiscardUnknown(m)
   131  }
   132  
   133  var xxx_messageInfo_BlockResponse proto.InternalMessageInfo
   134  
   135  func (m *BlockResponse) GetBlock() types.Block {
   136  	if m != nil {
   137  		return m.Block
   138  	}
   139  	return types.Block{}
   140  }
   141  
   142  // StatusRequest requests the status of a node (Height & Base)
   143  type StatusRequest struct {
   144  	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   145  	Base                 int64    `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
   146  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   147  	XXX_unrecognized     []byte   `json:"-"`
   148  	XXX_sizecache        int32    `json:"-"`
   149  }
   150  
   151  func (m *StatusRequest) Reset()         { *m = StatusRequest{} }
   152  func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
   153  func (*StatusRequest) ProtoMessage()    {}
   154  func (*StatusRequest) Descriptor() ([]byte, []int) {
   155  	return fileDescriptor_ecf660069f8bb334, []int{3}
   156  }
   157  func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
   158  	return xxx_messageInfo_StatusRequest.Unmarshal(m, b)
   159  }
   160  func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   161  	return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
   162  }
   163  func (m *StatusRequest) XXX_Merge(src proto.Message) {
   164  	xxx_messageInfo_StatusRequest.Merge(m, src)
   165  }
   166  func (m *StatusRequest) XXX_Size() int {
   167  	return xxx_messageInfo_StatusRequest.Size(m)
   168  }
   169  func (m *StatusRequest) XXX_DiscardUnknown() {
   170  	xxx_messageInfo_StatusRequest.DiscardUnknown(m)
   171  }
   172  
   173  var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
   174  
   175  func (m *StatusRequest) GetHeight() int64 {
   176  	if m != nil {
   177  		return m.Height
   178  	}
   179  	return 0
   180  }
   181  
   182  func (m *StatusRequest) GetBase() int64 {
   183  	if m != nil {
   184  		return m.Base
   185  	}
   186  	return 0
   187  }
   188  
   189  // StatusResponse is a peer response to infrom their status
   190  type StatusResponse struct {
   191  	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   192  	Base                 int64    `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
   193  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   194  	XXX_unrecognized     []byte   `json:"-"`
   195  	XXX_sizecache        int32    `json:"-"`
   196  }
   197  
   198  func (m *StatusResponse) Reset()         { *m = StatusResponse{} }
   199  func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
   200  func (*StatusResponse) ProtoMessage()    {}
   201  func (*StatusResponse) Descriptor() ([]byte, []int) {
   202  	return fileDescriptor_ecf660069f8bb334, []int{4}
   203  }
   204  func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
   205  	return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
   206  }
   207  func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   208  	return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
   209  }
   210  func (m *StatusResponse) XXX_Merge(src proto.Message) {
   211  	xxx_messageInfo_StatusResponse.Merge(m, src)
   212  }
   213  func (m *StatusResponse) XXX_Size() int {
   214  	return xxx_messageInfo_StatusResponse.Size(m)
   215  }
   216  func (m *StatusResponse) XXX_DiscardUnknown() {
   217  	xxx_messageInfo_StatusResponse.DiscardUnknown(m)
   218  }
   219  
   220  var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
   221  
   222  func (m *StatusResponse) GetHeight() int64 {
   223  	if m != nil {
   224  		return m.Height
   225  	}
   226  	return 0
   227  }
   228  
   229  func (m *StatusResponse) GetBase() int64 {
   230  	if m != nil {
   231  		return m.Base
   232  	}
   233  	return 0
   234  }
   235  
   236  type Message struct {
   237  	// Types that are valid to be assigned to Sum:
   238  	//	*Message_BlockRequest
   239  	//	*Message_NoBlockResponse
   240  	//	*Message_BlockResponse
   241  	//	*Message_StatusRequest
   242  	//	*Message_StatusResponse
   243  	Sum                  isMessage_Sum `protobuf_oneof:"sum"`
   244  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   245  	XXX_unrecognized     []byte        `json:"-"`
   246  	XXX_sizecache        int32         `json:"-"`
   247  }
   248  
   249  func (m *Message) Reset()         { *m = Message{} }
   250  func (m *Message) String() string { return proto.CompactTextString(m) }
   251  func (*Message) ProtoMessage()    {}
   252  func (*Message) Descriptor() ([]byte, []int) {
   253  	return fileDescriptor_ecf660069f8bb334, []int{5}
   254  }
   255  func (m *Message) XXX_Unmarshal(b []byte) error {
   256  	return xxx_messageInfo_Message.Unmarshal(m, b)
   257  }
   258  func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   259  	return xxx_messageInfo_Message.Marshal(b, m, deterministic)
   260  }
   261  func (m *Message) XXX_Merge(src proto.Message) {
   262  	xxx_messageInfo_Message.Merge(m, src)
   263  }
   264  func (m *Message) XXX_Size() int {
   265  	return xxx_messageInfo_Message.Size(m)
   266  }
   267  func (m *Message) XXX_DiscardUnknown() {
   268  	xxx_messageInfo_Message.DiscardUnknown(m)
   269  }
   270  
   271  var xxx_messageInfo_Message proto.InternalMessageInfo
   272  
   273  type isMessage_Sum interface {
   274  	isMessage_Sum()
   275  }
   276  
   277  type Message_BlockRequest struct {
   278  	BlockRequest *BlockRequest `protobuf:"bytes,1,opt,name=block_request,json=blockRequest,proto3,oneof" json:"block_request,omitempty"`
   279  }
   280  type Message_NoBlockResponse struct {
   281  	NoBlockResponse *NoBlockResponse `protobuf:"bytes,2,opt,name=no_block_response,json=noBlockResponse,proto3,oneof" json:"no_block_response,omitempty"`
   282  }
   283  type Message_BlockResponse struct {
   284  	BlockResponse *BlockResponse `protobuf:"bytes,3,opt,name=block_response,json=blockResponse,proto3,oneof" json:"block_response,omitempty"`
   285  }
   286  type Message_StatusRequest struct {
   287  	StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest,proto3,oneof" json:"status_request,omitempty"`
   288  }
   289  type Message_StatusResponse struct {
   290  	StatusResponse *StatusResponse `protobuf:"bytes,5,opt,name=status_response,json=statusResponse,proto3,oneof" json:"status_response,omitempty"`
   291  }
   292  
   293  func (*Message_BlockRequest) isMessage_Sum()    {}
   294  func (*Message_NoBlockResponse) isMessage_Sum() {}
   295  func (*Message_BlockResponse) isMessage_Sum()   {}
   296  func (*Message_StatusRequest) isMessage_Sum()   {}
   297  func (*Message_StatusResponse) isMessage_Sum()  {}
   298  
   299  func (m *Message) GetSum() isMessage_Sum {
   300  	if m != nil {
   301  		return m.Sum
   302  	}
   303  	return nil
   304  }
   305  
   306  func (m *Message) GetBlockRequest() *BlockRequest {
   307  	if x, ok := m.GetSum().(*Message_BlockRequest); ok {
   308  		return x.BlockRequest
   309  	}
   310  	return nil
   311  }
   312  
   313  func (m *Message) GetNoBlockResponse() *NoBlockResponse {
   314  	if x, ok := m.GetSum().(*Message_NoBlockResponse); ok {
   315  		return x.NoBlockResponse
   316  	}
   317  	return nil
   318  }
   319  
   320  func (m *Message) GetBlockResponse() *BlockResponse {
   321  	if x, ok := m.GetSum().(*Message_BlockResponse); ok {
   322  		return x.BlockResponse
   323  	}
   324  	return nil
   325  }
   326  
   327  func (m *Message) GetStatusRequest() *StatusRequest {
   328  	if x, ok := m.GetSum().(*Message_StatusRequest); ok {
   329  		return x.StatusRequest
   330  	}
   331  	return nil
   332  }
   333  
   334  func (m *Message) GetStatusResponse() *StatusResponse {
   335  	if x, ok := m.GetSum().(*Message_StatusResponse); ok {
   336  		return x.StatusResponse
   337  	}
   338  	return nil
   339  }
   340  
   341  // XXX_OneofWrappers is for the internal use of the proto package.
   342  func (*Message) XXX_OneofWrappers() []interface{} {
   343  	return []interface{}{
   344  		(*Message_BlockRequest)(nil),
   345  		(*Message_NoBlockResponse)(nil),
   346  		(*Message_BlockResponse)(nil),
   347  		(*Message_StatusRequest)(nil),
   348  		(*Message_StatusResponse)(nil),
   349  	}
   350  }
   351  
   352  func init() {
   353  	proto.RegisterType((*BlockRequest)(nil), "tendermint.proto.blockchain.BlockRequest")
   354  	proto.RegisterType((*NoBlockResponse)(nil), "tendermint.proto.blockchain.NoBlockResponse")
   355  	proto.RegisterType((*BlockResponse)(nil), "tendermint.proto.blockchain.BlockResponse")
   356  	proto.RegisterType((*StatusRequest)(nil), "tendermint.proto.blockchain.StatusRequest")
   357  	proto.RegisterType((*StatusResponse)(nil), "tendermint.proto.blockchain.StatusResponse")
   358  	proto.RegisterType((*Message)(nil), "tendermint.proto.blockchain.Message")
   359  }
   360  
   361  func init() { proto.RegisterFile("proto/blockchain/msgs.proto", fileDescriptor_ecf660069f8bb334) }
   362  
   363  var fileDescriptor_ecf660069f8bb334 = []byte{
   364  	// 369 bytes of a gzipped FileDescriptorProto
   365  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x4e, 0xc2, 0x40,
   366  	0x10, 0x86, 0xc1, 0x02, 0x26, 0x03, 0x85, 0xd8, 0x83, 0x12, 0x88, 0xd1, 0xf4, 0x40, 0x44, 0xcd,
   367  	0x36, 0xc2, 0xc9, 0xe8, 0xa9, 0x27, 0x62, 0xa2, 0x31, 0x25, 0xf1, 0xc0, 0x85, 0xb4, 0xb0, 0x69,
   368  	0x1b, 0x6d, 0xb7, 0x76, 0xb6, 0x07, 0xde, 0xce, 0xa3, 0x4f, 0xe1, 0xb3, 0x18, 0x76, 0x4b, 0xa1,
   369  	0x55, 0xb1, 0xb7, 0xdd, 0xbf, 0x33, 0xdf, 0xfc, 0x3b, 0x7f, 0x0a, 0xfd, 0x28, 0x66, 0x9c, 0x19,
   370  	0xce, 0x1b, 0x5b, 0xbc, 0x2e, 0x3c, 0xdb, 0x0f, 0x8d, 0x00, 0x5d, 0x24, 0x42, 0xd5, 0xfa, 0x9c,
   371  	0x86, 0x4b, 0x1a, 0x07, 0x7e, 0xc8, 0xa5, 0x42, 0xb6, 0x75, 0xbd, 0x01, 0xf7, 0xfc, 0x78, 0x39,
   372  	0x8f, 0xec, 0x98, 0xaf, 0x0c, 0x49, 0x71, 0x99, 0xcb, 0xb6, 0x27, 0xd9, 0xd2, 0x3b, 0x91, 0x0a,
   373  	0x5f, 0x45, 0x14, 0xe5, 0x1c, 0xf9, 0x41, 0x1f, 0x40, 0xcb, 0x5c, 0x5f, 0x2d, 0xfa, 0x9e, 0x50,
   374  	0xe4, 0xda, 0x31, 0x34, 0x3c, 0xea, 0xbb, 0x1e, 0xef, 0x56, 0xcf, 0xab, 0x17, 0x8a, 0x95, 0xde,
   375  	0xf4, 0x21, 0x74, 0x9e, 0x58, 0x5a, 0x89, 0x11, 0x0b, 0x91, 0xfe, 0x59, 0xfa, 0x00, 0x6a, 0xbe,
   376  	0xf0, 0x16, 0xea, 0x62, 0xa4, 0xa8, 0x6b, 0x8e, 0x4e, 0xc9, 0x8f, 0x17, 0x09, 0x5f, 0x44, 0x74,
   377  	0x99, 0xb5, 0xcf, 0xaf, 0xb3, 0x8a, 0x25, 0x3b, 0xf4, 0x3b, 0x50, 0xa7, 0xdc, 0xe6, 0x09, 0xfe,
   378  	0xe3, 0x4f, 0xd3, 0xa0, 0xe6, 0xd8, 0x48, 0xbb, 0x07, 0x42, 0x15, 0x67, 0xfd, 0x1e, 0xda, 0x9b,
   379  	0xe6, 0xfd, 0x96, 0x7f, 0xed, 0xfe, 0x50, 0xe0, 0xf0, 0x91, 0x22, 0xda, 0x2e, 0xd5, 0x9e, 0x41,
   380  	0x15, 0x7e, 0xe6, 0xb1, 0xb4, 0x91, 0xbe, 0x64, 0x48, 0xf6, 0x64, 0x43, 0x76, 0xf7, 0x3a, 0xa9,
   381  	0x58, 0x2d, 0x67, 0x77, 0xcf, 0x33, 0x38, 0x0a, 0xd9, 0x7c, 0x03, 0x95, 0xf6, 0xc4, 0xf8, 0xe6,
   382  	0xe8, 0x7a, 0x2f, 0xb5, 0x90, 0xc2, 0xa4, 0x62, 0x75, 0xc2, 0x42, 0x30, 0x53, 0x68, 0x17, 0xc0,
   383  	0x8a, 0x00, 0x5f, 0x96, 0xb1, 0x9b, 0x61, 0x55, 0xa7, 0x08, 0x45, 0xb1, 0xcc, 0x6c, 0x07, 0xb5,
   384  	0x12, 0xd0, 0x5c, 0x78, 0x6b, 0x28, 0xe6, 0xd2, 0x7c, 0x81, 0x4e, 0x06, 0x4d, 0xad, 0xd6, 0x05,
   385  	0xf5, 0xaa, 0x14, 0x35, 0xf3, 0xda, 0xc6, 0x9c, 0x62, 0xd6, 0x41, 0xc1, 0x24, 0x30, 0xc7, 0xb3,
   386  	0x1b, 0xd7, 0xe7, 0x5e, 0xe2, 0x90, 0x05, 0x0b, 0x8c, 0x2d, 0x71, 0xf7, 0x58, 0xfc, 0xf5, 0x9c,
   387  	0x86, 0x50, 0xc6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xb9, 0x72, 0x28, 0x95, 0x03, 0x00,
   388  	0x00,
   389  }