// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/clouddesktop/v1/desktop.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"
	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 Desktop_Status int32

const (
	Desktop_STATUS_UNSPECIFIED Desktop_Status = 0
	// Desktop is being created.
	Desktop_CREATING Desktop_Status = 1
	// Desktop is ready to be used.
	Desktop_ACTIVE Desktop_Status = 2
	// Desktop is being deleted.
	Desktop_DELETING Desktop_Status = 3
	// Desktop is restarting.
	Desktop_RESTARTING Desktop_Status = 4
	// Desktop is updating.
	Desktop_UPDATING Desktop_Status = 5
	// Desktop is starting.
	Desktop_STARTING Desktop_Status = 6
	// Desktop is stopping.
	Desktop_STOPPING Desktop_Status = 7
	// Desktop is stopped.
	Desktop_STOPPED Desktop_Status = 8
	// Desktop did not manage start or restart.
	Desktop_ERROR Desktop_Status = 9
	// Desktop did not manage to get created or updated.
	Desktop_CREATION_FAILED Desktop_Status = 10
)

// Enum value maps for Desktop_Status.
var (
	Desktop_Status_name = map[int32]string{
		0:  "STATUS_UNSPECIFIED",
		1:  "CREATING",
		2:  "ACTIVE",
		3:  "DELETING",
		4:  "RESTARTING",
		5:  "UPDATING",
		6:  "STARTING",
		7:  "STOPPING",
		8:  "STOPPED",
		9:  "ERROR",
		10: "CREATION_FAILED",
	}
	Desktop_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"ACTIVE":             2,
		"DELETING":           3,
		"RESTARTING":         4,
		"UPDATING":           5,
		"STARTING":           6,
		"STOPPING":           7,
		"STOPPED":            8,
		"ERROR":              9,
		"CREATION_FAILED":    10,
	}
)

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

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

func (Desktop_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_clouddesktop_v1_desktop_proto_enumTypes[0].Descriptor()
}

func (Desktop_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_clouddesktop_v1_desktop_proto_enumTypes[0]
}

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

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

// A desktop resource.
type Desktop struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Desktop ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the desktop belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// ID of the desktop group that the desktop belongs to.
	DesktopGroupId string `protobuf:"bytes,3,opt,name=desktop_group_id,json=desktopGroupId,proto3" json:"desktop_group_id,omitempty"`
	// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Status of the desktop.
	Status Desktop_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.clouddesktop.v1.api.Desktop_Status" json:"status,omitempty"`
	// Name of the desktop.
	Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	// Resources of the desktop.
	Resources         *Resources          `protobuf:"bytes,21,opt,name=resources,proto3" json:"resources,omitempty"`
	NetworkInterfaces []*NetworkInterface `protobuf:"bytes,22,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"`
	Users             []*User             `protobuf:"bytes,23,rep,name=users,proto3" json:"users,omitempty"`
	// Labels of the desktop.
	Labels        map[string]string `protobuf:"bytes,24,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Desktop) ProtoMessage() {}

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

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

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

func (x *Desktop) GetDesktopGroupId() string {
	if x != nil {
		return x.DesktopGroupId
	}
	return ""
}

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

func (x *Desktop) GetStatus() Desktop_Status {
	if x != nil {
		return x.Status
	}
	return Desktop_STATUS_UNSPECIFIED
}

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

func (x *Desktop) GetResources() *Resources {
	if x != nil {
		return x.Resources
	}
	return nil
}

func (x *Desktop) GetNetworkInterfaces() []*NetworkInterface {
	if x != nil {
		return x.NetworkInterfaces
	}
	return nil
}

func (x *Desktop) GetUsers() []*User {
	if x != nil {
		return x.Users
	}
	return nil
}

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

type Resources struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Memory        int64                  `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
	Cores         int64                  `protobuf:"varint,2,opt,name=cores,proto3" json:"cores,omitempty"`
	CoreFraction  int64                  `protobuf:"varint,3,opt,name=core_fraction,json=coreFraction,proto3" json:"core_fraction,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Resources) ProtoMessage() {}

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

func (x *Resources) GetMemory() int64 {
	if x != nil {
		return x.Memory
	}
	return 0
}

func (x *Resources) GetCores() int64 {
	if x != nil {
		return x.Cores
	}
	return 0
}

func (x *Resources) GetCoreFraction() int64 {
	if x != nil {
		return x.CoreFraction
	}
	return 0
}

type User struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identity of the access binding.
	SubjectId string `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	// Type of the access binding, e.g. userAccount, serviceAccount, system.
	SubjectType   string `protobuf:"bytes,2,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*User) ProtoMessage() {}

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

func (x *User) GetSubjectId() string {
	if x != nil {
		return x.SubjectId
	}
	return ""
}

func (x *User) GetSubjectType() string {
	if x != nil {
		return x.SubjectType
	}
	return ""
}

type NetworkInterface struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	NetworkId     string                 `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	SubnetId      string                 `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *NetworkInterface) Reset() {
	*x = NetworkInterface{}
	mi := &file_yandex_cloud_clouddesktop_v1_desktop_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*NetworkInterface) ProtoMessage() {}

func (x *NetworkInterface) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_clouddesktop_v1_desktop_proto_msgTypes[3]
	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 NetworkInterface.ProtoReflect.Descriptor instead.
func (*NetworkInterface) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescGZIP(), []int{3}
}

func (x *NetworkInterface) GetNetworkId() string {
	if x != nil {
		return x.NetworkId
	}
	return ""
}

func (x *NetworkInterface) GetSubnetId() string {
	if x != nil {
		return x.SubnetId
	}
	return ""
}

var File_yandex_cloud_clouddesktop_v1_desktop_proto protoreflect.FileDescriptor

const file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDesc = "" +
	"\n" +
	"*yandex/cloud/clouddesktop/v1/desktop.proto\x12 yandex.cloud.clouddesktop.v1.api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xad\x06\n" +
	"\aDesktop\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x12(\n" +
	"\x10desktop_group_id\x18\x03 \x01(\tR\x0edesktopGroupId\x129\n" +
	"\n" +
	"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12H\n" +
	"\x06status\x18\x05 \x01(\x0e20.yandex.cloud.clouddesktop.v1.api.Desktop.StatusR\x06status\x12\x12\n" +
	"\x04name\x18\v \x01(\tR\x04name\x12I\n" +
	"\tresources\x18\x15 \x01(\v2+.yandex.cloud.clouddesktop.v1.api.ResourcesR\tresources\x12a\n" +
	"\x12network_interfaces\x18\x16 \x03(\v22.yandex.cloud.clouddesktop.v1.api.NetworkInterfaceR\x11networkInterfaces\x12<\n" +
	"\x05users\x18\x17 \x03(\v2&.yandex.cloud.clouddesktop.v1.api.UserR\x05users\x12M\n" +
	"\x06labels\x18\x18 \x03(\v25.yandex.cloud.clouddesktop.v1.api.Desktop.LabelsEntryR\x06labels\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xaf\x01\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\f\n" +
	"\bDELETING\x10\x03\x12\x0e\n" +
	"\n" +
	"RESTARTING\x10\x04\x12\f\n" +
	"\bUPDATING\x10\x05\x12\f\n" +
	"\bSTARTING\x10\x06\x12\f\n" +
	"\bSTOPPING\x10\a\x12\v\n" +
	"\aSTOPPED\x10\b\x12\t\n" +
	"\x05ERROR\x10\t\x12\x13\n" +
	"\x0fCREATION_FAILED\x10\n" +
	"J\x04\b\f\x10\x15J\x04\b\x06\x10\v\"{\n" +
	"\tResources\x12\x1f\n" +
	"\x06memory\x18\x01 \x01(\x03B\a\xfa\xc71\x03>=1R\x06memory\x12\x1d\n" +
	"\x05cores\x18\x02 \x01(\x03B\a\xfa\xc71\x03>=1R\x05cores\x12.\n" +
	"\rcore_fraction\x18\x03 \x01(\x03B\t\xfa\xc71\x050-100R\fcoreFraction\"f\n" +
	"\x04User\x12,\n" +
	"\n" +
	"subject_id\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=100R\tsubjectId\x120\n" +
	"\fsubject_type\x18\x02 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=100R\vsubjectType\"j\n" +
	"\x10NetworkInterface\x12+\n" +
	"\n" +
	"network_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tnetworkId\x12)\n" +
	"\tsubnet_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bsubnetIdBq\n" +
	" yandex.cloud.api.clouddesktop.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/clouddesktop/v1;clouddesktopb\x06proto3"

var (
	file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescOnce sync.Once
	file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescData []byte
)

func file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescGZIP() []byte {
	file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDesc), len(file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDesc)))
	})
	return file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDescData
}

var file_yandex_cloud_clouddesktop_v1_desktop_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_clouddesktop_v1_desktop_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_clouddesktop_v1_desktop_proto_goTypes = []any{
	(Desktop_Status)(0),           // 0: yandex.cloud.clouddesktop.v1.api.Desktop.Status
	(*Desktop)(nil),               // 1: yandex.cloud.clouddesktop.v1.api.Desktop
	(*Resources)(nil),             // 2: yandex.cloud.clouddesktop.v1.api.Resources
	(*User)(nil),                  // 3: yandex.cloud.clouddesktop.v1.api.User
	(*NetworkInterface)(nil),      // 4: yandex.cloud.clouddesktop.v1.api.NetworkInterface
	nil,                           // 5: yandex.cloud.clouddesktop.v1.api.Desktop.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_clouddesktop_v1_desktop_proto_depIdxs = []int32{
	6, // 0: yandex.cloud.clouddesktop.v1.api.Desktop.created_at:type_name -> google.protobuf.Timestamp
	0, // 1: yandex.cloud.clouddesktop.v1.api.Desktop.status:type_name -> yandex.cloud.clouddesktop.v1.api.Desktop.Status
	2, // 2: yandex.cloud.clouddesktop.v1.api.Desktop.resources:type_name -> yandex.cloud.clouddesktop.v1.api.Resources
	4, // 3: yandex.cloud.clouddesktop.v1.api.Desktop.network_interfaces:type_name -> yandex.cloud.clouddesktop.v1.api.NetworkInterface
	3, // 4: yandex.cloud.clouddesktop.v1.api.Desktop.users:type_name -> yandex.cloud.clouddesktop.v1.api.User
	5, // 5: yandex.cloud.clouddesktop.v1.api.Desktop.labels:type_name -> yandex.cloud.clouddesktop.v1.api.Desktop.LabelsEntry
	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_clouddesktop_v1_desktop_proto_init() }
func file_yandex_cloud_clouddesktop_v1_desktop_proto_init() {
	if File_yandex_cloud_clouddesktop_v1_desktop_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_desktop_proto_rawDesc), len(file_yandex_cloud_clouddesktop_v1_desktop_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_clouddesktop_v1_desktop_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_clouddesktop_v1_desktop_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_clouddesktop_v1_desktop_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_clouddesktop_v1_desktop_proto_msgTypes,
	}.Build()
	File_yandex_cloud_clouddesktop_v1_desktop_proto = out.File
	file_yandex_cloud_clouddesktop_v1_desktop_proto_goTypes = nil
	file_yandex_cloud_clouddesktop_v1_desktop_proto_depIdxs = nil
}
