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

package clouddesktop

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

type DiskSpec_Type int32

const (
	// Disk type is not specified.
	DiskSpec_TYPE_UNSPECIFIED DiskSpec_Type = 0
	// HDD disk type.
	DiskSpec_HDD DiskSpec_Type = 1
	// SSD disk type.
	DiskSpec_SSD DiskSpec_Type = 2
)

// Enum value maps for DiskSpec_Type.
var (
	DiskSpec_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "HDD",
		2: "SSD",
	}
	DiskSpec_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"HDD":              1,
		"SSD":              2,
	}
)

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

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

func (DiskSpec_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_clouddesktop_v1_disk_proto_enumTypes[0].Descriptor()
}

func (DiskSpec_Type) Type() protoreflect.EnumType {
	return &file_yandex_cloud_clouddesktop_v1_disk_proto_enumTypes[0]
}

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

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

// Disk specificaton.
type DiskSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Type of disk.
	Type DiskSpec_Type `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.clouddesktop.v1.api.DiskSpec_Type" json:"type,omitempty"`
	// Size of disk.
	Size          int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DiskSpec) ProtoMessage() {}

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

func (x *DiskSpec) GetType() DiskSpec_Type {
	if x != nil {
		return x.Type
	}
	return DiskSpec_TYPE_UNSPECIFIED
}

func (x *DiskSpec) GetSize() int64 {
	if x != nil {
		return x.Size
	}
	return 0
}

var File_yandex_cloud_clouddesktop_v1_disk_proto protoreflect.FileDescriptor

const file_yandex_cloud_clouddesktop_v1_disk_proto_rawDesc = "" +
	"\n" +
	"'yandex/cloud/clouddesktop/v1/disk.proto\x12 yandex.cloud.clouddesktop.v1.api\x1a\x1dyandex/cloud/validation.proto\"\xa1\x01\n" +
	"\bDiskSpec\x12I\n" +
	"\x04type\x18\x03 \x01(\x0e2/.yandex.cloud.clouddesktop.v1.api.DiskSpec.TypeB\x04\xe8\xc71\x01R\x04type\x12\x1a\n" +
	"\x04size\x18\x04 \x01(\x03B\x06\xfa\xc71\x02>0R\x04size\".\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\a\n" +
	"\x03HDD\x10\x01\x12\a\n" +
	"\x03SSD\x10\x02Bw\n" +
	" yandex.cloud.api.clouddesktop.v1B\x04PADDZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktopb\x06proto3"

var (
	file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescOnce sync.Once
	file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescData []byte
)

func file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescGZIP() []byte {
	file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_clouddesktop_v1_disk_proto_rawDesc), len(file_yandex_cloud_clouddesktop_v1_disk_proto_rawDesc)))
	})
	return file_yandex_cloud_clouddesktop_v1_disk_proto_rawDescData
}

var file_yandex_cloud_clouddesktop_v1_disk_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_clouddesktop_v1_disk_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_clouddesktop_v1_disk_proto_goTypes = []any{
	(DiskSpec_Type)(0), // 0: yandex.cloud.clouddesktop.v1.api.DiskSpec.Type
	(*DiskSpec)(nil),   // 1: yandex.cloud.clouddesktop.v1.api.DiskSpec
}
var file_yandex_cloud_clouddesktop_v1_disk_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.clouddesktop.v1.api.DiskSpec.type:type_name -> yandex.cloud.clouddesktop.v1.api.DiskSpec.Type
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_clouddesktop_v1_disk_proto_init() }
func file_yandex_cloud_clouddesktop_v1_disk_proto_init() {
	if File_yandex_cloud_clouddesktop_v1_disk_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_clouddesktop_v1_disk_proto_rawDesc), len(file_yandex_cloud_clouddesktop_v1_disk_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_clouddesktop_v1_disk_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_clouddesktop_v1_disk_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_clouddesktop_v1_disk_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_clouddesktop_v1_disk_proto_msgTypes,
	}.Build()
	File_yandex_cloud_clouddesktop_v1_disk_proto = out.File
	file_yandex_cloud_clouddesktop_v1_disk_proto_goTypes = nil
	file_yandex_cloud_clouddesktop_v1_disk_proto_depIdxs = nil
}
