github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/types/proto3/block.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: types/proto3/block.proto 3 4 package proto3 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 22 23 type PartSetHeader struct { 24 Total int32 `protobuf:"varint,1,opt,name=Total,proto3" json:"Total,omitempty"` 25 Hash []byte `protobuf:"bytes,2,opt,name=Hash,proto3" json:"Hash,omitempty"` 26 XXX_NoUnkeyedLiteral struct{} `json:"-"` 27 XXX_unrecognized []byte `json:"-"` 28 XXX_sizecache int32 `json:"-"` 29 } 30 31 func (m *PartSetHeader) Reset() { *m = PartSetHeader{} } 32 func (m *PartSetHeader) String() string { return proto.CompactTextString(m) } 33 func (*PartSetHeader) ProtoMessage() {} 34 func (*PartSetHeader) Descriptor() ([]byte, []int) { 35 return fileDescriptor_760f4d5ceb2a11f0, []int{0} 36 } 37 func (m *PartSetHeader) XXX_Unmarshal(b []byte) error { 38 return xxx_messageInfo_PartSetHeader.Unmarshal(m, b) 39 } 40 func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 41 return xxx_messageInfo_PartSetHeader.Marshal(b, m, deterministic) 42 } 43 func (m *PartSetHeader) XXX_Merge(src proto.Message) { 44 xxx_messageInfo_PartSetHeader.Merge(m, src) 45 } 46 func (m *PartSetHeader) XXX_Size() int { 47 return xxx_messageInfo_PartSetHeader.Size(m) 48 } 49 func (m *PartSetHeader) XXX_DiscardUnknown() { 50 xxx_messageInfo_PartSetHeader.DiscardUnknown(m) 51 } 52 53 var xxx_messageInfo_PartSetHeader proto.InternalMessageInfo 54 55 func (m *PartSetHeader) GetTotal() int32 { 56 if m != nil { 57 return m.Total 58 } 59 return 0 60 } 61 62 func (m *PartSetHeader) GetHash() []byte { 63 if m != nil { 64 return m.Hash 65 } 66 return nil 67 } 68 69 type BlockID struct { 70 Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` 71 PartsHeader *PartSetHeader `protobuf:"bytes,2,opt,name=PartsHeader,proto3" json:"PartsHeader,omitempty"` 72 XXX_NoUnkeyedLiteral struct{} `json:"-"` 73 XXX_unrecognized []byte `json:"-"` 74 XXX_sizecache int32 `json:"-"` 75 } 76 77 func (m *BlockID) Reset() { *m = BlockID{} } 78 func (m *BlockID) String() string { return proto.CompactTextString(m) } 79 func (*BlockID) ProtoMessage() {} 80 func (*BlockID) Descriptor() ([]byte, []int) { 81 return fileDescriptor_760f4d5ceb2a11f0, []int{1} 82 } 83 func (m *BlockID) XXX_Unmarshal(b []byte) error { 84 return xxx_messageInfo_BlockID.Unmarshal(m, b) 85 } 86 func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 return xxx_messageInfo_BlockID.Marshal(b, m, deterministic) 88 } 89 func (m *BlockID) XXX_Merge(src proto.Message) { 90 xxx_messageInfo_BlockID.Merge(m, src) 91 } 92 func (m *BlockID) XXX_Size() int { 93 return xxx_messageInfo_BlockID.Size(m) 94 } 95 func (m *BlockID) XXX_DiscardUnknown() { 96 xxx_messageInfo_BlockID.DiscardUnknown(m) 97 } 98 99 var xxx_messageInfo_BlockID proto.InternalMessageInfo 100 101 func (m *BlockID) GetHash() []byte { 102 if m != nil { 103 return m.Hash 104 } 105 return nil 106 } 107 108 func (m *BlockID) GetPartsHeader() *PartSetHeader { 109 if m != nil { 110 return m.PartsHeader 111 } 112 return nil 113 } 114 115 type Header struct { 116 // basic block info 117 Version *Version `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"` 118 ChainID string `protobuf:"bytes,2,opt,name=ChainID,proto3" json:"ChainID,omitempty"` 119 Height int64 `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"` 120 Time *Timestamp `protobuf:"bytes,4,opt,name=Time,proto3" json:"Time,omitempty"` 121 // prev block info 122 LastBlockID *BlockID `protobuf:"bytes,5,opt,name=LastBlockID,proto3" json:"LastBlockID,omitempty"` 123 // hashes of block data 124 LastCommitHash []byte `protobuf:"bytes,6,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"` 125 DataHash []byte `protobuf:"bytes,7,opt,name=DataHash,proto3" json:"DataHash,omitempty"` 126 // hashes from the app output from the prev block 127 ValidatorsHash []byte `protobuf:"bytes,8,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"` 128 NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=NextValidatorsHash,proto3" json:"NextValidatorsHash,omitempty"` 129 ConsensusHash []byte `protobuf:"bytes,10,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"` 130 AppHash []byte `protobuf:"bytes,11,opt,name=AppHash,proto3" json:"AppHash,omitempty"` 131 LastResultsHash []byte `protobuf:"bytes,12,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"` 132 // consensus info 133 EvidenceHash []byte `protobuf:"bytes,13,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"` 134 ProposerAddress []byte `protobuf:"bytes,14,opt,name=ProposerAddress,proto3" json:"ProposerAddress,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138 } 139 140 func (m *Header) Reset() { *m = Header{} } 141 func (m *Header) String() string { return proto.CompactTextString(m) } 142 func (*Header) ProtoMessage() {} 143 func (*Header) Descriptor() ([]byte, []int) { 144 return fileDescriptor_760f4d5ceb2a11f0, []int{2} 145 } 146 func (m *Header) XXX_Unmarshal(b []byte) error { 147 return xxx_messageInfo_Header.Unmarshal(m, b) 148 } 149 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 150 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 151 } 152 func (m *Header) XXX_Merge(src proto.Message) { 153 xxx_messageInfo_Header.Merge(m, src) 154 } 155 func (m *Header) XXX_Size() int { 156 return xxx_messageInfo_Header.Size(m) 157 } 158 func (m *Header) XXX_DiscardUnknown() { 159 xxx_messageInfo_Header.DiscardUnknown(m) 160 } 161 162 var xxx_messageInfo_Header proto.InternalMessageInfo 163 164 func (m *Header) GetVersion() *Version { 165 if m != nil { 166 return m.Version 167 } 168 return nil 169 } 170 171 func (m *Header) GetChainID() string { 172 if m != nil { 173 return m.ChainID 174 } 175 return "" 176 } 177 178 func (m *Header) GetHeight() int64 { 179 if m != nil { 180 return m.Height 181 } 182 return 0 183 } 184 185 func (m *Header) GetTime() *Timestamp { 186 if m != nil { 187 return m.Time 188 } 189 return nil 190 } 191 192 func (m *Header) GetLastBlockID() *BlockID { 193 if m != nil { 194 return m.LastBlockID 195 } 196 return nil 197 } 198 199 func (m *Header) GetLastCommitHash() []byte { 200 if m != nil { 201 return m.LastCommitHash 202 } 203 return nil 204 } 205 206 func (m *Header) GetDataHash() []byte { 207 if m != nil { 208 return m.DataHash 209 } 210 return nil 211 } 212 213 func (m *Header) GetValidatorsHash() []byte { 214 if m != nil { 215 return m.ValidatorsHash 216 } 217 return nil 218 } 219 220 func (m *Header) GetNextValidatorsHash() []byte { 221 if m != nil { 222 return m.NextValidatorsHash 223 } 224 return nil 225 } 226 227 func (m *Header) GetConsensusHash() []byte { 228 if m != nil { 229 return m.ConsensusHash 230 } 231 return nil 232 } 233 234 func (m *Header) GetAppHash() []byte { 235 if m != nil { 236 return m.AppHash 237 } 238 return nil 239 } 240 241 func (m *Header) GetLastResultsHash() []byte { 242 if m != nil { 243 return m.LastResultsHash 244 } 245 return nil 246 } 247 248 func (m *Header) GetEvidenceHash() []byte { 249 if m != nil { 250 return m.EvidenceHash 251 } 252 return nil 253 } 254 255 func (m *Header) GetProposerAddress() []byte { 256 if m != nil { 257 return m.ProposerAddress 258 } 259 return nil 260 } 261 262 type Version struct { 263 Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"` 264 App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"` 265 XXX_NoUnkeyedLiteral struct{} `json:"-"` 266 XXX_unrecognized []byte `json:"-"` 267 XXX_sizecache int32 `json:"-"` 268 } 269 270 func (m *Version) Reset() { *m = Version{} } 271 func (m *Version) String() string { return proto.CompactTextString(m) } 272 func (*Version) ProtoMessage() {} 273 func (*Version) Descriptor() ([]byte, []int) { 274 return fileDescriptor_760f4d5ceb2a11f0, []int{3} 275 } 276 func (m *Version) XXX_Unmarshal(b []byte) error { 277 return xxx_messageInfo_Version.Unmarshal(m, b) 278 } 279 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 280 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 281 } 282 func (m *Version) XXX_Merge(src proto.Message) { 283 xxx_messageInfo_Version.Merge(m, src) 284 } 285 func (m *Version) XXX_Size() int { 286 return xxx_messageInfo_Version.Size(m) 287 } 288 func (m *Version) XXX_DiscardUnknown() { 289 xxx_messageInfo_Version.DiscardUnknown(m) 290 } 291 292 var xxx_messageInfo_Version proto.InternalMessageInfo 293 294 func (m *Version) GetBlock() uint64 { 295 if m != nil { 296 return m.Block 297 } 298 return 0 299 } 300 301 func (m *Version) GetApp() uint64 { 302 if m != nil { 303 return m.App 304 } 305 return 0 306 } 307 308 // Timestamp wraps how amino encodes time. 309 // This is the protobuf well-known type protobuf/timestamp.proto 310 // See: 311 // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 312 // NOTE/XXX: nanos do not get skipped if they are zero in amino. 313 type Timestamp struct { 314 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` 315 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` 316 XXX_NoUnkeyedLiteral struct{} `json:"-"` 317 XXX_unrecognized []byte `json:"-"` 318 XXX_sizecache int32 `json:"-"` 319 } 320 321 func (m *Timestamp) Reset() { *m = Timestamp{} } 322 func (m *Timestamp) String() string { return proto.CompactTextString(m) } 323 func (*Timestamp) ProtoMessage() {} 324 func (*Timestamp) Descriptor() ([]byte, []int) { 325 return fileDescriptor_760f4d5ceb2a11f0, []int{4} 326 } 327 func (m *Timestamp) XXX_Unmarshal(b []byte) error { 328 return xxx_messageInfo_Timestamp.Unmarshal(m, b) 329 } 330 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 331 return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) 332 } 333 func (m *Timestamp) XXX_Merge(src proto.Message) { 334 xxx_messageInfo_Timestamp.Merge(m, src) 335 } 336 func (m *Timestamp) XXX_Size() int { 337 return xxx_messageInfo_Timestamp.Size(m) 338 } 339 func (m *Timestamp) XXX_DiscardUnknown() { 340 xxx_messageInfo_Timestamp.DiscardUnknown(m) 341 } 342 343 var xxx_messageInfo_Timestamp proto.InternalMessageInfo 344 345 func (m *Timestamp) GetSeconds() int64 { 346 if m != nil { 347 return m.Seconds 348 } 349 return 0 350 } 351 352 func (m *Timestamp) GetNanos() int32 { 353 if m != nil { 354 return m.Nanos 355 } 356 return 0 357 } 358 359 func init() { 360 proto.RegisterType((*PartSetHeader)(nil), "tendermint.types.proto3.PartSetHeader") 361 proto.RegisterType((*BlockID)(nil), "tendermint.types.proto3.BlockID") 362 proto.RegisterType((*Header)(nil), "tendermint.types.proto3.Header") 363 proto.RegisterType((*Version)(nil), "tendermint.types.proto3.Version") 364 proto.RegisterType((*Timestamp)(nil), "tendermint.types.proto3.Timestamp") 365 } 366 367 func init() { proto.RegisterFile("types/proto3/block.proto", fileDescriptor_760f4d5ceb2a11f0) } 368 369 var fileDescriptor_760f4d5ceb2a11f0 = []byte{ 370 // 468 bytes of a gzipped FileDescriptorProto 371 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xdf, 0x8b, 0x13, 0x31, 372 0x10, 0xc7, 0x59, 0xbb, 0x6d, 0xaf, 0xb3, 0xed, 0x29, 0x83, 0xe8, 0xe2, 0x53, 0x59, 0xe4, 0xe8, 373 0x8b, 0x5b, 0xbc, 0x03, 0x41, 0x7d, 0xea, 0x0f, 0xa1, 0x07, 0x22, 0x47, 0x3c, 0xee, 0xc1, 0xb7, 374 0xb4, 0x1b, 0xda, 0x60, 0x37, 0x59, 0x92, 0x54, 0xf4, 0x1f, 0xf4, 0xef, 0x92, 0x4c, 0xb6, 0xbd, 375 0x6e, 0xb1, 0xdc, 0x53, 0xf3, 0x9d, 0xf9, 0xcc, 0x37, 0xb3, 0x93, 0x29, 0xa4, 0xee, 0x4f, 0x25, 376 0xec, 0xb8, 0x32, 0xda, 0xe9, 0x9b, 0xf1, 0x72, 0xab, 0x57, 0x3f, 0x73, 0x12, 0xf8, 0xda, 0x09, 377 0x55, 0x08, 0x53, 0x4a, 0xe5, 0x72, 0x82, 0x42, 0xfc, 0x26, 0xfb, 0x08, 0x83, 0x3b, 0x6e, 0xdc, 378 0x77, 0xe1, 0x16, 0x82, 0x17, 0xc2, 0xe0, 0x4b, 0x68, 0xdf, 0x6b, 0xc7, 0xb7, 0x69, 0x34, 0x8c, 379 0x46, 0x6d, 0x16, 0x04, 0x22, 0xc4, 0x0b, 0x6e, 0x37, 0xe9, 0xb3, 0x61, 0x34, 0xea, 0x33, 0x3a, 380 0x67, 0x6b, 0xe8, 0x4e, 0xfd, 0x15, 0xb7, 0xf3, 0x43, 0x3a, 0x7a, 0x4c, 0xe3, 0x02, 0x12, 0xef, 381 0x6c, 0x83, 0x2f, 0x55, 0x26, 0xd7, 0x57, 0xf9, 0x99, 0x46, 0xf2, 0x46, 0x17, 0xec, 0xb8, 0x34, 382 0xfb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