// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/baremetal/v1alpha/storage.proto

package baremetal

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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)
)

// Storage partition type.
type StoragePartitionType int32

const (
	// Unspecified storage partition type.
	StoragePartitionType_STORAGE_PARTITION_TYPE_UNSPECIFIED StoragePartitionType = 0
	// ext4 file system partition type.
	StoragePartitionType_EXT4 StoragePartitionType = 1
	// Swap partition type.
	StoragePartitionType_SWAP StoragePartitionType = 2
	// ext3 file system partition type.
	StoragePartitionType_EXT3 StoragePartitionType = 3
	// XFS file system partition type.
	StoragePartitionType_XFS StoragePartitionType = 4
)

// Enum value maps for StoragePartitionType.
var (
	StoragePartitionType_name = map[int32]string{
		0: "STORAGE_PARTITION_TYPE_UNSPECIFIED",
		1: "EXT4",
		2: "SWAP",
		3: "EXT3",
		4: "XFS",
	}
	StoragePartitionType_value = map[string]int32{
		"STORAGE_PARTITION_TYPE_UNSPECIFIED": 0,
		"EXT4":                               1,
		"SWAP":                               2,
		"EXT3":                               3,
		"XFS":                                4,
	}
)

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

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

func (StoragePartitionType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes[0].Descriptor()
}

func (StoragePartitionType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes[0]
}

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

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

// RaidType represents different RAID configurations.
type RaidType int32

const (
	// Unspecified RAID configuration.
	RaidType_RAID_TYPE_UNSPECIFIED RaidType = 0
	// RAID0 configuration.
	RaidType_RAID0 RaidType = 1
	// RAID1 configuration.
	RaidType_RAID1 RaidType = 2
	// RAID10 configuration.
	RaidType_RAID10 RaidType = 3
)

// Enum value maps for RaidType.
var (
	RaidType_name = map[int32]string{
		0: "RAID_TYPE_UNSPECIFIED",
		1: "RAID0",
		2: "RAID1",
		3: "RAID10",
	}
	RaidType_value = map[string]int32{
		"RAID_TYPE_UNSPECIFIED": 0,
		"RAID0":                 1,
		"RAID1":                 2,
		"RAID10":                3,
	}
)

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

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

func (RaidType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes[1].Descriptor()
}

func (RaidType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes[1]
}

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

// Deprecated: Use RaidType.Descriptor instead.
func (RaidType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescGZIP(), []int{1}
}

type StoragePartition struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Partition type.
	Type StoragePartitionType `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.baremetal.v1alpha.StoragePartitionType" json:"type,omitempty"`
	// Size of the storage partition in gibibytes (2^30 bytes).
	SizeGib int64 `protobuf:"varint,2,opt,name=size_gib,json=sizeGib,proto3" json:"size_gib,omitempty"`
	// Storage mount point.
	MountPoint    string `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *StoragePartition) Reset() {
	*x = StoragePartition{}
	mi := &file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StoragePartition) ProtoMessage() {}

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

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

func (x *StoragePartition) GetType() StoragePartitionType {
	if x != nil {
		return x.Type
	}
	return StoragePartitionType_STORAGE_PARTITION_TYPE_UNSPECIFIED
}

func (x *StoragePartition) GetSizeGib() int64 {
	if x != nil {
		return x.SizeGib
	}
	return 0
}

func (x *StoragePartition) GetMountPoint() string {
	if x != nil {
		return x.MountPoint
	}
	return ""
}

// Storage, a OS-level storage entity used for creating partitions. For example, this could
// represent a plain disk or a software RAID of disks.
type Storage struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Storage type.
	//
	// Types that are valid to be assigned to StorageType:
	//
	//	*Storage_Disk
	//	*Storage_Raid
	StorageType isStorage_StorageType `protobuf_oneof:"storage_type"`
	// Array of partitions created on the storage.
	Partitions    []*StoragePartition `protobuf:"bytes,3,rep,name=partitions,proto3" json:"partitions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Storage) Reset() {
	*x = Storage{}
	mi := &file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Storage) ProtoMessage() {}

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

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

func (x *Storage) GetStorageType() isStorage_StorageType {
	if x != nil {
		return x.StorageType
	}
	return nil
}

func (x *Storage) GetDisk() *Disk {
	if x != nil {
		if x, ok := x.StorageType.(*Storage_Disk); ok {
			return x.Disk
		}
	}
	return nil
}

func (x *Storage) GetRaid() *Raid {
	if x != nil {
		if x, ok := x.StorageType.(*Storage_Raid); ok {
			return x.Raid
		}
	}
	return nil
}

func (x *Storage) GetPartitions() []*StoragePartition {
	if x != nil {
		return x.Partitions
	}
	return nil
}

type isStorage_StorageType interface {
	isStorage_StorageType()
}

type Storage_Disk struct {
	// Disk storage.
	Disk *Disk `protobuf:"bytes,4,opt,name=disk,proto3,oneof"`
}

type Storage_Raid struct {
	// RAID storage.
	Raid *Raid `protobuf:"bytes,5,opt,name=raid,proto3,oneof"`
}

func (*Storage_Disk) isStorage_StorageType() {}

func (*Storage_Raid) isStorage_StorageType() {}

// RAID storage.
type Raid struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// RAID type.
	Type RaidType `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.baremetal.v1alpha.RaidType" json:"type,omitempty"`
	// Array of disks in the RAID configuration.
	Disks         []*Disk `protobuf:"bytes,2,rep,name=disks,proto3" json:"disks,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Raid) Reset() {
	*x = Raid{}
	mi := &file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Raid) ProtoMessage() {}

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

// Deprecated: Use Raid.ProtoReflect.Descriptor instead.
func (*Raid) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescGZIP(), []int{2}
}

func (x *Raid) GetType() RaidType {
	if x != nil {
		return x.Type
	}
	return RaidType_RAID_TYPE_UNSPECIFIED
}

func (x *Raid) GetDisks() []*Disk {
	if x != nil {
		return x.Disks
	}
	return nil
}

var File_yandex_cloud_baremetal_v1alpha_storage_proto protoreflect.FileDescriptor

const file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDesc = "" +
	"\n" +
	",yandex/cloud/baremetal/v1alpha/storage.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a)yandex/cloud/baremetal/v1alpha/disk.proto\x1a\x1dyandex/cloud/validation.proto\"\x98\x01\n" +
	"\x10StoragePartition\x12H\n" +
	"\x04type\x18\x01 \x01(\x0e24.yandex.cloud.baremetal.v1alpha.StoragePartitionTypeR\x04type\x12\x19\n" +
	"\bsize_gib\x18\x02 \x01(\x03R\asizeGib\x12\x1f\n" +
	"\vmount_point\x18\x03 \x01(\tR\n" +
	"mountPoint\"\xef\x01\n" +
	"\aStorage\x12:\n" +
	"\x04disk\x18\x04 \x01(\v2$.yandex.cloud.baremetal.v1alpha.DiskH\x00R\x04disk\x12:\n" +
	"\x04raid\x18\x05 \x01(\v2$.yandex.cloud.baremetal.v1alpha.RaidH\x00R\x04raid\x12P\n" +
	"\n" +
	"partitions\x18\x03 \x03(\v20.yandex.cloud.baremetal.v1alpha.StoragePartitionR\n" +
	"partitionsB\x14\n" +
	"\fstorage_type\x12\x04\xc0\xc11\x01J\x04\b\x01\x10\x03\"\x80\x01\n" +
	"\x04Raid\x12<\n" +
	"\x04type\x18\x01 \x01(\x0e2(.yandex.cloud.baremetal.v1alpha.RaidTypeR\x04type\x12:\n" +
	"\x05disks\x18\x02 \x03(\v2$.yandex.cloud.baremetal.v1alpha.DiskR\x05disks*e\n" +
	"\x14StoragePartitionType\x12&\n" +
	"\"STORAGE_PARTITION_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04EXT4\x10\x01\x12\b\n" +
	"\x04SWAP\x10\x02\x12\b\n" +
	"\x04EXT3\x10\x03\x12\a\n" +
	"\x03XFS\x10\x04*G\n" +
	"\bRaidType\x12\x19\n" +
	"\x15RAID_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05RAID0\x10\x01\x12\t\n" +
	"\x05RAID1\x10\x02\x12\n" +
	"\n" +
	"\x06RAID10\x10\x03Br\n" +
	"\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3"

var (
	file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescOnce sync.Once
	file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescData []byte
)

func file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescGZIP() []byte {
	file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDesc)))
	})
	return file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDescData
}

var file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_baremetal_v1alpha_storage_proto_goTypes = []any{
	(StoragePartitionType)(0), // 0: yandex.cloud.baremetal.v1alpha.StoragePartitionType
	(RaidType)(0),             // 1: yandex.cloud.baremetal.v1alpha.RaidType
	(*StoragePartition)(nil),  // 2: yandex.cloud.baremetal.v1alpha.StoragePartition
	(*Storage)(nil),           // 3: yandex.cloud.baremetal.v1alpha.Storage
	(*Raid)(nil),              // 4: yandex.cloud.baremetal.v1alpha.Raid
	(*Disk)(nil),              // 5: yandex.cloud.baremetal.v1alpha.Disk
}
var file_yandex_cloud_baremetal_v1alpha_storage_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.baremetal.v1alpha.StoragePartition.type:type_name -> yandex.cloud.baremetal.v1alpha.StoragePartitionType
	5, // 1: yandex.cloud.baremetal.v1alpha.Storage.disk:type_name -> yandex.cloud.baremetal.v1alpha.Disk
	4, // 2: yandex.cloud.baremetal.v1alpha.Storage.raid:type_name -> yandex.cloud.baremetal.v1alpha.Raid
	2, // 3: yandex.cloud.baremetal.v1alpha.Storage.partitions:type_name -> yandex.cloud.baremetal.v1alpha.StoragePartition
	1, // 4: yandex.cloud.baremetal.v1alpha.Raid.type:type_name -> yandex.cloud.baremetal.v1alpha.RaidType
	5, // 5: yandex.cloud.baremetal.v1alpha.Raid.disks:type_name -> yandex.cloud.baremetal.v1alpha.Disk
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_baremetal_v1alpha_storage_proto_init() }
func file_yandex_cloud_baremetal_v1alpha_storage_proto_init() {
	if File_yandex_cloud_baremetal_v1alpha_storage_proto != nil {
		return
	}
	file_yandex_cloud_baremetal_v1alpha_disk_proto_init()
	file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes[1].OneofWrappers = []any{
		(*Storage_Disk)(nil),
		(*Storage_Raid)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_storage_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_baremetal_v1alpha_storage_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_baremetal_v1alpha_storage_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_baremetal_v1alpha_storage_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_baremetal_v1alpha_storage_proto_msgTypes,
	}.Build()
	File_yandex_cloud_baremetal_v1alpha_storage_proto = out.File
	file_yandex_cloud_baremetal_v1alpha_storage_proto_goTypes = nil
	file_yandex_cloud_baremetal_v1alpha_storage_proto_depIdxs = nil
}
