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

package dataproc

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 Health int32

const (
	// Object is in unknown state (we have no data).
	Health_HEALTH_UNKNOWN Health = 0
	// Object is alive and well (for example, all hosts of the cluster are alive).
	Health_ALIVE Health = 1
	// Object is inoperable (it cannot perform any of its essential functions).
	Health_DEAD Health = 2
	// Object is partially alive (it can perform some of its essential functions).
	Health_DEGRADED Health = 3
)

// Enum value maps for Health.
var (
	Health_name = map[int32]string{
		0: "HEALTH_UNKNOWN",
		1: "ALIVE",
		2: "DEAD",
		3: "DEGRADED",
	}
	Health_value = map[string]int32{
		"HEALTH_UNKNOWN": 0,
		"ALIVE":          1,
		"DEAD":           2,
		"DEGRADED":       3,
	}
)

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

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

func (Health) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_dataproc_v1_common_proto_enumTypes[0].Descriptor()
}

func (Health) Type() protoreflect.EnumType {
	return &file_yandex_cloud_dataproc_v1_common_proto_enumTypes[0]
}

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

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

type Resources struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource preset for computational resources available to a host (CPU, memory etc.).
	// All available presets are listed in the [documentation](/docs/data-proc/concepts/instance-types).
	ResourcePresetId string `protobuf:"bytes,1,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
	// Type of the storage environment for the host.
	// Possible values:
	// * network-hdd - network HDD drive,
	// * network-ssd - network SSD drive.
	DiskTypeId string `protobuf:"bytes,2,opt,name=disk_type_id,json=diskTypeId,proto3" json:"disk_type_id,omitempty"`
	// Volume of the storage available to a host, in bytes.
	DiskSize      int64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Resources) Reset() {
	*x = Resources{}
	mi := &file_yandex_cloud_dataproc_v1_common_proto_msgTypes[0]
	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_dataproc_v1_common_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 Resources.ProtoReflect.Descriptor instead.
func (*Resources) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_dataproc_v1_common_proto_rawDescGZIP(), []int{0}
}

func (x *Resources) GetResourcePresetId() string {
	if x != nil {
		return x.ResourcePresetId
	}
	return ""
}

func (x *Resources) GetDiskTypeId() string {
	if x != nil {
		return x.DiskTypeId
	}
	return ""
}

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

var File_yandex_cloud_dataproc_v1_common_proto protoreflect.FileDescriptor

const file_yandex_cloud_dataproc_v1_common_proto_rawDesc = "" +
	"\n" +
	"%yandex/cloud/dataproc/v1/common.proto\x12\x18yandex.cloud.dataproc.v1\x1a\x1dyandex/cloud/validation.proto\"\x95\x01\n" +
	"\tResources\x126\n" +
	"\x12resource_preset_id\x18\x01 \x01(\tB\b\x8a\xc81\x04<=50R\x10resourcePresetId\x12*\n" +
	"\fdisk_type_id\x18\x02 \x01(\tB\b\x8a\xc81\x04<=50R\n" +
	"diskTypeId\x12$\n" +
	"\tdisk_size\x18\x03 \x01(\x03B\a\xfa\xc71\x03>=0R\bdiskSize*?\n" +
	"\x06Health\x12\x12\n" +
	"\x0eHEALTH_UNKNOWN\x10\x00\x12\t\n" +
	"\x05ALIVE\x10\x01\x12\b\n" +
	"\x04DEAD\x10\x02\x12\f\n" +
	"\bDEGRADED\x10\x03Be\n" +
	"\x1cyandex.cloud.api.dataproc.v1ZEgithub.com/yandex-cloud/go-genproto/yandex/cloud/dataproc/v1;dataprocb\x06proto3"

var (
	file_yandex_cloud_dataproc_v1_common_proto_rawDescOnce sync.Once
	file_yandex_cloud_dataproc_v1_common_proto_rawDescData []byte
)

func file_yandex_cloud_dataproc_v1_common_proto_rawDescGZIP() []byte {
	file_yandex_cloud_dataproc_v1_common_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_dataproc_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_dataproc_v1_common_proto_rawDesc), len(file_yandex_cloud_dataproc_v1_common_proto_rawDesc)))
	})
	return file_yandex_cloud_dataproc_v1_common_proto_rawDescData
}

var file_yandex_cloud_dataproc_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_dataproc_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_dataproc_v1_common_proto_goTypes = []any{
	(Health)(0),       // 0: yandex.cloud.dataproc.v1.Health
	(*Resources)(nil), // 1: yandex.cloud.dataproc.v1.Resources
}
var file_yandex_cloud_dataproc_v1_common_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_dataproc_v1_common_proto_init() }
func file_yandex_cloud_dataproc_v1_common_proto_init() {
	if File_yandex_cloud_dataproc_v1_common_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_dataproc_v1_common_proto_rawDesc), len(file_yandex_cloud_dataproc_v1_common_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_dataproc_v1_common_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_dataproc_v1_common_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_dataproc_v1_common_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_dataproc_v1_common_proto_msgTypes,
	}.Build()
	File_yandex_cloud_dataproc_v1_common_proto = out.File
	file_yandex_cloud_dataproc_v1_common_proto_goTypes = nil
	file_yandex_cloud_dataproc_v1_common_proto_depIdxs = nil
}
