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

package airflow

import (
	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 (
	// Cluster is in unknown state (we have no data).
	Health_HEALTH_UNKNOWN Health = 0
	// Cluster is alive and well.
	Health_ALIVE Health = 1
	// Cluster is inoperable (it cannot perform any of its essential functions).
	Health_DEAD Health = 2
	// Cluster 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_airflow_v1_common_proto_enumTypes[0].Descriptor()
}

func (Health) Type() protoreflect.EnumType {
	return &file_yandex_cloud_airflow_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_airflow_v1_common_proto_rawDescGZIP(), []int{0}
}

type Resources struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the preset for computational resources available to an instance (CPU, memory etc.).
	ResourcePresetId string `protobuf:"bytes,3,opt,name=resource_preset_id,json=resourcePresetId,proto3" json:"resource_preset_id,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *Resources) Reset() {
	*x = Resources{}
	mi := &file_yandex_cloud_airflow_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_airflow_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_airflow_v1_common_proto_rawDescGZIP(), []int{0}
}

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

var File_yandex_cloud_airflow_v1_common_proto protoreflect.FileDescriptor

const file_yandex_cloud_airflow_v1_common_proto_rawDesc = "" +
	"\n" +
	"$yandex/cloud/airflow/v1/common.proto\x12\x17yandex.cloud.airflow.v1\"?\n" +
	"\tResources\x12,\n" +
	"\x12resource_preset_id\x18\x03 \x01(\tR\x10resourcePresetIdJ\x04\b\x01\x10\x03*?\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\x03Bb\n" +
	"\x1byandex.cloud.api.airflow.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/airflow/v1;airflowb\x06proto3"

var (
	file_yandex_cloud_airflow_v1_common_proto_rawDescOnce sync.Once
	file_yandex_cloud_airflow_v1_common_proto_rawDescData []byte
)

func file_yandex_cloud_airflow_v1_common_proto_rawDescGZIP() []byte {
	file_yandex_cloud_airflow_v1_common_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_airflow_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_airflow_v1_common_proto_rawDesc), len(file_yandex_cloud_airflow_v1_common_proto_rawDesc)))
	})
	return file_yandex_cloud_airflow_v1_common_proto_rawDescData
}

var file_yandex_cloud_airflow_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_airflow_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_airflow_v1_common_proto_goTypes = []any{
	(Health)(0),       // 0: yandex.cloud.airflow.v1.Health
	(*Resources)(nil), // 1: yandex.cloud.airflow.v1.Resources
}
var file_yandex_cloud_airflow_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_airflow_v1_common_proto_init() }
func file_yandex_cloud_airflow_v1_common_proto_init() {
	if File_yandex_cloud_airflow_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_airflow_v1_common_proto_rawDesc), len(file_yandex_cloud_airflow_v1_common_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_airflow_v1_common_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_airflow_v1_common_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_airflow_v1_common_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_airflow_v1_common_proto_msgTypes,
	}.Build()
	File_yandex_cloud_airflow_v1_common_proto = out.File
	file_yandex_cloud_airflow_v1_common_proto_goTypes = nil
	file_yandex_cloud_airflow_v1_common_proto_depIdxs = nil
}
