github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/ledger/kvledger/msgs/ledger_metadata.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: ledger_metadata.proto 3 4 package msgs 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/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.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // Status specifies the status of a ledger 24 type Status int32 25 26 const ( 27 Status_ACTIVE Status = 0 28 Status_INACTIVE Status = 1 29 Status_UNDER_CONSTRUCTION Status = 2 30 Status_UNDER_DELETION Status = 3 31 ) 32 33 var Status_name = map[int32]string{ 34 0: "ACTIVE", 35 1: "INACTIVE", 36 2: "UNDER_CONSTRUCTION", 37 3: "UNDER_DELETION", 38 } 39 40 var Status_value = map[string]int32{ 41 "ACTIVE": 0, 42 "INACTIVE": 1, 43 "UNDER_CONSTRUCTION": 2, 44 "UNDER_DELETION": 3, 45 } 46 47 func (x Status) String() string { 48 return proto.EnumName(Status_name, int32(x)) 49 } 50 51 func (Status) EnumDescriptor() ([]byte, []int) { 52 return fileDescriptor_8173a53a47b026a1, []int{0} 53 } 54 55 // BootSnapshotMetadata captures the metadata of the snapshot that was used to bootstrap the ledger 56 type BootSnapshotMetadata struct { 57 SingableMetadata string `protobuf:"bytes,1,opt,name=singableMetadata,proto3" json:"singableMetadata,omitempty"` 58 AdditionalMetadata string `protobuf:"bytes,2,opt,name=additionalMetadata,proto3" json:"additionalMetadata,omitempty"` 59 XXX_NoUnkeyedLiteral struct{} `json:"-"` 60 XXX_unrecognized []byte `json:"-"` 61 XXX_sizecache int32 `json:"-"` 62 } 63 64 func (m *BootSnapshotMetadata) Reset() { *m = BootSnapshotMetadata{} } 65 func (m *BootSnapshotMetadata) String() string { return proto.CompactTextString(m) } 66 func (*BootSnapshotMetadata) ProtoMessage() {} 67 func (*BootSnapshotMetadata) Descriptor() ([]byte, []int) { 68 return fileDescriptor_8173a53a47b026a1, []int{0} 69 } 70 71 func (m *BootSnapshotMetadata) XXX_Unmarshal(b []byte) error { 72 return xxx_messageInfo_BootSnapshotMetadata.Unmarshal(m, b) 73 } 74 func (m *BootSnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 75 return xxx_messageInfo_BootSnapshotMetadata.Marshal(b, m, deterministic) 76 } 77 func (m *BootSnapshotMetadata) XXX_Merge(src proto.Message) { 78 xxx_messageInfo_BootSnapshotMetadata.Merge(m, src) 79 } 80 func (m *BootSnapshotMetadata) XXX_Size() int { 81 return xxx_messageInfo_BootSnapshotMetadata.Size(m) 82 } 83 func (m *BootSnapshotMetadata) XXX_DiscardUnknown() { 84 xxx_messageInfo_BootSnapshotMetadata.DiscardUnknown(m) 85 } 86 87 var xxx_messageInfo_BootSnapshotMetadata proto.InternalMessageInfo 88 89 func (m *BootSnapshotMetadata) GetSingableMetadata() string { 90 if m != nil { 91 return m.SingableMetadata 92 } 93 return "" 94 } 95 96 func (m *BootSnapshotMetadata) GetAdditionalMetadata() string { 97 if m != nil { 98 return m.AdditionalMetadata 99 } 100 return "" 101 } 102 103 // LedgerMetadata specifies the metadata of a ledger 104 type LedgerMetadata struct { 105 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=msgs.Status" json:"status,omitempty"` 106 BootSnapshotMetadata *BootSnapshotMetadata `protobuf:"bytes,2,opt,name=boot_snapshot_metadata,json=bootSnapshotMetadata,proto3" json:"boot_snapshot_metadata,omitempty"` 107 XXX_NoUnkeyedLiteral struct{} `json:"-"` 108 XXX_unrecognized []byte `json:"-"` 109 XXX_sizecache int32 `json:"-"` 110 } 111 112 func (m *LedgerMetadata) Reset() { *m = LedgerMetadata{} } 113 func (m *LedgerMetadata) String() string { return proto.CompactTextString(m) } 114 func (*LedgerMetadata) ProtoMessage() {} 115 func (*LedgerMetadata) Descriptor() ([]byte, []int) { 116 return fileDescriptor_8173a53a47b026a1, []int{1} 117 } 118 119 func (m *LedgerMetadata) XXX_Unmarshal(b []byte) error { 120 return xxx_messageInfo_LedgerMetadata.Unmarshal(m, b) 121 } 122 func (m *LedgerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 123 return xxx_messageInfo_LedgerMetadata.Marshal(b, m, deterministic) 124 } 125 func (m *LedgerMetadata) XXX_Merge(src proto.Message) { 126 xxx_messageInfo_LedgerMetadata.Merge(m, src) 127 } 128 func (m *LedgerMetadata) XXX_Size() int { 129 return xxx_messageInfo_LedgerMetadata.Size(m) 130 } 131 func (m *LedgerMetadata) XXX_DiscardUnknown() { 132 xxx_messageInfo_LedgerMetadata.DiscardUnknown(m) 133 } 134 135 var xxx_messageInfo_LedgerMetadata proto.InternalMessageInfo 136 137 func (m *LedgerMetadata) GetStatus() Status { 138 if m != nil { 139 return m.Status 140 } 141 return Status_ACTIVE 142 } 143 144 func (m *LedgerMetadata) GetBootSnapshotMetadata() *BootSnapshotMetadata { 145 if m != nil { 146 return m.BootSnapshotMetadata 147 } 148 return nil 149 } 150 151 func init() { 152 proto.RegisterEnum("msgs.Status", Status_name, Status_value) 153 proto.RegisterType((*BootSnapshotMetadata)(nil), "msgs.BootSnapshotMetadata") 154 proto.RegisterType((*LedgerMetadata)(nil), "msgs.LedgerMetadata") 155 } 156 157 func init() { proto.RegisterFile("ledger_metadata.proto", fileDescriptor_8173a53a47b026a1) } 158 159 var fileDescriptor_8173a53a47b026a1 = []byte{ 160 // 285 bytes of a gzipped FileDescriptorProto 161 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x41, 0x4f, 0x83, 0x30, 162 0x1c, 0xc5, 0x65, 0x1a, 0xa2, 0x7f, 0x17, 0x42, 0x9a, 0xb9, 0x18, 0x4f, 0x66, 0xf1, 0x60, 0x76, 163 0x80, 0x64, 0x1e, 0x8c, 0x47, 0xc7, 0x38, 0x90, 0x4c, 0x66, 0x80, 0x79, 0xf0, 0x42, 0x5a, 0xa8, 164 0x40, 0x04, 0x4a, 0xda, 0xce, 0xc4, 0x6f, 0xe0, 0xc7, 0x36, 0x2b, 0x95, 0x8b, 0xdc, 0xda, 0xdf, 165 0xff, 0xb5, 0xef, 0xbd, 0x16, 0xae, 0x6a, 0x9a, 0x17, 0x94, 0xa7, 0x0d, 0x95, 0x38, 0xc7, 0x12, 166 0x3b, 0x1d, 0x67, 0x92, 0xa1, 0xb3, 0x46, 0x14, 0x62, 0xc1, 0x61, 0xb6, 0x66, 0x4c, 0xc6, 0x2d, 167 0xee, 0x44, 0xc9, 0xe4, 0x8b, 0xd6, 0xa0, 0x25, 0xd8, 0xa2, 0x6a, 0x0b, 0x4c, 0x6a, 0xfa, 0xc7, 168 0xae, 0x8d, 0x5b, 0xe3, 0xfe, 0x22, 0xfa, 0xc7, 0x91, 0x03, 0x08, 0xe7, 0x79, 0x25, 0x2b, 0xd6, 169 0xe2, 0x7a, 0x50, 0x4f, 0x94, 0x7a, 0x64, 0xb2, 0xf8, 0x31, 0xc0, 0xda, 0xaa, 0x4c, 0xc3, 0x15, 170 0x77, 0x60, 0x0a, 0x89, 0xe5, 0x41, 0x28, 0x13, 0x6b, 0x35, 0x75, 0x8e, 0xe9, 0x9c, 0x58, 0xb1, 171 0x48, 0xcf, 0xd0, 0x2b, 0xcc, 0x09, 0x63, 0x32, 0x15, 0x3a, 0xed, 0x50, 0x49, 0x99, 0x5d, 0xae, 172 0x6e, 0xfa, 0x53, 0x63, 0x85, 0xa2, 0x19, 0x19, 0xa1, 0xcb, 0x10, 0xcc, 0xde, 0x03, 0x01, 0x98, 173 0xcf, 0x5e, 0x12, 0xbc, 0xf9, 0xf6, 0x09, 0x9a, 0xc2, 0x79, 0x10, 0xea, 0x9d, 0x81, 0xe6, 0x80, 174 0xf6, 0xe1, 0xc6, 0x8f, 0x52, 0x6f, 0x17, 0xc6, 0x49, 0xb4, 0xf7, 0x92, 0x60, 0x17, 0xda, 0x13, 175 0x84, 0xc0, 0xea, 0xf9, 0xc6, 0xdf, 0xfa, 0x8a, 0x9d, 0xae, 0x9f, 0xde, 0x1f, 0x8b, 0x4a, 0x96, 176 0x07, 0xe2, 0x64, 0xac, 0x71, 0xcb, 0xef, 0x8e, 0xf2, 0xfe, 0xf5, 0xdd, 0x0f, 0x4c, 0x78, 0x95, 177 0xb9, 0x19, 0xe3, 0xd4, 0xd5, 0xe8, 0xf3, 0x4b, 0x2f, 0x8e, 0xa9, 0x89, 0xa9, 0xbe, 0xe5, 0xe1, 178 0x37, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xee, 0x9d, 0x64, 0xaf, 0x01, 0x00, 0x00, 179 }