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

package greenplum

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

const (
	// Host type is not specified. Default value.
	Host_TYPE_UNSPECIFIED Host_Type = 0
	// A Greenplum® master host.
	Host_MASTER Host_Type = 1
	// A Greenplum® master replica host.
	Host_REPLICA Host_Type = 2
	// A Greenplum® segment host.
	Host_SEGMENT Host_Type = 3
)

// Enum value maps for Host_Type.
var (
	Host_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "MASTER",
		2: "REPLICA",
		3: "SEGMENT",
	}
	Host_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"MASTER":           1,
		"REPLICA":          2,
		"SEGMENT":          3,
	}
)

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

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

func (Host_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes[0].Descriptor()
}

func (Host_Type) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes[0]
}

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

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

type Host_Health int32

const (
	// Health of the host is unknown. Default value.
	Host_UNKNOWN Host_Health = 0
	// The host is performing all its functions normally.
	Host_ALIVE Host_Health = 1
	// The host is inoperable and cannot perform any of its essential functions.
	Host_DEAD Host_Health = 2
	// The host is working below capacity or not fully functional.
	Host_DEGRADED Host_Health = 3
	// One or more segments are not in the preferred role.
	Host_UNBALANCED Host_Health = 4
)

// Enum value maps for Host_Health.
var (
	Host_Health_name = map[int32]string{
		0: "UNKNOWN",
		1: "ALIVE",
		2: "DEAD",
		3: "DEGRADED",
		4: "UNBALANCED",
	}
	Host_Health_value = map[string]int32{
		"UNKNOWN":    0,
		"ALIVE":      1,
		"DEAD":       2,
		"DEGRADED":   3,
		"UNBALANCED": 4,
	}
)

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

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

func (Host_Health) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes[1].Descriptor()
}

func (Host_Health) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes[1]
}

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

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

// A Greenplum® cluster host resource.
type Host struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the Greenplum® host.
	//
	// The host name is assigned by the platform at creation time and cannot be changed.
	//
	// The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the Greenplum® cluster. The ID is assigned by the platform at creation time.
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// ID of the availability zone the Greenplum® host belongs to.
	ZoneId string `protobuf:"bytes,3,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Type of the host. If the field has default value, it is not returned in the response.
	Type Host_Type `protobuf:"varint,4,opt,name=type,proto3,enum=yandex.cloud.mdb.greenplum.v1.Host_Type" json:"type,omitempty"`
	// Resources allocated to the Greenplum® host.
	Resources *Resources `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"`
	// Aggregated health of the host. If the field has default value, it is not returned in the response.
	Health Host_Health `protobuf:"varint,6,opt,name=health,proto3,enum=yandex.cloud.mdb.greenplum.v1.Host_Health" json:"health,omitempty"`
	// ID of the subnet that the host belongs to.
	SubnetId string `protobuf:"bytes,7,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	// Determines whether a public IP is assigned to the host.
	AssignPublicIp bool `protobuf:"varint,8,opt,name=assign_public_ip,json=assignPublicIp,proto3" json:"assign_public_ip,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*Host) ProtoMessage() {}

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

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

func (x *Host) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

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

func (x *Host) GetType() Host_Type {
	if x != nil {
		return x.Type
	}
	return Host_TYPE_UNSPECIFIED
}

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

func (x *Host) GetHealth() Host_Health {
	if x != nil {
		return x.Health
	}
	return Host_UNKNOWN
}

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

func (x *Host) GetAssignPublicIp() bool {
	if x != nil {
		return x.AssignPublicIp
	}
	return false
}

var File_yandex_cloud_mdb_greenplum_v1_host_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDesc = "" +
	"\n" +
	"(yandex/cloud/mdb/greenplum/v1/host.proto\x12\x1dyandex.cloud.mdb.greenplum.v1\x1a*yandex/cloud/mdb/greenplum/v1/config.proto\x1a\x1dyandex/cloud/validation.proto\"\xff\x03\n" +
	"\x04Host\x12 \n" +
	"\x04name\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=63R\x04name\x12\x1d\n" +
	"\n" +
	"cluster_id\x18\x02 \x01(\tR\tclusterId\x12\x17\n" +
	"\azone_id\x18\x03 \x01(\tR\x06zoneId\x12<\n" +
	"\x04type\x18\x04 \x01(\x0e2(.yandex.cloud.mdb.greenplum.v1.Host.TypeR\x04type\x12F\n" +
	"\tresources\x18\x05 \x01(\v2(.yandex.cloud.mdb.greenplum.v1.ResourcesR\tresources\x12B\n" +
	"\x06health\x18\x06 \x01(\x0e2*.yandex.cloud.mdb.greenplum.v1.Host.HealthR\x06health\x12\x1b\n" +
	"\tsubnet_id\x18\a \x01(\tR\bsubnetId\x12(\n" +
	"\x10assign_public_ip\x18\b \x01(\bR\x0eassignPublicIp\"B\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06MASTER\x10\x01\x12\v\n" +
	"\aREPLICA\x10\x02\x12\v\n" +
	"\aSEGMENT\x10\x03\"H\n" +
	"\x06Health\x12\v\n" +
	"\aUNKNOWN\x10\x00\x12\t\n" +
	"\x05ALIVE\x10\x01\x12\b\n" +
	"\x04DEAD\x10\x02\x12\f\n" +
	"\bDEGRADED\x10\x03\x12\x0e\n" +
	"\n" +
	"UNBALANCED\x10\x04Bp\n" +
	"!yandex.cloud.api.mdb.greenplum.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/greenplum/v1;greenplumb\x06proto3"

var (
	file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDesc), len(file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDescData
}

var file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_mdb_greenplum_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_mdb_greenplum_v1_host_proto_goTypes = []any{
	(Host_Type)(0),    // 0: yandex.cloud.mdb.greenplum.v1.Host.Type
	(Host_Health)(0),  // 1: yandex.cloud.mdb.greenplum.v1.Host.Health
	(*Host)(nil),      // 2: yandex.cloud.mdb.greenplum.v1.Host
	(*Resources)(nil), // 3: yandex.cloud.mdb.greenplum.v1.Resources
}
var file_yandex_cloud_mdb_greenplum_v1_host_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.mdb.greenplum.v1.Host.type:type_name -> yandex.cloud.mdb.greenplum.v1.Host.Type
	3, // 1: yandex.cloud.mdb.greenplum.v1.Host.resources:type_name -> yandex.cloud.mdb.greenplum.v1.Resources
	1, // 2: yandex.cloud.mdb.greenplum.v1.Host.health:type_name -> yandex.cloud.mdb.greenplum.v1.Host.Health
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_greenplum_v1_host_proto_init() }
func file_yandex_cloud_mdb_greenplum_v1_host_proto_init() {
	if File_yandex_cloud_mdb_greenplum_v1_host_proto != nil {
		return
	}
	file_yandex_cloud_mdb_greenplum_v1_config_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDesc), len(file_yandex_cloud_mdb_greenplum_v1_host_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_greenplum_v1_host_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_greenplum_v1_host_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_mdb_greenplum_v1_host_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_mdb_greenplum_v1_host_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_greenplum_v1_host_proto = out.File
	file_yandex_cloud_mdb_greenplum_v1_host_proto_goTypes = nil
	file_yandex_cloud_mdb_greenplum_v1_host_proto_depIdxs = nil
}
