github.com/igggame/nebulas-go@v2.1.0+incompatible/sync/pb/sync.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: sync.proto 3 4 /* 5 Package syncpb is a generated protocol buffer package. 6 7 It is generated from these files: 8 sync.proto 9 10 It has these top-level messages: 11 Sync 12 ChunkHeader 13 ChunkHeaders 14 ChunkData 15 */ 16 package syncpb 17 18 import proto "github.com/gogo/protobuf/proto" 19 import fmt "fmt" 20 import math "math" 21 import corepb "github.com/nebulasio/go-nebulas/core/pb" 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 33 34 type Sync struct { 35 TailBlockHash []byte `protobuf:"bytes,1,opt,name=tail_block_hash,json=tailBlockHash,proto3" json:"tail_block_hash,omitempty"` 36 } 37 38 func (m *Sync) Reset() { *m = Sync{} } 39 func (m *Sync) String() string { return proto.CompactTextString(m) } 40 func (*Sync) ProtoMessage() {} 41 func (*Sync) Descriptor() ([]byte, []int) { return fileDescriptorSync, []int{0} } 42 43 func (m *Sync) GetTailBlockHash() []byte { 44 if m != nil { 45 return m.TailBlockHash 46 } 47 return nil 48 } 49 50 type ChunkHeader struct { 51 Headers [][]byte `protobuf:"bytes,1,rep,name=headers" json:"headers,omitempty"` 52 Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` 53 } 54 55 func (m *ChunkHeader) Reset() { *m = ChunkHeader{} } 56 func (m *ChunkHeader) String() string { return proto.CompactTextString(m) } 57 func (*ChunkHeader) ProtoMessage() {} 58 func (*ChunkHeader) Descriptor() ([]byte, []int) { return fileDescriptorSync, []int{1} } 59 60 func (m *ChunkHeader) GetHeaders() [][]byte { 61 if m != nil { 62 return m.Headers 63 } 64 return nil 65 } 66 67 func (m *ChunkHeader) GetRoot() []byte { 68 if m != nil { 69 return m.Root 70 } 71 return nil 72 } 73 74 type ChunkHeaders struct { 75 ChunkHeaders []*ChunkHeader `protobuf:"bytes,1,rep,name=chunkHeaders" json:"chunkHeaders,omitempty"` 76 Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` 77 } 78 79 func (m *ChunkHeaders) Reset() { *m = ChunkHeaders{} } 80 func (m *ChunkHeaders) String() string { return proto.CompactTextString(m) } 81 func (*ChunkHeaders) ProtoMessage() {} 82 func (*ChunkHeaders) Descriptor() ([]byte, []int) { return fileDescriptorSync, []int{2} } 83 84 func (m *ChunkHeaders) GetChunkHeaders() []*ChunkHeader { 85 if m != nil { 86 return m.ChunkHeaders 87 } 88 return nil 89 } 90 91 func (m *ChunkHeaders) GetRoot() []byte { 92 if m != nil { 93 return m.Root 94 } 95 return nil 96 } 97 98 type ChunkData struct { 99 Blocks []*corepb.Block `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"` 100 Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` 101 } 102 103 func (m *ChunkData) Reset() { *m = ChunkData{} } 104 func (m *ChunkData) String() string { return proto.CompactTextString(m) } 105 func (*ChunkData) ProtoMessage() {} 106 func (*ChunkData) Descriptor() ([]byte, []int) { return fileDescriptorSync, []int{3} } 107 108 func (m *ChunkData) GetBlocks() []*corepb.Block { 109 if m != nil { 110 return m.Blocks 111 } 112 return nil 113 } 114 115 func (m *ChunkData) GetRoot() []byte { 116 if m != nil { 117 return m.Root 118 } 119 return nil 120 } 121 122 func init() { 123 proto.RegisterType((*Sync)(nil), "syncpb.Sync") 124 proto.RegisterType((*ChunkHeader)(nil), "syncpb.ChunkHeader") 125 proto.RegisterType((*ChunkHeaders)(nil), "syncpb.ChunkHeaders") 126 proto.RegisterType((*ChunkData)(nil), "syncpb.ChunkData") 127 } 128 129 func init() { proto.RegisterFile("sync.proto", fileDescriptorSync) } 130 131 var fileDescriptorSync = []byte{ 132 // 236 bytes of a gzipped FileDescriptorProto 133 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4b, 0x03, 0x31, 134 0x10, 0x85, 0x59, 0x2d, 0x2b, 0x4e, 0xb7, 0x08, 0xf1, 0xb2, 0x78, 0x2a, 0x0b, 0x4a, 0x2f, 0x26, 135 0x60, 0x0f, 0x1e, 0xbc, 0xa9, 0x48, 0xcf, 0xeb, 0xd1, 0x43, 0x49, 0x62, 0x68, 0x96, 0xae, 0x99, 136 0x90, 0x64, 0x0f, 0xfd, 0xf7, 0x92, 0x69, 0x0b, 0x5b, 0xd8, 0xdb, 0x7b, 0x33, 0xf3, 0x3e, 0x78, 137 0x03, 0x10, 0x0f, 0x4e, 0x73, 0x1f, 0x30, 0x21, 0x2b, 0xb3, 0xf6, 0xea, 0x61, 0xbd, 0xeb, 0x92, 138 0x1d, 0x14, 0xd7, 0xf8, 0x27, 0x9c, 0x51, 0x43, 0x2f, 0x63, 0x87, 0x62, 0x87, 0xcf, 0x27, 0x23, 139 0x34, 0x06, 0x23, 0xbc, 0x12, 0xaa, 0x47, 0xbd, 0x3f, 0x86, 0x1b, 0x0e, 0xb3, 0xef, 0x83, 0xd3, 140 0xec, 0x09, 0xee, 0x92, 0xec, 0xfa, 0x2d, 0xed, 0xb6, 0x56, 0x46, 0x5b, 0x17, 0xcb, 0x62, 0x55, 141 0xb5, 0x8b, 0x3c, 0x7e, 0xcf, 0xd3, 0x8d, 0x8c, 0xb6, 0x79, 0x83, 0xf9, 0x87, 0x1d, 0xdc, 0x7e, 142 0x63, 0xe4, 0xaf, 0x09, 0xac, 0x86, 0x1b, 0x4b, 0x2a, 0xd6, 0xc5, 0xf2, 0x7a, 0x55, 0xb5, 0x67, 143 0xcb, 0x18, 0xcc, 0x02, 0x62, 0xaa, 0xaf, 0x88, 0x42, 0xba, 0xf9, 0x81, 0x6a, 0x14, 0x8e, 0xec, 144 0x15, 0x2a, 0x3d, 0xf2, 0x84, 0x98, 0xbf, 0xdc, 0xf3, 0x63, 0x21, 0x3e, 0xba, 0x6d, 0x2f, 0x0e, 145 0x27, 0xe1, 0x5f, 0x70, 0x4b, 0x81, 0x4f, 0x99, 0x24, 0x7b, 0x84, 0x92, 0x9a, 0x9c, 0x99, 0x0b, 146 0x9e, 0xcb, 0x7b, 0xc5, 0xa9, 0x49, 0x7b, 0x5a, 0x4e, 0x71, 0x54, 0x49, 0x8f, 0x59, 0xff, 0x07, 147 0x00, 0x00, 0xff, 0xff, 0x73, 0x84, 0xc9, 0xac, 0x63, 0x01, 0x00, 0x00, 148 }