// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ledger_metadata.proto

package msgs

import (
	fmt "fmt"
	proto "github.com/golang/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.ProtoPackageIsVersion3 // please upgrade the proto package

// Status specifies the status of a ledger
type Status int32

const (
	Status_ACTIVE             Status = 0
	Status_INACTIVE           Status = 1
	Status_UNDER_CONSTRUCTION Status = 2
)

var Status_name = map[int32]string{
	0: "ACTIVE",
	1: "INACTIVE",
	2: "UNDER_CONSTRUCTION",
}

var Status_value = map[string]int32{
	"ACTIVE":             0,
	"INACTIVE":           1,
	"UNDER_CONSTRUCTION": 2,
}

func (x Status) String() string {
	return proto.EnumName(Status_name, int32(x))
}

func (Status) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_8173a53a47b026a1, []int{0}
}

// BootSnapshotMetadata captures the metadata of the snapshot that was used to bootstrap the ledger
type BootSnapshotMetadata struct {
	SingableMetadata     string   `protobuf:"bytes,1,opt,name=singableMetadata,proto3" json:"singableMetadata,omitempty"`
	AdditionalMetadata   string   `protobuf:"bytes,2,opt,name=additionalMetadata,proto3" json:"additionalMetadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *BootSnapshotMetadata) Reset()         { *m = BootSnapshotMetadata{} }
func (m *BootSnapshotMetadata) String() string { return proto.CompactTextString(m) }
func (*BootSnapshotMetadata) ProtoMessage()    {}
func (*BootSnapshotMetadata) Descriptor() ([]byte, []int) {
	return fileDescriptor_8173a53a47b026a1, []int{0}
}

func (m *BootSnapshotMetadata) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_BootSnapshotMetadata.Unmarshal(m, b)
}
func (m *BootSnapshotMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_BootSnapshotMetadata.Marshal(b, m, deterministic)
}
func (m *BootSnapshotMetadata) XXX_Merge(src proto.Message) {
	xxx_messageInfo_BootSnapshotMetadata.Merge(m, src)
}
func (m *BootSnapshotMetadata) XXX_Size() int {
	return xxx_messageInfo_BootSnapshotMetadata.Size(m)
}
func (m *BootSnapshotMetadata) XXX_DiscardUnknown() {
	xxx_messageInfo_BootSnapshotMetadata.DiscardUnknown(m)
}

var xxx_messageInfo_BootSnapshotMetadata proto.InternalMessageInfo

func (m *BootSnapshotMetadata) GetSingableMetadata() string {
	if m != nil {
		return m.SingableMetadata
	}
	return ""
}

func (m *BootSnapshotMetadata) GetAdditionalMetadata() string {
	if m != nil {
		return m.AdditionalMetadata
	}
	return ""
}

// LedgerMetadata specifies the metadata of a ledger
type LedgerMetadata struct {
	Status               Status                `protobuf:"varint,1,opt,name=status,proto3,enum=msgs.Status" json:"status,omitempty"`
	BootSnapshotMetadata *BootSnapshotMetadata `protobuf:"bytes,2,opt,name=boot_snapshot_metadata,json=bootSnapshotMetadata,proto3" json:"boot_snapshot_metadata,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (m *LedgerMetadata) Reset()         { *m = LedgerMetadata{} }
func (m *LedgerMetadata) String() string { return proto.CompactTextString(m) }
func (*LedgerMetadata) ProtoMessage()    {}
func (*LedgerMetadata) Descriptor() ([]byte, []int) {
	return fileDescriptor_8173a53a47b026a1, []int{1}
}

func (m *LedgerMetadata) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LedgerMetadata.Unmarshal(m, b)
}
func (m *LedgerMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LedgerMetadata.Marshal(b, m, deterministic)
}
func (m *LedgerMetadata) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LedgerMetadata.Merge(m, src)
}
func (m *LedgerMetadata) XXX_Size() int {
	return xxx_messageInfo_LedgerMetadata.Size(m)
}
func (m *LedgerMetadata) XXX_DiscardUnknown() {
	xxx_messageInfo_LedgerMetadata.DiscardUnknown(m)
}

var xxx_messageInfo_LedgerMetadata proto.InternalMessageInfo

func (m *LedgerMetadata) GetStatus() Status {
	if m != nil {
		return m.Status
	}
	return Status_ACTIVE
}

func (m *LedgerMetadata) GetBootSnapshotMetadata() *BootSnapshotMetadata {
	if m != nil {
		return m.BootSnapshotMetadata
	}
	return nil
}

func init() {
	proto.RegisterEnum("msgs.Status", Status_name, Status_value)
	proto.RegisterType((*BootSnapshotMetadata)(nil), "msgs.BootSnapshotMetadata")
	proto.RegisterType((*LedgerMetadata)(nil), "msgs.LedgerMetadata")
}

func init() { proto.RegisterFile("ledger_metadata.proto", fileDescriptor_8173a53a47b026a1) }

var fileDescriptor_8173a53a47b026a1 = []byte{
	// 277 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
	0x18, 0xc5, 0xed, 0x90, 0xa2, 0x9f, 0x63, 0x8c, 0x30, 0x87, 0x78, 0x92, 0xe1, 0x41, 0x76, 0x68,
	0x61, 0x1e, 0x44, 0x6f, 0xae, 0xee, 0x50, 0xd0, 0x4e, 0xda, 0xce, 0x83, 0x97, 0x92, 0xb4, 0xb1,
	0x2d, 0xb6, 0x4d, 0x49, 0xbe, 0x09, 0xfe, 0x07, 0xfe, 0xd9, 0xb2, 0x34, 0xf6, 0x62, 0x6f, 0xc9,
	0xef, 0x7b, 0xc9, 0x7b, 0x2f, 0x81, 0xf3, 0x8a, 0x67, 0x39, 0x97, 0x49, 0xcd, 0x91, 0x66, 0x14,
	0xa9, 0xd3, 0x4a, 0x81, 0x82, 0x1c, 0xd7, 0x2a, 0x57, 0x0b, 0x09,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