// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/compute/v1/disk_placement_group.proto

package compute

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

type DiskPlacementGroup_Status int32

const (
	DiskPlacementGroup_STATUS_UNSPECIFIED DiskPlacementGroup_Status = 0
	DiskPlacementGroup_CREATING           DiskPlacementGroup_Status = 1
	DiskPlacementGroup_READY              DiskPlacementGroup_Status = 2
	DiskPlacementGroup_DELETING           DiskPlacementGroup_Status = 4
)

// Enum value maps for DiskPlacementGroup_Status.
var (
	DiskPlacementGroup_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
		4: "DELETING",
	}
	DiskPlacementGroup_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"READY":              2,
		"DELETING":           4,
	}
)

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

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

func (DiskPlacementGroup_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes[0].Descriptor()
}

func (DiskPlacementGroup_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes[0]
}

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

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

type DiskPlacementGroup struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the placement group.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the placement group belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the placement group.
	// The name is unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the placement group.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels as `key:value` pairs.
	Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// ID of the availability zone where the placement group resides.
	ZoneId string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Current status of the placement group
	Status DiskPlacementGroup_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.DiskPlacementGroup_Status" json:"status,omitempty"`
	// Placement strategy.
	//
	// Types that are valid to be assigned to PlacementStrategy:
	//
	//	*DiskPlacementGroup_SpreadPlacementStrategy
	//	*DiskPlacementGroup_PartitionPlacementStrategy
	PlacementStrategy isDiskPlacementGroup_PlacementStrategy `protobuf_oneof:"placement_strategy"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*DiskPlacementGroup) ProtoMessage() {}

func (x *DiskPlacementGroup) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_compute_v1_disk_placement_group_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 DiskPlacementGroup.ProtoReflect.Descriptor instead.
func (*DiskPlacementGroup) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{0}
}

func (x *DiskPlacementGroup) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *DiskPlacementGroup) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *DiskPlacementGroup) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *DiskPlacementGroup) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *DiskPlacementGroup) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *DiskPlacementGroup) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *DiskPlacementGroup) GetZoneId() string {
	if x != nil {
		return x.ZoneId
	}
	return ""
}

func (x *DiskPlacementGroup) GetStatus() DiskPlacementGroup_Status {
	if x != nil {
		return x.Status
	}
	return DiskPlacementGroup_STATUS_UNSPECIFIED
}

func (x *DiskPlacementGroup) GetPlacementStrategy() isDiskPlacementGroup_PlacementStrategy {
	if x != nil {
		return x.PlacementStrategy
	}
	return nil
}

func (x *DiskPlacementGroup) GetSpreadPlacementStrategy() *DiskSpreadPlacementStrategy {
	if x != nil {
		if x, ok := x.PlacementStrategy.(*DiskPlacementGroup_SpreadPlacementStrategy); ok {
			return x.SpreadPlacementStrategy
		}
	}
	return nil
}

func (x *DiskPlacementGroup) GetPartitionPlacementStrategy() *DiskPartitionPlacementStrategy {
	if x != nil {
		if x, ok := x.PlacementStrategy.(*DiskPlacementGroup_PartitionPlacementStrategy); ok {
			return x.PartitionPlacementStrategy
		}
	}
	return nil
}

type isDiskPlacementGroup_PlacementStrategy interface {
	isDiskPlacementGroup_PlacementStrategy()
}

type DiskPlacementGroup_SpreadPlacementStrategy struct {
	// Distribute disks over distinct failure domains.
	SpreadPlacementStrategy *DiskSpreadPlacementStrategy `protobuf:"bytes,8,opt,name=spread_placement_strategy,json=spreadPlacementStrategy,proto3,oneof"`
}

type DiskPlacementGroup_PartitionPlacementStrategy struct {
	// Distribute disks over partitions.
	PartitionPlacementStrategy *DiskPartitionPlacementStrategy `protobuf:"bytes,9,opt,name=partition_placement_strategy,json=partitionPlacementStrategy,proto3,oneof"`
}

func (*DiskPlacementGroup_SpreadPlacementStrategy) isDiskPlacementGroup_PlacementStrategy() {}

func (*DiskPlacementGroup_PartitionPlacementStrategy) isDiskPlacementGroup_PlacementStrategy() {}

type DiskSpreadPlacementStrategy struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DiskSpreadPlacementStrategy) ProtoMessage() {}

func (x *DiskSpreadPlacementStrategy) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_compute_v1_disk_placement_group_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 DiskSpreadPlacementStrategy.ProtoReflect.Descriptor instead.
func (*DiskSpreadPlacementStrategy) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{1}
}

type DiskPartitionPlacementStrategy struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Partitions    int64                  `protobuf:"varint,1,opt,name=partitions,proto3" json:"partitions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DiskPartitionPlacementStrategy) ProtoMessage() {}

func (x *DiskPartitionPlacementStrategy) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_compute_v1_disk_placement_group_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 DiskPartitionPlacementStrategy.ProtoReflect.Descriptor instead.
func (*DiskPartitionPlacementStrategy) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP(), []int{2}
}

func (x *DiskPartitionPlacementStrategy) GetPartitions() int64 {
	if x != nil {
		return x.Partitions
	}
	return 0
}

var File_yandex_cloud_compute_v1_disk_placement_group_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc = "" +
	"\n" +
	"2yandex/cloud/compute/v1/disk_placement_group.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x05\n" +
	"\x12DiskPlacementGroup\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x129\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
	"\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12O\n" +
	"\x06labels\x18\x06 \x03(\v27.yandex.cloud.compute.v1.DiskPlacementGroup.LabelsEntryR\x06labels\x12\x17\n" +
	"\azone_id\x18\a \x01(\tR\x06zoneId\x12J\n" +
	"\x06status\x18\v \x01(\x0e22.yandex.cloud.compute.v1.DiskPlacementGroup.StatusR\x06status\x12r\n" +
	"\x19spread_placement_strategy\x18\b \x01(\v24.yandex.cloud.compute.v1.DiskSpreadPlacementStrategyH\x00R\x17spreadPlacementStrategy\x12{\n" +
	"\x1cpartition_placement_strategy\x18\t \x01(\v27.yandex.cloud.compute.v1.DiskPartitionPlacementStrategyH\x00R\x1apartitionPlacementStrategy\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"G\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\t\n" +
	"\x05READY\x10\x02\x12\f\n" +
	"\bDELETING\x10\x04B\x14\n" +
	"\x12placement_strategyJ\x04\b\n" +
	"\x10\v\"\x1d\n" +
	"\x1bDiskSpreadPlacementStrategy\"@\n" +
	"\x1eDiskPartitionPlacementStrategy\x12\x1e\n" +
	"\n" +
	"partitions\x18\x01 \x01(\x03R\n" +
	"partitionsBb\n" +
	"\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3"

var (
	file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc), len(file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDescData
}

var file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes = []any{
	(DiskPlacementGroup_Status)(0),         // 0: yandex.cloud.compute.v1.DiskPlacementGroup.Status
	(*DiskPlacementGroup)(nil),             // 1: yandex.cloud.compute.v1.DiskPlacementGroup
	(*DiskSpreadPlacementStrategy)(nil),    // 2: yandex.cloud.compute.v1.DiskSpreadPlacementStrategy
	(*DiskPartitionPlacementStrategy)(nil), // 3: yandex.cloud.compute.v1.DiskPartitionPlacementStrategy
	nil,                                    // 4: yandex.cloud.compute.v1.DiskPlacementGroup.LabelsEntry
	(*timestamppb.Timestamp)(nil),          // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.compute.v1.DiskPlacementGroup.created_at:type_name -> google.protobuf.Timestamp
	4, // 1: yandex.cloud.compute.v1.DiskPlacementGroup.labels:type_name -> yandex.cloud.compute.v1.DiskPlacementGroup.LabelsEntry
	0, // 2: yandex.cloud.compute.v1.DiskPlacementGroup.status:type_name -> yandex.cloud.compute.v1.DiskPlacementGroup.Status
	2, // 3: yandex.cloud.compute.v1.DiskPlacementGroup.spread_placement_strategy:type_name -> yandex.cloud.compute.v1.DiskSpreadPlacementStrategy
	3, // 4: yandex.cloud.compute.v1.DiskPlacementGroup.partition_placement_strategy:type_name -> yandex.cloud.compute.v1.DiskPartitionPlacementStrategy
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_disk_placement_group_proto_init() }
func file_yandex_cloud_compute_v1_disk_placement_group_proto_init() {
	if File_yandex_cloud_compute_v1_disk_placement_group_proto != nil {
		return
	}
	file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes[0].OneofWrappers = []any{
		(*DiskPlacementGroup_SpreadPlacementStrategy)(nil),
		(*DiskPlacementGroup_PartitionPlacementStrategy)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc), len(file_yandex_cloud_compute_v1_disk_placement_group_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_disk_placement_group_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_disk_placement_group_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_disk_placement_group_proto = out.File
	file_yandex_cloud_compute_v1_disk_placement_group_proto_goTypes = nil
	file_yandex_cloud_compute_v1_disk_placement_group_proto_depIdxs = nil
}
