github.com/pokt-network/tendermint@v0.32.11-0.20230426215212-59310158d3e9/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 NumTxs int64 `protobuf:"varint,5,opt,name=NumTxs,proto3" json:"NumTxs,omitempty"` 122 TotalTxs int64 `protobuf:"varint,6,opt,name=TotalTxs,proto3" json:"TotalTxs,omitempty"` 123 // prev block info 124 LastBlockID *BlockID `protobuf:"bytes,7,opt,name=LastBlockID,proto3" json:"LastBlockID,omitempty"` 125 // hashes of block data 126 LastCommitHash []byte `protobuf:"bytes,8,opt,name=LastCommitHash,proto3" json:"LastCommitHash,omitempty"` 127 DataHash []byte `protobuf:"bytes,9,opt,name=DataHash,proto3" json:"DataHash,omitempty"` 128 // hashes from the app output from the prev block 129 ValidatorsHash []byte `protobuf:"bytes,10,opt,name=ValidatorsHash,proto3" json:"ValidatorsHash,omitempty"` 130 NextValidatorsHash []byte `protobuf:"bytes,11,opt,name=NextValidatorsHash,proto3" json:"NextValidatorsHash,omitempty"` 131 ConsensusHash []byte `protobuf:"bytes,12,opt,name=ConsensusHash,proto3" json:"ConsensusHash,omitempty"` 132 AppHash []byte `protobuf:"bytes,13,opt,name=AppHash,proto3" json:"AppHash,omitempty"` 133 LastResultsHash []byte `protobuf:"bytes,14,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"` 134 // consensus info 135 EvidenceHash []byte `protobuf:"bytes,15,opt,name=EvidenceHash,proto3" json:"EvidenceHash,omitempty"` 136 ProposerAddress []byte `protobuf:"bytes,16,opt,name=ProposerAddress,proto3" json:"ProposerAddress,omitempty"` 137 XXX_NoUnkeyedLiteral struct{} `json:"-"` 138 XXX_unrecognized []byte `json:"-"` 139 XXX_sizecache int32 `json:"-"` 140 } 141 142 func (m *Header) Reset() { *m = Header{} } 143 func (m *Header) String() string { return proto.CompactTextString(m) } 144 func (*Header) ProtoMessage() {} 145 func (*Header) Descriptor() ([]byte, []int) { 146 return fileDescriptor_760f4d5ceb2a11f0, []int{2} 147 } 148 func (m *Header) XXX_Unmarshal(b []byte) error { 149 return xxx_messageInfo_Header.Unmarshal(m, b) 150 } 151 func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 152 return xxx_messageInfo_Header.Marshal(b, m, deterministic) 153 } 154 func (m *Header) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_Header.Merge(m, src) 156 } 157 func (m *Header) XXX_Size() int { 158 return xxx_messageInfo_Header.Size(m) 159 } 160 func (m *Header) XXX_DiscardUnknown() { 161 xxx_messageInfo_Header.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_Header proto.InternalMessageInfo 165 166 func (m *Header) GetVersion() *Version { 167 if m != nil { 168 return m.Version 169 } 170 return nil 171 } 172 173 func (m *Header) GetChainID() string { 174 if m != nil { 175 return m.ChainID 176 } 177 return "" 178 } 179 180 func (m *Header) GetHeight() int64 { 181 if m != nil { 182 return m.Height 183 } 184 return 0 185 } 186 187 func (m *Header) GetTime() *Timestamp { 188 if m != nil { 189 return m.Time 190 } 191 return nil 192 } 193 194 func (m *Header) GetNumTxs() int64 { 195 if m != nil { 196 return m.NumTxs 197 } 198 return 0 199 } 200 201 func (m *Header) GetTotalTxs() int64 { 202 if m != nil { 203 return m.TotalTxs 204 } 205 return 0 206 } 207 208 func (m *Header) GetLastBlockID() *BlockID { 209 if m != nil { 210 return m.LastBlockID 211 } 212 return nil 213 } 214 215 func (m *Header) GetLastCommitHash() []byte { 216 if m != nil { 217 return m.LastCommitHash 218 } 219 return nil 220 } 221 222 func (m *Header) GetDataHash() []byte { 223 if m != nil { 224 return m.DataHash 225 } 226 return nil 227 } 228 229 func (m *Header) GetValidatorsHash() []byte { 230 if m != nil { 231 return m.ValidatorsHash 232 } 233 return nil 234 } 235 236 func (m *Header) GetNextValidatorsHash() []byte { 237 if m != nil { 238 return m.NextValidatorsHash 239 } 240 return nil 241 } 242 243 func (m *Header) GetConsensusHash() []byte { 244 if m != nil { 245 return m.ConsensusHash 246 } 247 return nil 248 } 249 250 func (m *Header) GetAppHash() []byte { 251 if m != nil { 252 return m.AppHash 253 } 254 return nil 255 } 256 257 func (m *Header) GetLastResultsHash() []byte { 258 if m != nil { 259 return m.LastResultsHash 260 } 261 return nil 262 } 263 264 func (m *Header) GetEvidenceHash() []byte { 265 if m != nil { 266 return m.EvidenceHash 267 } 268 return nil 269 } 270 271 func (m *Header) GetProposerAddress() []byte { 272 if m != nil { 273 return m.ProposerAddress 274 } 275 return nil 276 } 277 278 type Version struct { 279 Block uint64 `protobuf:"varint,1,opt,name=Block,proto3" json:"Block,omitempty"` 280 App uint64 `protobuf:"varint,2,opt,name=App,proto3" json:"App,omitempty"` 281 XXX_NoUnkeyedLiteral struct{} `json:"-"` 282 XXX_unrecognized []byte `json:"-"` 283 XXX_sizecache int32 `json:"-"` 284 } 285 286 func (m *Version) Reset() { *m = Version{} } 287 func (m *Version) String() string { return proto.CompactTextString(m) } 288 func (*Version) ProtoMessage() {} 289 func (*Version) Descriptor() ([]byte, []int) { 290 return fileDescriptor_760f4d5ceb2a11f0, []int{3} 291 } 292 func (m *Version) XXX_Unmarshal(b []byte) error { 293 return xxx_messageInfo_Version.Unmarshal(m, b) 294 } 295 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 296 return xxx_messageInfo_Version.Marshal(b, m, deterministic) 297 } 298 func (m *Version) XXX_Merge(src proto.Message) { 299 xxx_messageInfo_Version.Merge(m, src) 300 } 301 func (m *Version) XXX_Size() int { 302 return xxx_messageInfo_Version.Size(m) 303 } 304 func (m *Version) XXX_DiscardUnknown() { 305 xxx_messageInfo_Version.DiscardUnknown(m) 306 } 307 308 var xxx_messageInfo_Version proto.InternalMessageInfo 309 310 func (m *Version) GetBlock() uint64 { 311 if m != nil { 312 return m.Block 313 } 314 return 0 315 } 316 317 func (m *Version) GetApp() uint64 { 318 if m != nil { 319 return m.App 320 } 321 return 0 322 } 323 324 // Timestamp wraps how amino encodes time. 325 // This is the protobuf well-known type protobuf/timestamp.proto 326 // See: 327 // https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 328 // NOTE/XXX: nanos do not get skipped if they are zero in amino. 329 type Timestamp struct { 330 Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` 331 Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` 332 XXX_NoUnkeyedLiteral struct{} `json:"-"` 333 XXX_unrecognized []byte `json:"-"` 334 XXX_sizecache int32 `json:"-"` 335 } 336 337 func (m *Timestamp) Reset() { *m = Timestamp{} } 338 func (m *Timestamp) String() string { return proto.CompactTextString(m) } 339 func (*Timestamp) ProtoMessage() {} 340 func (*Timestamp) Descriptor() ([]byte, []int) { 341 return fileDescriptor_760f4d5ceb2a11f0, []int{4} 342 } 343 func (m *Timestamp) XXX_Unmarshal(b []byte) error { 344 return xxx_messageInfo_Timestamp.Unmarshal(m, b) 345 } 346 func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 347 return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic) 348 } 349 func (m *Timestamp) XXX_Merge(src proto.Message) { 350 xxx_messageInfo_Timestamp.Merge(m, src) 351 } 352 func (m *Timestamp) XXX_Size() int { 353 return xxx_messageInfo_Timestamp.Size(m) 354 } 355 func (m *Timestamp) XXX_DiscardUnknown() { 356 xxx_messageInfo_Timestamp.DiscardUnknown(m) 357 } 358 359 var xxx_messageInfo_Timestamp proto.InternalMessageInfo 360 361 func (m *Timestamp) GetSeconds() int64 { 362 if m != nil { 363 return m.Seconds 364 } 365 return 0 366 } 367 368 func (m *Timestamp) GetNanos() int32 { 369 if m != nil { 370 return m.Nanos 371 } 372 return 0 373 } 374 375 func init() { 376 proto.RegisterType((*PartSetHeader)(nil), "tendermint.types.proto3.PartSetHeader") 377 proto.RegisterType((*BlockID)(nil), "tendermint.types.proto3.BlockID") 378 proto.RegisterType((*Header)(nil), "tendermint.types.proto3.Header") 379 proto.RegisterType((*Version)(nil), "tendermint.types.proto3.Version") 380 proto.RegisterType((*Timestamp)(nil), "tendermint.types.proto3.Timestamp") 381 } 382 383 func init() { proto.RegisterFile("types/proto3/block.proto", fileDescriptor_760f4d5ceb2a11f0) } 384 385 var fileDescriptor_760f4d5ceb2a11f0 = []byte{ 386 // 489 bytes of a gzipped FileDescriptorProto 387 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x6b, 0x1b, 0x3d, 388 0x10, 0xc6, 0xd9, 0xd7, 0x6b, 0x3b, 0x9e, 0xb5, 0x93, 0x20, 0x5e, 0x5a, 0xd1, 0x93, 0x59, 0x4a, 389 0xf0, 0xa5, 0x6b, 0x9a, 0x40, 0xa1, 0xed, 0xc9, 0x7f, 0x0a, 0x0e, 0x94, 0x10, 0x54, 0x93, 0x43, 390 0x6f, 0xb2, 0x57, 0xd8, 0xa2, 0x5e, 0x69, 0x91, 0xe4, 0x92, 0x7e, 0xf5, 0x9e, 0x8a, 0x46, 0xeb, 391 0x8d, 0xd7, 0xd4, 0xf4, 0xb4, 0x7a, 0x66, 0x7e, 0xf3, 0x68, 0x24, 0xcd, 0x02, 0x75, 0xbf, 0x4a, 392 0x61, 0xc7, 0xa5, 0xd1, 0x4e, 0xdf, 0x8d, 0x57, 0x3b, 0xbd, 0xfe, 0x91, 0xa1, 0x20, 0xaf, 0x9d, 393 0x50, 0xb9, 0x30, 0x85, 0x54, 0x2e, 0x43, 0x28, 0xc4, 0xef, 0xd2, 0x8f, 0x30, 0x78, 0xe4, 0xc6, 394 0x7d, 0x13, 0x6e, 0x21, 0x78, 0x2e, 0x0c, 0xf9, 0x1f, 0xda, 0x4b, 0xed, 0xf8, 0x8e, 0x46, 0xc3, 395 0x68, 0xd4, 0x66, 0x41, 0x10, 0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