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

package elasticsearch

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

const (
	AuthProvider_TYPE_UNSPECIFIED AuthProvider_Type = 0
	AuthProvider_NATIVE           AuthProvider_Type = 1
	AuthProvider_SAML             AuthProvider_Type = 2
)

// Enum value maps for AuthProvider_Type.
var (
	AuthProvider_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "NATIVE",
		2: "SAML",
	}
	AuthProvider_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"NATIVE":           1,
		"SAML":             2,
	}
)

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

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

func (AuthProvider_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_enumTypes[0].Descriptor()
}

func (AuthProvider_Type) Type() protoreflect.EnumType {
	return &file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_enumTypes[0]
}

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

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

type AuthProviders struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Providers     []*AuthProvider        `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AuthProviders) ProtoMessage() {}

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

func (x *AuthProviders) GetProviders() []*AuthProvider {
	if x != nil {
		return x.Providers
	}
	return nil
}

type AuthProvider struct {
	state   protoimpl.MessageState `protogen:"open.v1"`
	Type    AuthProvider_Type      `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.mdb.elasticsearch.v1.AuthProvider_Type" json:"type,omitempty"`
	Name    string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Order   int64                  `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"`
	Enabled bool                   `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// selector ui settings
	Hidden      bool   `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Hint        string `protobuf:"bytes,7,opt,name=hint,proto3" json:"hint,omitempty"`
	Icon        string `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"`
	// Types that are valid to be assigned to Settings:
	//
	//	*AuthProvider_Saml
	Settings      isAuthProvider_Settings `protobuf_oneof:"settings"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AuthProvider) ProtoMessage() {}

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

func (x *AuthProvider) GetType() AuthProvider_Type {
	if x != nil {
		return x.Type
	}
	return AuthProvider_TYPE_UNSPECIFIED
}

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

func (x *AuthProvider) GetOrder() int64 {
	if x != nil {
		return x.Order
	}
	return 0
}

func (x *AuthProvider) GetEnabled() bool {
	if x != nil {
		return x.Enabled
	}
	return false
}

func (x *AuthProvider) GetHidden() bool {
	if x != nil {
		return x.Hidden
	}
	return false
}

func (x *AuthProvider) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *AuthProvider) GetHint() string {
	if x != nil {
		return x.Hint
	}
	return ""
}

func (x *AuthProvider) GetIcon() string {
	if x != nil {
		return x.Icon
	}
	return ""
}

func (x *AuthProvider) GetSettings() isAuthProvider_Settings {
	if x != nil {
		return x.Settings
	}
	return nil
}

func (x *AuthProvider) GetSaml() *SamlSettings {
	if x != nil {
		if x, ok := x.Settings.(*AuthProvider_Saml); ok {
			return x.Saml
		}
	}
	return nil
}

type isAuthProvider_Settings interface {
	isAuthProvider_Settings()
}

type AuthProvider_Saml struct {
	Saml *SamlSettings `protobuf:"bytes,9,opt,name=saml,proto3,oneof"`
}

func (*AuthProvider_Saml) isAuthProvider_Settings() {}

type SamlSettings struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	IdpEntityId        string                 `protobuf:"bytes,1,opt,name=idp_entity_id,json=idpEntityId,proto3" json:"idp_entity_id,omitempty"`
	IdpMetadataFile    []byte                 `protobuf:"bytes,2,opt,name=idp_metadata_file,json=idpMetadataFile,proto3" json:"idp_metadata_file,omitempty"`
	SpEntityId         string                 `protobuf:"bytes,3,opt,name=sp_entity_id,json=spEntityId,proto3" json:"sp_entity_id,omitempty"`
	KibanaUrl          string                 `protobuf:"bytes,4,opt,name=kibana_url,json=kibanaUrl,proto3" json:"kibana_url,omitempty"`
	AttributePrincipal string                 `protobuf:"bytes,5,opt,name=attribute_principal,json=attributePrincipal,proto3" json:"attribute_principal,omitempty"`
	AttributeGroups    string                 `protobuf:"bytes,6,opt,name=attribute_groups,json=attributeGroups,proto3" json:"attribute_groups,omitempty"`
	AttributeName      string                 `protobuf:"bytes,7,opt,name=attribute_name,json=attributeName,proto3" json:"attribute_name,omitempty"`
	AttributeEmail     string                 `protobuf:"bytes,8,opt,name=attribute_email,json=attributeEmail,proto3" json:"attribute_email,omitempty"`
	AttributeDn        string                 `protobuf:"bytes,9,opt,name=attribute_dn,json=attributeDn,proto3" json:"attribute_dn,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*SamlSettings) ProtoMessage() {}

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

func (x *SamlSettings) GetIdpEntityId() string {
	if x != nil {
		return x.IdpEntityId
	}
	return ""
}

func (x *SamlSettings) GetIdpMetadataFile() []byte {
	if x != nil {
		return x.IdpMetadataFile
	}
	return nil
}

func (x *SamlSettings) GetSpEntityId() string {
	if x != nil {
		return x.SpEntityId
	}
	return ""
}

func (x *SamlSettings) GetKibanaUrl() string {
	if x != nil {
		return x.KibanaUrl
	}
	return ""
}

func (x *SamlSettings) GetAttributePrincipal() string {
	if x != nil {
		return x.AttributePrincipal
	}
	return ""
}

func (x *SamlSettings) GetAttributeGroups() string {
	if x != nil {
		return x.AttributeGroups
	}
	return ""
}

func (x *SamlSettings) GetAttributeName() string {
	if x != nil {
		return x.AttributeName
	}
	return ""
}

func (x *SamlSettings) GetAttributeEmail() string {
	if x != nil {
		return x.AttributeEmail
	}
	return ""
}

func (x *SamlSettings) GetAttributeDn() string {
	if x != nil {
		return x.AttributeDn
	}
	return ""
}

var File_yandex_cloud_mdb_elasticsearch_v1_auth_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDesc = "" +
	"\n" +
	",yandex/cloud/mdb/elasticsearch/v1/auth.proto\x12!yandex.cloud.mdb.elasticsearch.v1\x1a\x1dyandex/cloud/validation.proto\"^\n" +
	"\rAuthProviders\x12M\n" +
	"\tproviders\x18\x01 \x03(\v2/.yandex.cloud.mdb.elasticsearch.v1.AuthProviderR\tproviders\"\xc3\x03\n" +
	"\fAuthProvider\x12H\n" +
	"\x04type\x18\x01 \x01(\x0e24.yandex.cloud.mdb.elasticsearch.v1.AuthProvider.TypeR\x04type\x120\n" +
	"\x04name\x18\x02 \x01(\tB\x1c\xf2\xc71\x10[a-z][a-z0-9_-]*\x8a\xc81\x04<=50R\x04name\x12\x14\n" +
	"\x05order\x18\x03 \x01(\x03R\x05order\x12\x18\n" +
	"\aenabled\x18\x04 \x01(\bR\aenabled\x12\x16\n" +
	"\x06hidden\x18\x05 \x01(\bR\x06hidden\x12*\n" +
	"\vdescription\x18\x06 \x01(\tB\b\x8a\xc81\x04<=50R\vdescription\x12\x1d\n" +
	"\x04hint\x18\a \x01(\tB\t\x8a\xc81\x05<=250R\x04hint\x12\x1d\n" +
	"\x04icon\x18\b \x01(\tB\t\x8a\xc81\x05<=250R\x04icon\x12E\n" +
	"\x04saml\x18\t \x01(\v2/.yandex.cloud.mdb.elasticsearch.v1.SamlSettingsH\x00R\x04saml\"2\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06NATIVE\x10\x01\x12\b\n" +
	"\x04SAML\x10\x02B\n" +
	"\n" +
	"\bsettings\"\xce\x03\n" +
	"\fSamlSettings\x12-\n" +
	"\ridp_entity_id\x18\x01 \x01(\tB\t\x8a\xc81\x05<=250R\vidpEntityId\x127\n" +
	"\x11idp_metadata_file\x18\x02 \x01(\fB\v\x8a\xc81\a<=10000R\x0fidpMetadataFile\x12+\n" +
	"\fsp_entity_id\x18\x03 \x01(\tB\t\x8a\xc81\x05<=250R\n" +
	"spEntityId\x12(\n" +
	"\n" +
	"kibana_url\x18\x04 \x01(\tB\t\x8a\xc81\x05<=250R\tkibanaUrl\x129\n" +
	"\x13attribute_principal\x18\x05 \x01(\tB\b\x8a\xc81\x04<=50R\x12attributePrincipal\x123\n" +
	"\x10attribute_groups\x18\x06 \x01(\tB\b\x8a\xc81\x04<=50R\x0fattributeGroups\x12/\n" +
	"\x0eattribute_name\x18\a \x01(\tB\b\x8a\xc81\x04<=50R\rattributeName\x121\n" +
	"\x0fattribute_email\x18\b \x01(\tB\b\x8a\xc81\x04<=50R\x0eattributeEmail\x12+\n" +
	"\fattribute_dn\x18\t \x01(\tB\b\x8a\xc81\x04<=50R\vattributeDnB|\n" +
	"%yandex.cloud.api.mdb.elasticsearch.v1ZSgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/elasticsearch/v1;elasticsearchb\x06proto3"

var (
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDesc), len(file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDescData
}

var file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_goTypes = []any{
	(AuthProvider_Type)(0), // 0: yandex.cloud.mdb.elasticsearch.v1.AuthProvider.Type
	(*AuthProviders)(nil),  // 1: yandex.cloud.mdb.elasticsearch.v1.AuthProviders
	(*AuthProvider)(nil),   // 2: yandex.cloud.mdb.elasticsearch.v1.AuthProvider
	(*SamlSettings)(nil),   // 3: yandex.cloud.mdb.elasticsearch.v1.SamlSettings
}
var file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.mdb.elasticsearch.v1.AuthProviders.providers:type_name -> yandex.cloud.mdb.elasticsearch.v1.AuthProvider
	0, // 1: yandex.cloud.mdb.elasticsearch.v1.AuthProvider.type:type_name -> yandex.cloud.mdb.elasticsearch.v1.AuthProvider.Type
	3, // 2: yandex.cloud.mdb.elasticsearch.v1.AuthProvider.saml:type_name -> yandex.cloud.mdb.elasticsearch.v1.SamlSettings
	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_elasticsearch_v1_auth_proto_init() }
func file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_init() {
	if File_yandex_cloud_mdb_elasticsearch_v1_auth_proto != nil {
		return
	}
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_msgTypes[1].OneofWrappers = []any{
		(*AuthProvider_Saml)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDesc), len(file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_elasticsearch_v1_auth_proto = out.File
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_goTypes = nil
	file_yandex_cloud_mdb_elasticsearch_v1_auth_proto_depIdxs = nil
}
