// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/connectionmanager/v1/mysql.proto

package connectionmanager

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

const (
	MySQLCluster_Host_ROLE_UNSPECIFIED MySQLCluster_Host_Role = 0
	MySQLCluster_Host_MASTER           MySQLCluster_Host_Role = 1
	MySQLCluster_Host_REPLICA          MySQLCluster_Host_Role = 2
)

// Enum value maps for MySQLCluster_Host_Role.
var (
	MySQLCluster_Host_Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "MASTER",
		2: "REPLICA",
	}
	MySQLCluster_Host_Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"MASTER":           1,
		"REPLICA":          2,
	}
)

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

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

func (MySQLCluster_Host_Role) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes[0].Descriptor()
}

func (MySQLCluster_Host_Role) Type() protoreflect.EnumType {
	return &file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes[0]
}

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

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

type MySQLCluster_Host_Health int32

const (
	MySQLCluster_Host_HEALTH_UNSPECIFIED MySQLCluster_Host_Health = 0
	MySQLCluster_Host_ALIVE              MySQLCluster_Host_Health = 1
	MySQLCluster_Host_DEAD               MySQLCluster_Host_Health = 2
	MySQLCluster_Host_DEGRADED           MySQLCluster_Host_Health = 3
	MySQLCluster_Host_READONLY           MySQLCluster_Host_Health = 4
)

// Enum value maps for MySQLCluster_Host_Health.
var (
	MySQLCluster_Host_Health_name = map[int32]string{
		0: "HEALTH_UNSPECIFIED",
		1: "ALIVE",
		2: "DEAD",
		3: "DEGRADED",
		4: "READONLY",
	}
	MySQLCluster_Host_Health_value = map[string]int32{
		"HEALTH_UNSPECIFIED": 0,
		"ALIVE":              1,
		"DEAD":               2,
		"DEGRADED":           3,
		"READONLY":           4,
	}
)

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

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

func (MySQLCluster_Host_Health) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes[1].Descriptor()
}

func (MySQLCluster_Host_Health) Type() protoreflect.EnumType {
	return &file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes[1]
}

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

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

type MySQLAuth struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Security:
	//
	//	*MySQLAuth_UserPassword
	Security      isMySQLAuth_Security `protobuf_oneof:"security"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MySQLAuth) ProtoMessage() {}

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

func (x *MySQLAuth) GetSecurity() isMySQLAuth_Security {
	if x != nil {
		return x.Security
	}
	return nil
}

func (x *MySQLAuth) GetUserPassword() *UserPasswordAuth {
	if x != nil {
		if x, ok := x.Security.(*MySQLAuth_UserPassword); ok {
			return x.UserPassword
		}
	}
	return nil
}

type isMySQLAuth_Security interface {
	isMySQLAuth_Security()
}

type MySQLAuth_UserPassword struct {
	UserPassword *UserPasswordAuth `protobuf:"bytes,1,opt,name=user_password,json=userPassword,proto3,oneof"`
}

func (*MySQLAuth_UserPassword) isMySQLAuth_Security() {}

type MySQLCluster struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Hosts         []*MySQLCluster_Host   `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	TlsParams     *TLSParams             `protobuf:"bytes,3,opt,name=tls_params,json=tlsParams,proto3" json:"tls_params,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MySQLCluster) ProtoMessage() {}

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

func (x *MySQLCluster) GetHosts() []*MySQLCluster_Host {
	if x != nil {
		return x.Hosts
	}
	return nil
}

func (x *MySQLCluster) GetTlsParams() *TLSParams {
	if x != nil {
		return x.TlsParams
	}
	return nil
}

type MySQLConnection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// When creating/updating Connection, the field "cluster" is mutually
	// exclusive with "managed_cluster_id".
	Cluster *MySQLCluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// When creating/updating Connection, the field "managed_cluster_id" is
	// mutually exclusive with "cluster".
	ManagedClusterId string     `protobuf:"bytes,2,opt,name=managed_cluster_id,json=managedClusterId,proto3" json:"managed_cluster_id,omitempty"`
	Auth             *MySQLAuth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	Databases        []string   `protobuf:"bytes,4,rep,name=databases,proto3" json:"databases,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*MySQLConnection) ProtoMessage() {}

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

func (x *MySQLConnection) GetCluster() *MySQLCluster {
	if x != nil {
		return x.Cluster
	}
	return nil
}

func (x *MySQLConnection) GetManagedClusterId() string {
	if x != nil {
		return x.ManagedClusterId
	}
	return ""
}

func (x *MySQLConnection) GetAuth() *MySQLAuth {
	if x != nil {
		return x.Auth
	}
	return nil
}

func (x *MySQLConnection) GetDatabases() []string {
	if x != nil {
		return x.Databases
	}
	return nil
}

type MySQLCluster_Host struct {
	state         protoimpl.MessageState   `protogen:"open.v1"`
	Host          string                   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port          int64                    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Role          MySQLCluster_Host_Role   `protobuf:"varint,3,opt,name=role,proto3,enum=yandex.cloud.connectionmanager.v1.MySQLCluster_Host_Role" json:"role,omitempty"`
	Health        MySQLCluster_Host_Health `protobuf:"varint,4,opt,name=health,proto3,enum=yandex.cloud.connectionmanager.v1.MySQLCluster_Host_Health" json:"health,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MySQLCluster_Host) ProtoMessage() {}

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

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

func (x *MySQLCluster_Host) GetPort() int64 {
	if x != nil {
		return x.Port
	}
	return 0
}

func (x *MySQLCluster_Host) GetRole() MySQLCluster_Host_Role {
	if x != nil {
		return x.Role
	}
	return MySQLCluster_Host_ROLE_UNSPECIFIED
}

func (x *MySQLCluster_Host) GetHealth() MySQLCluster_Host_Health {
	if x != nil {
		return x.Health
	}
	return MySQLCluster_Host_HEALTH_UNSPECIFIED
}

var File_yandex_cloud_connectionmanager_v1_mysql_proto protoreflect.FileDescriptor

const file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/connectionmanager/v1/mysql.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"s\n" +
	"\tMySQLAuth\x12Z\n" +
	"\ruser_password\x18\x01 \x01(\v23.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00R\fuserPasswordB\n" +
	"\n" +
	"\bsecurity\"\x92\x04\n" +
	"\fMySQLCluster\x12J\n" +
	"\x05hosts\x18\x04 \x03(\v24.yandex.cloud.connectionmanager.v1.MySQLCluster.HostR\x05hosts\x12K\n" +
	"\n" +
	"tls_params\x18\x03 \x01(\v2,.yandex.cloud.connectionmanager.v1.TLSParamsR\ttlsParams\x1a\xdc\x02\n" +
	"\x04Host\x12\x12\n" +
	"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
	"\x04port\x18\x02 \x01(\x03R\x04port\x12M\n" +
	"\x04role\x18\x03 \x01(\x0e29.yandex.cloud.connectionmanager.v1.MySQLCluster.Host.RoleR\x04role\x12S\n" +
	"\x06health\x18\x04 \x01(\x0e2;.yandex.cloud.connectionmanager.v1.MySQLCluster.Host.HealthR\x06health\"5\n" +
	"\x04Role\x12\x14\n" +
	"\x10ROLE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06MASTER\x10\x01\x12\v\n" +
	"\aREPLICA\x10\x02\"Q\n" +
	"\x06Health\x12\x16\n" +
	"\x12HEALTH_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05ALIVE\x10\x01\x12\b\n" +
	"\x04DEAD\x10\x02\x12\f\n" +
	"\bDEGRADED\x10\x03\x12\f\n" +
	"\bREADONLY\x10\x04J\x04\b\x01\x10\x02J\x04\b\x02\x10\x03\"\xea\x01\n" +
	"\x0fMySQLConnection\x12I\n" +
	"\acluster\x18\x01 \x01(\v2/.yandex.cloud.connectionmanager.v1.MySQLClusterR\acluster\x12,\n" +
	"\x12managed_cluster_id\x18\x02 \x01(\tR\x10managedClusterId\x12@\n" +
	"\x04auth\x18\x03 \x01(\v2,.yandex.cloud.connectionmanager.v1.MySQLAuthR\x04auth\x12\x1c\n" +
	"\tdatabases\x18\x04 \x03(\tR\tdatabasesB\x80\x01\n" +
	"%yandex.cloud.api.connectionmanager.v1ZWgithub.com/yandex-cloud/go-genproto/yandex/cloud/connectionmanager/v1;connectionmanagerb\x06proto3"

var (
	file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescOnce sync.Once
	file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescData []byte
)

func file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescGZIP() []byte {
	file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDesc)))
	})
	return file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDescData
}

var file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_connectionmanager_v1_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_connectionmanager_v1_mysql_proto_goTypes = []any{
	(MySQLCluster_Host_Role)(0),   // 0: yandex.cloud.connectionmanager.v1.MySQLCluster.Host.Role
	(MySQLCluster_Host_Health)(0), // 1: yandex.cloud.connectionmanager.v1.MySQLCluster.Host.Health
	(*MySQLAuth)(nil),             // 2: yandex.cloud.connectionmanager.v1.MySQLAuth
	(*MySQLCluster)(nil),          // 3: yandex.cloud.connectionmanager.v1.MySQLCluster
	(*MySQLConnection)(nil),       // 4: yandex.cloud.connectionmanager.v1.MySQLConnection
	(*MySQLCluster_Host)(nil),     // 5: yandex.cloud.connectionmanager.v1.MySQLCluster.Host
	(*UserPasswordAuth)(nil),      // 6: yandex.cloud.connectionmanager.v1.UserPasswordAuth
	(*TLSParams)(nil),             // 7: yandex.cloud.connectionmanager.v1.TLSParams
}
var file_yandex_cloud_connectionmanager_v1_mysql_proto_depIdxs = []int32{
	6, // 0: yandex.cloud.connectionmanager.v1.MySQLAuth.user_password:type_name -> yandex.cloud.connectionmanager.v1.UserPasswordAuth
	5, // 1: yandex.cloud.connectionmanager.v1.MySQLCluster.hosts:type_name -> yandex.cloud.connectionmanager.v1.MySQLCluster.Host
	7, // 2: yandex.cloud.connectionmanager.v1.MySQLCluster.tls_params:type_name -> yandex.cloud.connectionmanager.v1.TLSParams
	3, // 3: yandex.cloud.connectionmanager.v1.MySQLConnection.cluster:type_name -> yandex.cloud.connectionmanager.v1.MySQLCluster
	2, // 4: yandex.cloud.connectionmanager.v1.MySQLConnection.auth:type_name -> yandex.cloud.connectionmanager.v1.MySQLAuth
	0, // 5: yandex.cloud.connectionmanager.v1.MySQLCluster.Host.role:type_name -> yandex.cloud.connectionmanager.v1.MySQLCluster.Host.Role
	1, // 6: yandex.cloud.connectionmanager.v1.MySQLCluster.Host.health:type_name -> yandex.cloud.connectionmanager.v1.MySQLCluster.Host.Health
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_connectionmanager_v1_mysql_proto_init() }
func file_yandex_cloud_connectionmanager_v1_mysql_proto_init() {
	if File_yandex_cloud_connectionmanager_v1_mysql_proto != nil {
		return
	}
	file_yandex_cloud_connectionmanager_v1_common_proto_init()
	file_yandex_cloud_connectionmanager_v1_mysql_proto_msgTypes[0].OneofWrappers = []any{
		(*MySQLAuth_UserPassword)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_mysql_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_connectionmanager_v1_mysql_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_connectionmanager_v1_mysql_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_connectionmanager_v1_mysql_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_connectionmanager_v1_mysql_proto_msgTypes,
	}.Build()
	File_yandex_cloud_connectionmanager_v1_mysql_proto = out.File
	file_yandex_cloud_connectionmanager_v1_mysql_proto_goTypes = nil
	file_yandex_cloud_connectionmanager_v1_mysql_proto_depIdxs = nil
}
