// 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/opensearch.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 OpenSearchCluster_Host_GroupRole int32

const (
	OpenSearchCluster_Host_GROUP_ROLE_UNSPECIFIED OpenSearchCluster_Host_GroupRole = 0
	OpenSearchCluster_Host_DATA                   OpenSearchCluster_Host_GroupRole = 1
	OpenSearchCluster_Host_MANAGER                OpenSearchCluster_Host_GroupRole = 2
)

// Enum value maps for OpenSearchCluster_Host_GroupRole.
var (
	OpenSearchCluster_Host_GroupRole_name = map[int32]string{
		0: "GROUP_ROLE_UNSPECIFIED",
		1: "DATA",
		2: "MANAGER",
	}
	OpenSearchCluster_Host_GroupRole_value = map[string]int32{
		"GROUP_ROLE_UNSPECIFIED": 0,
		"DATA":                   1,
		"MANAGER":                2,
	}
)

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

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

func (OpenSearchCluster_Host_GroupRole) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes[0].Descriptor()
}

func (OpenSearchCluster_Host_GroupRole) Type() protoreflect.EnumType {
	return &file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes[0]
}

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

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

type OpenSearchCluster_Host_Health int32

const (
	OpenSearchCluster_Host_HEALTH_UNSPECIFIED OpenSearchCluster_Host_Health = 0
	OpenSearchCluster_Host_ALIVE              OpenSearchCluster_Host_Health = 1
	OpenSearchCluster_Host_DEAD               OpenSearchCluster_Host_Health = 2
	OpenSearchCluster_Host_DEGRADED           OpenSearchCluster_Host_Health = 3
	OpenSearchCluster_Host_READONLY           OpenSearchCluster_Host_Health = 4
)

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

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

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

func (OpenSearchCluster_Host_Health) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes[1].Descriptor()
}

func (OpenSearchCluster_Host_Health) Type() protoreflect.EnumType {
	return &file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes[1]
}

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

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

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

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

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

func (*OpenSearchAuth) ProtoMessage() {}

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

func (x *OpenSearchAuth) GetSecurity() isOpenSearchAuth_Security {
	if x != nil {
		return x.Security
	}
	return nil
}

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

type isOpenSearchAuth_Security interface {
	isOpenSearchAuth_Security()
}

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

func (*OpenSearchAuth_UserPassword) isOpenSearchAuth_Security() {}

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

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

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

func (*OpenSearchCluster) ProtoMessage() {}

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

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

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

type OpenSearchConnection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// When creating/updating Connection, the field "cluster" is mutually
	// exclusive with "managed_cluster_id".
	Cluster *OpenSearchCluster `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             *OpenSearchAuth `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*OpenSearchConnection) ProtoMessage() {}

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

func (x *OpenSearchConnection) GetCluster() *OpenSearchCluster {
	if x != nil {
		return x.Cluster
	}
	return nil
}

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

func (x *OpenSearchConnection) GetAuth() *OpenSearchAuth {
	if x != nil {
		return x.Auth
	}
	return nil
}

type OpenSearchCluster_Host struct {
	state         protoimpl.MessageState             `protogen:"open.v1"`
	Host          string                             `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	Port          int64                              `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	Health        OpenSearchCluster_Host_Health      `protobuf:"varint,6,opt,name=health,proto3,enum=yandex.cloud.connectionmanager.v1.OpenSearchCluster_Host_Health" json:"health,omitempty"`
	Roles         []OpenSearchCluster_Host_GroupRole `protobuf:"varint,7,rep,packed,name=roles,proto3,enum=yandex.cloud.connectionmanager.v1.OpenSearchCluster_Host_GroupRole" json:"roles,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*OpenSearchCluster_Host) ProtoMessage() {}

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

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

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

func (x *OpenSearchCluster_Host) GetHealth() OpenSearchCluster_Host_Health {
	if x != nil {
		return x.Health
	}
	return OpenSearchCluster_Host_HEALTH_UNSPECIFIED
}

func (x *OpenSearchCluster_Host) GetRoles() []OpenSearchCluster_Host_GroupRole {
	if x != nil {
		return x.Roles
	}
	return nil
}

var File_yandex_cloud_connectionmanager_v1_opensearch_proto protoreflect.FileDescriptor

const file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDesc = "" +
	"\n" +
	"2yandex/cloud/connectionmanager/v1/opensearch.proto\x12!yandex.cloud.connectionmanager.v1\x1a.yandex/cloud/connectionmanager/v1/common.proto\"x\n" +
	"\x0eOpenSearchAuth\x12Z\n" +
	"\ruser_password\x18\x01 \x01(\v23.yandex.cloud.connectionmanager.v1.UserPasswordAuthH\x00R\fuserPasswordB\n" +
	"\n" +
	"\bsecurity\"\xbc\x04\n" +
	"\x11OpenSearchCluster\x12O\n" +
	"\x05hosts\x18\x01 \x03(\v29.yandex.cloud.connectionmanager.v1.OpenSearchCluster.HostR\x05hosts\x12K\n" +
	"\n" +
	"tls_params\x18\x02 \x01(\v2,.yandex.cloud.connectionmanager.v1.TLSParamsR\ttlsParams\x1a\x88\x03\n" +
	"\x04Host\x12\x12\n" +
	"\x04host\x18\x03 \x01(\tR\x04host\x12\x12\n" +
	"\x04port\x18\x04 \x01(\x03R\x04port\x12X\n" +
	"\x06health\x18\x06 \x01(\x0e2@.yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.HealthR\x06health\x12Y\n" +
	"\x05roles\x18\a \x03(\x0e2C.yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.GroupRoleR\x05roles\">\n" +
	"\tGroupRole\x12\x1a\n" +
	"\x16GROUP_ROLE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04DATA\x10\x01\x12\v\n" +
	"\aMANAGER\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\x03J\x04\b\x05\x10\x06\"\xe1\x01\n" +
	"\x14OpenSearchConnection\x12N\n" +
	"\acluster\x18\x01 \x01(\v24.yandex.cloud.connectionmanager.v1.OpenSearchClusterR\acluster\x12,\n" +
	"\x12managed_cluster_id\x18\x02 \x01(\tR\x10managedClusterId\x12E\n" +
	"\x04auth\x18\x04 \x01(\v21.yandex.cloud.connectionmanager.v1.OpenSearchAuthR\x04authJ\x04\b\x03\x10\x04B\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_opensearch_proto_rawDescOnce sync.Once
	file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDescData []byte
)

func file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDescGZIP() []byte {
	file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDesc)))
	})
	return file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDescData
}

var file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_connectionmanager_v1_opensearch_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_connectionmanager_v1_opensearch_proto_goTypes = []any{
	(OpenSearchCluster_Host_GroupRole)(0), // 0: yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.GroupRole
	(OpenSearchCluster_Host_Health)(0),    // 1: yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.Health
	(*OpenSearchAuth)(nil),                // 2: yandex.cloud.connectionmanager.v1.OpenSearchAuth
	(*OpenSearchCluster)(nil),             // 3: yandex.cloud.connectionmanager.v1.OpenSearchCluster
	(*OpenSearchConnection)(nil),          // 4: yandex.cloud.connectionmanager.v1.OpenSearchConnection
	(*OpenSearchCluster_Host)(nil),        // 5: yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host
	(*UserPasswordAuth)(nil),              // 6: yandex.cloud.connectionmanager.v1.UserPasswordAuth
	(*TLSParams)(nil),                     // 7: yandex.cloud.connectionmanager.v1.TLSParams
}
var file_yandex_cloud_connectionmanager_v1_opensearch_proto_depIdxs = []int32{
	6, // 0: yandex.cloud.connectionmanager.v1.OpenSearchAuth.user_password:type_name -> yandex.cloud.connectionmanager.v1.UserPasswordAuth
	5, // 1: yandex.cloud.connectionmanager.v1.OpenSearchCluster.hosts:type_name -> yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host
	7, // 2: yandex.cloud.connectionmanager.v1.OpenSearchCluster.tls_params:type_name -> yandex.cloud.connectionmanager.v1.TLSParams
	3, // 3: yandex.cloud.connectionmanager.v1.OpenSearchConnection.cluster:type_name -> yandex.cloud.connectionmanager.v1.OpenSearchCluster
	2, // 4: yandex.cloud.connectionmanager.v1.OpenSearchConnection.auth:type_name -> yandex.cloud.connectionmanager.v1.OpenSearchAuth
	1, // 5: yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.health:type_name -> yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.Health
	0, // 6: yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.roles:type_name -> yandex.cloud.connectionmanager.v1.OpenSearchCluster.Host.GroupRole
	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_opensearch_proto_init() }
func file_yandex_cloud_connectionmanager_v1_opensearch_proto_init() {
	if File_yandex_cloud_connectionmanager_v1_opensearch_proto != nil {
		return
	}
	file_yandex_cloud_connectionmanager_v1_common_proto_init()
	file_yandex_cloud_connectionmanager_v1_opensearch_proto_msgTypes[0].OneofWrappers = []any{
		(*OpenSearchAuth_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_opensearch_proto_rawDesc), len(file_yandex_cloud_connectionmanager_v1_opensearch_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_connectionmanager_v1_opensearch_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_connectionmanager_v1_opensearch_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_connectionmanager_v1_opensearch_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_connectionmanager_v1_opensearch_proto_msgTypes,
	}.Build()
	File_yandex_cloud_connectionmanager_v1_opensearch_proto = out.File
	file_yandex_cloud_connectionmanager_v1_opensearch_proto_goTypes = nil
	file_yandex_cloud_connectionmanager_v1_opensearch_proto_depIdxs = nil
}
