//
//Copyright IBM Corp. All Rights Reserved.
//
//SPDX-License-Identifier: Apache-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.34.2
// 	protoc        v5.27.3
// source: ledger_metadata.proto

package msgs

import (
	reflect "reflect"
	sync "sync"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

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

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

// Enum value maps for Status.
var (
	Status_name = map[int32]string{
		0: "ACTIVE",
		1: "INACTIVE",
		2: "UNDER_CONSTRUCTION",
		3: "UNDER_DELETION",
	}
	Status_value = map[string]int32{
		"ACTIVE":             0,
		"INACTIVE":           1,
		"UNDER_CONSTRUCTION": 2,
		"UNDER_DELETION":     3,
	}
)

func (x Status) Enum() *Status {
	p := new(Status)
	*p = x
	return p
}

func (x Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Status) Descriptor() protoreflect.EnumDescriptor {
	return file_ledger_metadata_proto_enumTypes[0].Descriptor()
}

func (Status) Type() protoreflect.EnumType {
	return &file_ledger_metadata_proto_enumTypes[0]
}

func (x Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Status.Descriptor instead.
func (Status) EnumDescriptor() ([]byte, []int) {
	return file_ledger_metadata_proto_rawDescGZIP(), []int{0}
}

// BootSnapshotMetadata captures the metadata of the snapshot that was used to bootstrap the ledger
type BootSnapshotMetadata struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	SingableMetadata   string `protobuf:"bytes,1,opt,name=singableMetadata,proto3" json:"singableMetadata,omitempty"`     // signable metadata of bootstrapping snapshot in json string
	AdditionalMetadata string `protobuf:"bytes,2,opt,name=additionalMetadata,proto3" json:"additionalMetadata,omitempty"` // additional metadata of bootstrapping snapshot in json string
}

func (x *BootSnapshotMetadata) Reset() {
	*x = BootSnapshotMetadata{}
	if protoimpl.UnsafeEnabled {
		mi := &file_ledger_metadata_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *BootSnapshotMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BootSnapshotMetadata) ProtoMessage() {}

func (x *BootSnapshotMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_ledger_metadata_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use BootSnapshotMetadata.ProtoReflect.Descriptor instead.
func (*BootSnapshotMetadata) Descriptor() ([]byte, []int) {
	return file_ledger_metadata_proto_rawDescGZIP(), []int{0}
}

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

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

// LedgerMetadata specifies the metadata of a ledger
type LedgerMetadata struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	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"`
}

func (x *LedgerMetadata) Reset() {
	*x = LedgerMetadata{}
	if protoimpl.UnsafeEnabled {
		mi := &file_ledger_metadata_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *LedgerMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LedgerMetadata) ProtoMessage() {}

func (x *LedgerMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_ledger_metadata_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use LedgerMetadata.ProtoReflect.Descriptor instead.
func (*LedgerMetadata) Descriptor() ([]byte, []int) {
	return file_ledger_metadata_proto_rawDescGZIP(), []int{1}
}

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

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

var File_ledger_metadata_proto protoreflect.FileDescriptor

var file_ledger_metadata_proto_rawDesc = []byte{
	0x0a, 0x15, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
	0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x22, 0x72, 0x0a,
	0x14, 0x42, 0x6f, 0x6f, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x65, 0x74,
	0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x61, 0x62, 0x6c,
	0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x10, 0x73, 0x69, 0x6e, 0x67, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
	0x61, 0x12, 0x2e, 0x0a, 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d,
	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61,
	0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
	0x61, 0x22, 0x88, 0x01, 0x0a, 0x0e, 0x4c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61,
	0x64, 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
	0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6d, 0x73, 0x67, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74,
	0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x50, 0x0a, 0x16, 0x62, 0x6f,
	0x6f, 0x74, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61,
	0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x73, 0x67,
	0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x65,
	0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x14, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x6e, 0x61, 0x70,
	0x73, 0x68, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x4e, 0x0a, 0x06,
	0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45,
	0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01,
	0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x52,
	0x55, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x44, 0x45,
	0x52, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0x39, 0x5a, 0x37,
	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x79, 0x70, 0x65, 0x72,
	0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x66, 0x61, 0x62, 0x72, 0x69, 0x63, 0x2f, 0x63, 0x6f,
	0x72, 0x65, 0x2f, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x6b, 0x76, 0x6c, 0x65, 0x64, 0x67,
	0x65, 0x72, 0x2f, 0x6d, 0x73, 0x67, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_ledger_metadata_proto_rawDescOnce sync.Once
	file_ledger_metadata_proto_rawDescData = file_ledger_metadata_proto_rawDesc
)

func file_ledger_metadata_proto_rawDescGZIP() []byte {
	file_ledger_metadata_proto_rawDescOnce.Do(func() {
		file_ledger_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_ledger_metadata_proto_rawDescData)
	})
	return file_ledger_metadata_proto_rawDescData
}

var file_ledger_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_ledger_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_ledger_metadata_proto_goTypes = []any{
	(Status)(0),                  // 0: msgs.Status
	(*BootSnapshotMetadata)(nil), // 1: msgs.BootSnapshotMetadata
	(*LedgerMetadata)(nil),       // 2: msgs.LedgerMetadata
}
var file_ledger_metadata_proto_depIdxs = []int32{
	0, // 0: msgs.LedgerMetadata.status:type_name -> msgs.Status
	1, // 1: msgs.LedgerMetadata.boot_snapshot_metadata:type_name -> msgs.BootSnapshotMetadata
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_ledger_metadata_proto_init() }
func file_ledger_metadata_proto_init() {
	if File_ledger_metadata_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_ledger_metadata_proto_msgTypes[0].Exporter = func(v any, i int) any {
			switch v := v.(*BootSnapshotMetadata); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_ledger_metadata_proto_msgTypes[1].Exporter = func(v any, i int) any {
			switch v := v.(*LedgerMetadata); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_ledger_metadata_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_ledger_metadata_proto_goTypes,
		DependencyIndexes: file_ledger_metadata_proto_depIdxs,
		EnumInfos:         file_ledger_metadata_proto_enumTypes,
		MessageInfos:      file_ledger_metadata_proto_msgTypes,
	}.Build()
	File_ledger_metadata_proto = out.File
	file_ledger_metadata_proto_rawDesc = nil
	file_ledger_metadata_proto_goTypes = nil
	file_ledger_metadata_proto_depIdxs = nil
}
