github.com/pokt-network/tendermint@v0.32.11-0.20230426215212-59310158d3e9/proto/statesync/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: proto/statesync/types.proto 3 4 package statesync 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 Message struct { 24 // Types that are valid to be assigned to Sum: 25 // *Message_SnapshotsRequest 26 // *Message_SnapshotsResponse 27 // *Message_ChunkRequest 28 // *Message_ChunkResponse 29 Sum isMessage_Sum `protobuf_oneof:"sum"` 30 XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 XXX_unrecognized []byte `json:"-"` 32 XXX_sizecache int32 `json:"-"` 33 } 34 35 func (m *Message) Reset() { *m = Message{} } 36 func (m *Message) String() string { return proto.CompactTextString(m) } 37 func (*Message) ProtoMessage() {} 38 func (*Message) Descriptor() ([]byte, []int) { 39 return fileDescriptor_bef273312884335b, []int{0} 40 } 41 func (m *Message) XXX_Unmarshal(b []byte) error { 42 return xxx_messageInfo_Message.Unmarshal(m, b) 43 } 44 func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 return xxx_messageInfo_Message.Marshal(b, m, deterministic) 46 } 47 func (m *Message) XXX_Merge(src proto.Message) { 48 xxx_messageInfo_Message.Merge(m, src) 49 } 50 func (m *Message) XXX_Size() int { 51 return xxx_messageInfo_Message.Size(m) 52 } 53 func (m *Message) XXX_DiscardUnknown() { 54 xxx_messageInfo_Message.DiscardUnknown(m) 55 } 56 57 var xxx_messageInfo_Message proto.InternalMessageInfo 58 59 type isMessage_Sum interface { 60 isMessage_Sum() 61 } 62 63 type Message_SnapshotsRequest struct { 64 SnapshotsRequest *SnapshotsRequest `protobuf:"bytes,1,opt,name=snapshots_request,json=snapshotsRequest,proto3,oneof" json:"snapshots_request,omitempty"` 65 } 66 type Message_SnapshotsResponse struct { 67 SnapshotsResponse *SnapshotsResponse `protobuf:"bytes,2,opt,name=snapshots_response,json=snapshotsResponse,proto3,oneof" json:"snapshots_response,omitempty"` 68 } 69 type Message_ChunkRequest struct { 70 ChunkRequest *ChunkRequest `protobuf:"bytes,3,opt,name=chunk_request,json=chunkRequest,proto3,oneof" json:"chunk_request,omitempty"` 71 } 72 type Message_ChunkResponse struct { 73 ChunkResponse *ChunkResponse `protobuf:"bytes,4,opt,name=chunk_response,json=chunkResponse,proto3,oneof" json:"chunk_response,omitempty"` 74 } 75 76 func (*Message_SnapshotsRequest) isMessage_Sum() {} 77 func (*Message_SnapshotsResponse) isMessage_Sum() {} 78 func (*Message_ChunkRequest) isMessage_Sum() {} 79 func (*Message_ChunkResponse) isMessage_Sum() {} 80 81 func (m *Message) GetSum() isMessage_Sum { 82 if m != nil { 83 return m.Sum 84 } 85 return nil 86 } 87 88 func (m *Message) GetSnapshotsRequest() *SnapshotsRequest { 89 if x, ok := m.GetSum().(*Message_SnapshotsRequest); ok { 90 return x.SnapshotsRequest 91 } 92 return nil 93 } 94 95 func (m *Message) GetSnapshotsResponse() *SnapshotsResponse { 96 if x, ok := m.GetSum().(*Message_SnapshotsResponse); ok { 97 return x.SnapshotsResponse 98 } 99 return nil 100 } 101 102 func (m *Message) GetChunkRequest() *ChunkRequest { 103 if x, ok := m.GetSum().(*Message_ChunkRequest); ok { 104 return x.ChunkRequest 105 } 106 return nil 107 } 108 109 func (m *Message) GetChunkResponse() *ChunkResponse { 110 if x, ok := m.GetSum().(*Message_ChunkResponse); ok { 111 return x.ChunkResponse 112 } 113 return nil 114 } 115 116 // XXX_OneofWrappers is for the internal use of the proto package. 117 func (*Message) XXX_OneofWrappers() []interface{} { 118 return []interface{}{ 119 (*Message_SnapshotsRequest)(nil), 120 (*Message_SnapshotsResponse)(nil), 121 (*Message_ChunkRequest)(nil), 122 (*Message_ChunkResponse)(nil), 123 } 124 } 125 126 type SnapshotsRequest struct { 127 XXX_NoUnkeyedLiteral struct{} `json:"-"` 128 XXX_unrecognized []byte `json:"-"` 129 XXX_sizecache int32 `json:"-"` 130 } 131 132 func (m *SnapshotsRequest) Reset() { *m = SnapshotsRequest{} } 133 func (m *SnapshotsRequest) String() string { return proto.CompactTextString(m) } 134 func (*SnapshotsRequest) ProtoMessage() {} 135 func (*SnapshotsRequest) Descriptor() ([]byte, []int) { 136 return fileDescriptor_bef273312884335b, []int{1} 137 } 138 func (m *SnapshotsRequest) XXX_Unmarshal(b []byte) error { 139 return xxx_messageInfo_SnapshotsRequest.Unmarshal(m, b) 140 } 141 func (m *SnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 142 return xxx_messageInfo_SnapshotsRequest.Marshal(b, m, deterministic) 143 } 144 func (m *SnapshotsRequest) XXX_Merge(src proto.Message) { 145 xxx_messageInfo_SnapshotsRequest.Merge(m, src) 146 } 147 func (m *SnapshotsRequest) XXX_Size() int { 148 return xxx_messageInfo_SnapshotsRequest.Size(m) 149 } 150 func (m *SnapshotsRequest) XXX_DiscardUnknown() { 151 xxx_messageInfo_SnapshotsRequest.DiscardUnknown(m) 152 } 153 154 var xxx_messageInfo_SnapshotsRequest proto.InternalMessageInfo 155 156 type SnapshotsResponse struct { 157 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 158 Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"` 159 Chunks uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"` 160 Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` 161 Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` 162 XXX_NoUnkeyedLiteral struct{} `json:"-"` 163 XXX_unrecognized []byte `json:"-"` 164 XXX_sizecache int32 `json:"-"` 165 } 166 167 func (m *SnapshotsResponse) Reset() { *m = SnapshotsResponse{} } 168 func (m *SnapshotsResponse) String() string { return proto.CompactTextString(m) } 169 func (*SnapshotsResponse) ProtoMessage() {} 170 func (*SnapshotsResponse) Descriptor() ([]byte, []int) { 171 return fileDescriptor_bef273312884335b, []int{2} 172 } 173 func (m *SnapshotsResponse) XXX_Unmarshal(b []byte) error { 174 return xxx_messageInfo_SnapshotsResponse.Unmarshal(m, b) 175 } 176 func (m *SnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 177 return xxx_messageInfo_SnapshotsResponse.Marshal(b, m, deterministic) 178 } 179 func (m *SnapshotsResponse) XXX_Merge(src proto.Message) { 180 xxx_messageInfo_SnapshotsResponse.Merge(m, src) 181 } 182 func (m *SnapshotsResponse) XXX_Size() int { 183 return xxx_messageInfo_SnapshotsResponse.Size(m) 184 } 185 func (m *SnapshotsResponse) XXX_DiscardUnknown() { 186 xxx_messageInfo_SnapshotsResponse.DiscardUnknown(m) 187 } 188 189 var xxx_messageInfo_SnapshotsResponse proto.InternalMessageInfo 190 191 func (m *SnapshotsResponse) GetHeight() uint64 { 192 if m != nil { 193 return m.Height 194 } 195 return 0 196 } 197 198 func (m *SnapshotsResponse) GetFormat() uint32 { 199 if m != nil { 200 return m.Format 201 } 202 return 0 203 } 204 205 func (m *SnapshotsResponse) GetChunks() uint32 { 206 if m != nil { 207 return m.Chunks 208 } 209 return 0 210 } 211 212 func (m *SnapshotsResponse) GetHash() []byte { 213 if m != nil { 214 return m.Hash 215 } 216 return nil 217 } 218 219 func (m *SnapshotsResponse) GetMetadata() []byte { 220 if m != nil { 221 return m.Metadata 222 } 223 return nil 224 } 225 226 type ChunkRequest struct { 227 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 228 Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"` 229 Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` 230 XXX_NoUnkeyedLiteral struct{} `json:"-"` 231 XXX_unrecognized []byte `json:"-"` 232 XXX_sizecache int32 `json:"-"` 233 } 234 235 func (m *ChunkRequest) Reset() { *m = ChunkRequest{} } 236 func (m *ChunkRequest) String() string { return proto.CompactTextString(m) } 237 func (*ChunkRequest) ProtoMessage() {} 238 func (*ChunkRequest) Descriptor() ([]byte, []int) { 239 return fileDescriptor_bef273312884335b, []int{3} 240 } 241 func (m *ChunkRequest) XXX_Unmarshal(b []byte) error { 242 return xxx_messageInfo_ChunkRequest.Unmarshal(m, b) 243 } 244 func (m *ChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 245 return xxx_messageInfo_ChunkRequest.Marshal(b, m, deterministic) 246 } 247 func (m *ChunkRequest) XXX_Merge(src proto.Message) { 248 xxx_messageInfo_ChunkRequest.Merge(m, src) 249 } 250 func (m *ChunkRequest) XXX_Size() int { 251 return xxx_messageInfo_ChunkRequest.Size(m) 252 } 253 func (m *ChunkRequest) XXX_DiscardUnknown() { 254 xxx_messageInfo_ChunkRequest.DiscardUnknown(m) 255 } 256 257 var xxx_messageInfo_ChunkRequest proto.InternalMessageInfo 258 259 func (m *ChunkRequest) GetHeight() uint64 { 260 if m != nil { 261 return m.Height 262 } 263 return 0 264 } 265 266 func (m *ChunkRequest) GetFormat() uint32 { 267 if m != nil { 268 return m.Format 269 } 270 return 0 271 } 272 273 func (m *ChunkRequest) GetIndex() uint32 { 274 if m != nil { 275 return m.Index 276 } 277 return 0 278 } 279 280 type ChunkResponse struct { 281 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 282 Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"` 283 Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` 284 Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"` 285 Missing bool `protobuf:"varint,5,opt,name=missing,proto3" json:"missing,omitempty"` 286 XXX_NoUnkeyedLiteral struct{} `json:"-"` 287 XXX_unrecognized []byte `json:"-"` 288 XXX_sizecache int32 `json:"-"` 289 } 290 291 func (m *ChunkResponse) Reset() { *m = ChunkResponse{} } 292 func (m *ChunkResponse) String() string { return proto.CompactTextString(m) } 293 func (*ChunkResponse) ProtoMessage() {} 294 func (*ChunkResponse) Descriptor() ([]byte, []int) { 295 return fileDescriptor_bef273312884335b, []int{4} 296 } 297 func (m *ChunkResponse) XXX_Unmarshal(b []byte) error { 298 return xxx_messageInfo_ChunkResponse.Unmarshal(m, b) 299 } 300 func (m *ChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 301 return xxx_messageInfo_ChunkResponse.Marshal(b, m, deterministic) 302 } 303 func (m *ChunkResponse) XXX_Merge(src proto.Message) { 304 xxx_messageInfo_ChunkResponse.Merge(m, src) 305 } 306 func (m *ChunkResponse) XXX_Size() int { 307 return xxx_messageInfo_ChunkResponse.Size(m) 308 } 309 func (m *ChunkResponse) XXX_DiscardUnknown() { 310 xxx_messageInfo_ChunkResponse.DiscardUnknown(m) 311 } 312 313 var xxx_messageInfo_ChunkResponse proto.InternalMessageInfo 314 315 func (m *ChunkResponse) GetHeight() uint64 { 316 if m != nil { 317 return m.Height 318 } 319 return 0 320 } 321 322 func (m *ChunkResponse) GetFormat() uint32 { 323 if m != nil { 324 return m.Format 325 } 326 return 0 327 } 328 329 func (m *ChunkResponse) GetIndex() uint32 { 330 if m != nil { 331 return m.Index 332 } 333 return 0 334 } 335 336 func (m *ChunkResponse) GetChunk() []byte { 337 if m != nil { 338 return m.Chunk 339 } 340 return nil 341 } 342 343 func (m *ChunkResponse) GetMissing() bool { 344 if m != nil { 345 return m.Missing 346 } 347 return false 348 } 349 350 func init() { 351 proto.RegisterType((*Message)(nil), "tendermint.proto.statesync.Message") 352 proto.RegisterType((*SnapshotsRequest)(nil), "tendermint.proto.statesync.SnapshotsRequest") 353 proto.RegisterType((*SnapshotsResponse)(nil), "tendermint.proto.statesync.SnapshotsResponse") 354 proto.RegisterType((*ChunkRequest)(nil), "tendermint.proto.statesync.ChunkRequest") 355 proto.RegisterType((*ChunkResponse)(nil), "tendermint.proto.statesync.ChunkResponse") 356 } 357 358 func init() { proto.RegisterFile("proto/statesync/types.proto", fileDescriptor_bef273312884335b) } 359 360 var fileDescriptor_bef273312884335b = []byte{ 361 // 357 bytes of a gzipped FileDescriptorProto 362 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x4a, 0xc3, 0x40, 363 0x14, 0x85, 0x9b, 0xfe, 0x73, 0x6d, 0xa4, 0x1d, 0x44, 0x42, 0xdd, 0x48, 0x56, 0x15, 0x34, 0x95, 364 0xfa, 0x06, 0x75, 0xd3, 0x8d, 0x08, 0xa3, 0x2b, 0x05, 0x65, 0x9a, 0x8e, 0x49, 0x90, 0x4c, 0x62, 365 0xee, 0x04, 0xec, 0x03, 0xb8, 0xf2, 0x6d, 0x7d, 0x02, 0xc9, 0x4d, 0x9a, 0xc6, 0x88, 0x52, 0xc1, 366 0xdd, 0x9c, 0x43, 0xee, 0x97, 0x73, 0xee, 0x30, 0x70, 0x14, 0x27, 0x91, 0x8e, 0xa6, 0xa8, 0x85, 367 0x96, 0xb8, 0x56, 0xee, 0x54, 0xaf, 0x63, 0x89, 0x0e, 0xb9, 0x6c, 0xac, 0xa5, 0x5a, 0xc9, 0x24, 368 0x0c, 0x94, 0xce, 0x1d, 0xa7, 0xfc, 0xce, 0xfe, 0x68, 0x42, 0xef, 0x4a, 0x22, 0x0a, 0x4f, 0xb2, 369 0x7b, 0x18, 0xa1, 0x12, 0x31, 0xfa, 0x91, 0xc6, 0xc7, 0x44, 0xbe, 0xa4, 0x12, 0xb5, 0x65, 0x1c, 370 0x1b, 0x93, 0xbd, 0xd9, 0xa9, 0xf3, 0x33, 0xc3, 0xb9, 0xd9, 0x0c, 0xf1, 0x7c, 0x66, 0xd1, 0xe0, 371 0x43, 0xac, 0x79, 0xec, 0x01, 0x58, 0x15, 0x8e, 0x71, 0xa4, 0x50, 0x5a, 0x4d, 0xa2, 0x9f, 0xed, 372 0x48, 0xcf, 0x87, 0x16, 0x0d, 0x3e, 0xc2, 0xba, 0xc9, 0xae, 0xc1, 0x74, 0xfd, 0x54, 0x3d, 0x97, 373 0xc1, 0x5b, 0x84, 0x9e, 0xfc, 0x86, 0xbe, 0xcc, 0x06, 0xb6, 0xa1, 0x07, 0x6e, 0x45, 0x33, 0x0e, 374 0xfb, 0x1b, 0x60, 0x11, 0xb6, 0x4d, 0xc4, 0x93, 0x1d, 0x88, 0x65, 0x50, 0xd3, 0xad, 0x1a, 0xf3, 375 0x0e, 0xb4, 0x30, 0x0d, 0x6d, 0x06, 0xc3, 0xfa, 0xce, 0xec, 0x77, 0x03, 0x46, 0xdf, 0xaa, 0xb2, 376 0x43, 0xe8, 0xfa, 0x32, 0xf0, 0xfc, 0xfc, 0x1e, 0xda, 0xbc, 0x50, 0x99, 0xff, 0x14, 0x25, 0xa1, 377 0xd0, 0xb4, 0x41, 0x93, 0x17, 0x2a, 0xf3, 0xe9, 0x8f, 0x48, 0xf5, 0x4d, 0x5e, 0x28, 0xc6, 0xa0, 378 0xed, 0x0b, 0xf4, 0xa9, 0xc2, 0x80, 0xd3, 0x99, 0x8d, 0xa1, 0x1f, 0x4a, 0x2d, 0x56, 0x42, 0x0b, 379 0xab, 0x43, 0x7e, 0xa9, 0xed, 0x5b, 0x18, 0x54, 0x97, 0xf3, 0xe7, 0x1c, 0x07, 0xd0, 0x09, 0xd4, 380 0x4a, 0xbe, 0x16, 0x31, 0x72, 0x61, 0xbf, 0x19, 0x60, 0x7e, 0xd9, 0xd0, 0xff, 0x70, 0x33, 0x97, 381 0x7a, 0x16, 0xf5, 0x72, 0xc1, 0x2c, 0xe8, 0x85, 0x01, 0x62, 0xa0, 0x3c, 0xaa, 0xd7, 0xe7, 0x1b, 382 0x39, 0x9f, 0xdd, 0x9d, 0x7b, 0x81, 0xf6, 0xd3, 0xa5, 0xe3, 0x46, 0xe1, 0x74, 0x7b, 0x9d, 0xd5, 383 0x63, 0xed, 0x41, 0x2d, 0xbb, 0x64, 0x5c, 0x7c, 0x06, 0x00, 0x00, 0xff, 0xff, 0x79, 0xd0, 0x53, 384 0x2f, 0x6a, 0x03, 0x00, 0x00, 385 }