|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: proto/statesync/types.proto
|
|
|
|
package statesync
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Message struct {
|
|
// Types that are valid to be assigned to Sum:
|
|
// *Message_SnapshotsRequest
|
|
// *Message_SnapshotsResponse
|
|
// *Message_ChunkRequest
|
|
// *Message_ChunkResponse
|
|
Sum isMessage_Sum `protobuf_oneof:"sum"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Message) Reset() { *m = Message{} }
|
|
func (m *Message) String() string { return proto.CompactTextString(m) }
|
|
func (*Message) ProtoMessage() {}
|
|
func (*Message) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_bef273312884335b, []int{0}
|
|
}
|
|
func (m *Message) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Message.Unmarshal(m, b)
|
|
}
|
|
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Message) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Message.Merge(m, src)
|
|
}
|
|
func (m *Message) XXX_Size() int {
|
|
return xxx_messageInfo_Message.Size(m)
|
|
}
|
|
func (m *Message) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Message.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Message proto.InternalMessageInfo
|
|
|
|
type isMessage_Sum interface {
|
|
isMessage_Sum()
|
|
}
|
|
|
|
type Message_SnapshotsRequest struct {
|
|
SnapshotsRequest *SnapshotsRequest `protobuf:"bytes,1,opt,name=snapshots_request,json=snapshotsRequest,proto3,oneof" json:"snapshots_request,omitempty"`
|
|
}
|
|
type Message_SnapshotsResponse struct {
|
|
SnapshotsResponse *SnapshotsResponse `protobuf:"bytes,2,opt,name=snapshots_response,json=snapshotsResponse,proto3,oneof" json:"snapshots_response,omitempty"`
|
|
}
|
|
type Message_ChunkRequest struct {
|
|
ChunkRequest *ChunkRequest `protobuf:"bytes,3,opt,name=chunk_request,json=chunkRequest,proto3,oneof" json:"chunk_request,omitempty"`
|
|
}
|
|
type Message_ChunkResponse struct {
|
|
ChunkResponse *ChunkResponse `protobuf:"bytes,4,opt,name=chunk_response,json=chunkResponse,proto3,oneof" json:"chunk_response,omitempty"`
|
|
}
|
|
|
|
func (*Message_SnapshotsRequest) isMessage_Sum() {}
|
|
func (*Message_SnapshotsResponse) isMessage_Sum() {}
|
|
func (*Message_ChunkRequest) isMessage_Sum() {}
|
|
func (*Message_ChunkResponse) isMessage_Sum() {}
|
|
|
|
func (m *Message) GetSum() isMessage_Sum {
|
|
if m != nil {
|
|
return m.Sum
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSnapshotsRequest() *SnapshotsRequest {
|
|
if x, ok := m.GetSum().(*Message_SnapshotsRequest); ok {
|
|
return x.SnapshotsRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetSnapshotsResponse() *SnapshotsResponse {
|
|
if x, ok := m.GetSum().(*Message_SnapshotsResponse); ok {
|
|
return x.SnapshotsResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetChunkRequest() *ChunkRequest {
|
|
if x, ok := m.GetSum().(*Message_ChunkRequest); ok {
|
|
return x.ChunkRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Message) GetChunkResponse() *ChunkResponse {
|
|
if x, ok := m.GetSum().(*Message_ChunkResponse); ok {
|
|
return x.ChunkResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*Message) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*Message_SnapshotsRequest)(nil),
|
|
(*Message_SnapshotsResponse)(nil),
|
|
(*Message_ChunkRequest)(nil),
|
|
(*Message_ChunkResponse)(nil),
|
|
}
|
|
}
|
|
|
|
type SnapshotsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SnapshotsRequest) Reset() { *m = SnapshotsRequest{} }
|
|
func (m *SnapshotsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SnapshotsRequest) ProtoMessage() {}
|
|
func (*SnapshotsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_bef273312884335b, []int{1}
|
|
}
|
|
func (m *SnapshotsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SnapshotsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SnapshotsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SnapshotsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SnapshotsRequest.Merge(m, src)
|
|
}
|
|
func (m *SnapshotsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SnapshotsRequest.Size(m)
|
|
}
|
|
func (m *SnapshotsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SnapshotsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SnapshotsRequest proto.InternalMessageInfo
|
|
|
|
type SnapshotsResponse struct {
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
|
|
Chunks uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"`
|
|
Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SnapshotsResponse) Reset() { *m = SnapshotsResponse{} }
|
|
func (m *SnapshotsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SnapshotsResponse) ProtoMessage() {}
|
|
func (*SnapshotsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_bef273312884335b, []int{2}
|
|
}
|
|
func (m *SnapshotsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SnapshotsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SnapshotsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SnapshotsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SnapshotsResponse.Merge(m, src)
|
|
}
|
|
func (m *SnapshotsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SnapshotsResponse.Size(m)
|
|
}
|
|
func (m *SnapshotsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SnapshotsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SnapshotsResponse proto.InternalMessageInfo
|
|
|
|
func (m *SnapshotsResponse) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SnapshotsResponse) GetFormat() uint32 {
|
|
if m != nil {
|
|
return m.Format
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SnapshotsResponse) GetChunks() uint32 {
|
|
if m != nil {
|
|
return m.Chunks
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SnapshotsResponse) GetHash() []byte {
|
|
if m != nil {
|
|
return m.Hash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SnapshotsResponse) GetMetadata() []byte {
|
|
if m != nil {
|
|
return m.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChunkRequest struct {
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
|
|
Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChunkRequest) Reset() { *m = ChunkRequest{} }
|
|
func (m *ChunkRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ChunkRequest) ProtoMessage() {}
|
|
func (*ChunkRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_bef273312884335b, []int{3}
|
|
}
|
|
func (m *ChunkRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChunkRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChunkRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChunkRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChunkRequest.Merge(m, src)
|
|
}
|
|
func (m *ChunkRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ChunkRequest.Size(m)
|
|
}
|
|
func (m *ChunkRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChunkRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChunkRequest proto.InternalMessageInfo
|
|
|
|
func (m *ChunkRequest) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChunkRequest) GetFormat() uint32 {
|
|
if m != nil {
|
|
return m.Format
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChunkRequest) GetIndex() uint32 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChunkResponse struct {
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
|
|
Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
|
|
Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
|
|
Missing bool `protobuf:"varint,5,opt,name=missing,proto3" json:"missing,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChunkResponse) Reset() { *m = ChunkResponse{} }
|
|
func (m *ChunkResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ChunkResponse) ProtoMessage() {}
|
|
func (*ChunkResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_bef273312884335b, []int{4}
|
|
}
|
|
func (m *ChunkResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChunkResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChunkResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChunkResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChunkResponse.Merge(m, src)
|
|
}
|
|
func (m *ChunkResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ChunkResponse.Size(m)
|
|
}
|
|
func (m *ChunkResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChunkResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChunkResponse proto.InternalMessageInfo
|
|
|
|
func (m *ChunkResponse) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChunkResponse) GetFormat() uint32 {
|
|
if m != nil {
|
|
return m.Format
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChunkResponse) GetIndex() uint32 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChunkResponse) GetChunk() []byte {
|
|
if m != nil {
|
|
return m.Chunk
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ChunkResponse) GetMissing() bool {
|
|
if m != nil {
|
|
return m.Missing
|
|
}
|
|
return false
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Message)(nil), "tendermint.proto.statesync.Message")
|
|
proto.RegisterType((*SnapshotsRequest)(nil), "tendermint.proto.statesync.SnapshotsRequest")
|
|
proto.RegisterType((*SnapshotsResponse)(nil), "tendermint.proto.statesync.SnapshotsResponse")
|
|
proto.RegisterType((*ChunkRequest)(nil), "tendermint.proto.statesync.ChunkRequest")
|
|
proto.RegisterType((*ChunkResponse)(nil), "tendermint.proto.statesync.ChunkResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto/statesync/types.proto", fileDescriptor_bef273312884335b) }
|
|
|
|
var fileDescriptor_bef273312884335b = []byte{
|
|
// 357 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x4a, 0xc3, 0x40,
|
|
0x14, 0x85, 0x9b, 0xfe, 0x73, 0x6d, 0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