// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/compute/v1/gpu_cluster.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 GpuInterconnectType int32

const (
	GpuInterconnectType_GPU_INTERCONNECT_TYPE_UNSPECIFIED GpuInterconnectType = 0
	// InfiniBand interconnect.
	GpuInterconnectType_INFINIBAND GpuInterconnectType = 1
)

// Enum value maps for GpuInterconnectType.
var (
	GpuInterconnectType_name = map[int32]string{
		0: "GPU_INTERCONNECT_TYPE_UNSPECIFIED",
		1: "INFINIBAND",
	}
	GpuInterconnectType_value = map[string]int32{
		"GPU_INTERCONNECT_TYPE_UNSPECIFIED": 0,
		"INFINIBAND":                        1,
	}
)

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

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

func (GpuInterconnectType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes[0].Descriptor()
}

func (GpuInterconnectType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes[0]
}

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

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

type GpuCluster_Status int32

const (
	GpuCluster_STATUS_UNSPECIFIED GpuCluster_Status = 0
	// GPU cluster is being created.
	GpuCluster_CREATING GpuCluster_Status = 1
	// GPU cluster is ready to use.
	GpuCluster_READY GpuCluster_Status = 2
	// GPU cluster encountered a problem and cannot operate.
	GpuCluster_ERROR GpuCluster_Status = 3
	// GPU cluster is being deleted.
	GpuCluster_DELETING GpuCluster_Status = 4
)

// Enum value maps for GpuCluster_Status.
var (
	GpuCluster_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
		3: "ERROR",
		4: "DELETING",
	}
	GpuCluster_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"READY":              2,
		"ERROR":              3,
		"DELETING":           4,
	}
)

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

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

func (GpuCluster_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes[1].Descriptor()
}

func (GpuCluster_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes[1]
}

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

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

// A GPU cluster. For details about the concept, see [documentation](/docs/compute/concepts/gpus#gpu-clusters).
type GpuCluster struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of GPU cluster.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the GPU cluster belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the GPU cluster.
	//
	// The name is unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the GPU cluster.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// GPU cluster 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"`
	// Status of the GPU cluster.
	Status GpuCluster_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.compute.v1.GpuCluster_Status" json:"status,omitempty"`
	// ID of the availability zone where the GPU cluster resides.
	ZoneId string `protobuf:"bytes,8,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Type of interconnect used for this GPU cluster.
	InterconnectType GpuInterconnectType `protobuf:"varint,9,opt,name=interconnect_type,json=interconnectType,proto3,enum=yandex.cloud.compute.v1.GpuInterconnectType" json:"interconnect_type,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*GpuCluster) ProtoMessage() {}

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

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

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

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

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

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

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

func (x *GpuCluster) GetStatus() GpuCluster_Status {
	if x != nil {
		return x.Status
	}
	return GpuCluster_STATUS_UNSPECIFIED
}

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

func (x *GpuCluster) GetInterconnectType() GpuInterconnectType {
	if x != nil {
		return x.InterconnectType
	}
	return GpuInterconnectType_GPU_INTERCONNECT_TYPE_UNSPECIFIED
}

var File_yandex_cloud_compute_v1_gpu_cluster_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDesc = "" +
	"\n" +
	")yandex/cloud/compute/v1/gpu_cluster.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x04\n" +
	"\n" +
	"GpuCluster\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\x12G\n" +
	"\x06labels\x18\x06 \x03(\v2/.yandex.cloud.compute.v1.GpuCluster.LabelsEntryR\x06labels\x12B\n" +
	"\x06status\x18\a \x01(\x0e2*.yandex.cloud.compute.v1.GpuCluster.StatusR\x06status\x12\x17\n" +
	"\azone_id\x18\b \x01(\tR\x06zoneId\x12Y\n" +
	"\x11interconnect_type\x18\t \x01(\x0e2,.yandex.cloud.compute.v1.GpuInterconnectTypeR\x10interconnectType\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"R\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\t\n" +
	"\x05READY\x10\x02\x12\t\n" +
	"\x05ERROR\x10\x03\x12\f\n" +
	"\bDELETING\x10\x04*L\n" +
	"\x13GpuInterconnectType\x12%\n" +
	"!GPU_INTERCONNECT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"INFINIBAND\x10\x01Bb\n" +
	"\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3"

var (
	file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDesc), len(file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDescData
}

var file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_compute_v1_gpu_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_compute_v1_gpu_cluster_proto_goTypes = []any{
	(GpuInterconnectType)(0),      // 0: yandex.cloud.compute.v1.GpuInterconnectType
	(GpuCluster_Status)(0),        // 1: yandex.cloud.compute.v1.GpuCluster.Status
	(*GpuCluster)(nil),            // 2: yandex.cloud.compute.v1.GpuCluster
	nil,                           // 3: yandex.cloud.compute.v1.GpuCluster.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_gpu_cluster_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.compute.v1.GpuCluster.created_at:type_name -> google.protobuf.Timestamp
	3, // 1: yandex.cloud.compute.v1.GpuCluster.labels:type_name -> yandex.cloud.compute.v1.GpuCluster.LabelsEntry
	1, // 2: yandex.cloud.compute.v1.GpuCluster.status:type_name -> yandex.cloud.compute.v1.GpuCluster.Status
	0, // 3: yandex.cloud.compute.v1.GpuCluster.interconnect_type:type_name -> yandex.cloud.compute.v1.GpuInterconnectType
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_gpu_cluster_proto_init() }
func file_yandex_cloud_compute_v1_gpu_cluster_proto_init() {
	if File_yandex_cloud_compute_v1_gpu_cluster_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_compute_v1_gpu_cluster_proto_rawDesc), len(file_yandex_cloud_compute_v1_gpu_cluster_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_gpu_cluster_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_gpu_cluster_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_gpu_cluster_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_gpu_cluster_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_gpu_cluster_proto = out.File
	file_yandex_cloud_compute_v1_gpu_cluster_proto_goTypes = nil
	file_yandex_cloud_compute_v1_gpu_cluster_proto_depIdxs = nil
}
