// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/mdb/elasticsearch/v1/config/elasticsearch.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"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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)
)

// Elasticsearch 7.x supported configuration options are listed here.
//
// Detailed description for each set of options is available in [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html).
//
// Any options that are not listed here are not supported.
type ElasticsearchConfig7 struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The maximum number of clauses a boolean query can contain.
	//
	// The limit is in place to prevent searches from becoming too large and taking up too much CPU and memory.
	// It affects not only Elasticsearch's `bool` query, but many other queries that are implicitly converted to `bool` query by Elastcsearch.
	//
	// Default value: `1024`.
	//
	// See in-depth description in [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-settings.html).
	MaxClauseCount *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=max_clause_count,json=maxClauseCount,proto3" json:"max_clause_count,omitempty"`
	// The maximum percentage or absolute value (10%, 512mb) of heap space that is allocated to field data cache.
	//
	// All the field values that are placed in this cache, get loaded to memory in order to provide fast document based access to those values.
	// Building the field data cache for a field can be an expensive operations, so its recommended to have enough memory for this cache, and to keep it loaded.
	//
	// Default value: unbounded.
	//
	// See in-depth description in [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-fielddata.html).
	FielddataCacheSize string `protobuf:"bytes,4,opt,name=fielddata_cache_size,json=fielddataCacheSize,proto3" json:"fielddata_cache_size,omitempty"`
	// Remote hosts for reindex have to be explicitly allowed in elasticsearch.yml using the reindex.remote.whitelist property.
	// It can be set to a comma delimited list of allowed remote host and port combinations.
	// Scheme is ignored, only the host and port are used.
	ReindexRemoteWhitelist string `protobuf:"bytes,6,opt,name=reindex_remote_whitelist,json=reindexRemoteWhitelist,proto3" json:"reindex_remote_whitelist,omitempty"`
	// List of paths to PEM encoded certificate files that should be trusted.
	//
	// See in-depth description in [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#reindex-ssl)
	ReindexSslCaPath string `protobuf:"bytes,7,opt,name=reindex_ssl_ca_path,json=reindexSslCaPath,proto3" json:"reindex_ssl_ca_path,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ElasticsearchConfig7) ProtoMessage() {}

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

func (x *ElasticsearchConfig7) GetMaxClauseCount() *wrapperspb.Int64Value {
	if x != nil {
		return x.MaxClauseCount
	}
	return nil
}

func (x *ElasticsearchConfig7) GetFielddataCacheSize() string {
	if x != nil {
		return x.FielddataCacheSize
	}
	return ""
}

func (x *ElasticsearchConfig7) GetReindexRemoteWhitelist() string {
	if x != nil {
		return x.ReindexRemoteWhitelist
	}
	return ""
}

func (x *ElasticsearchConfig7) GetReindexSslCaPath() string {
	if x != nil {
		return x.ReindexSslCaPath
	}
	return ""
}

// Elasticsearch 7.x data node configuration.
type ElasticsearchConfigSet7 struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Effective settings for an Elasticsearch cluster (a combination of settings defined in [user_config] and [default_config]).
	EffectiveConfig *ElasticsearchConfig7 `protobuf:"bytes,1,opt,name=effective_config,json=effectiveConfig,proto3" json:"effective_config,omitempty"`
	// User-defined settings for an Elasticsearch cluster.
	UserConfig *ElasticsearchConfig7 `protobuf:"bytes,2,opt,name=user_config,json=userConfig,proto3" json:"user_config,omitempty"`
	// Default settings for an Elasticsearch cluster.
	DefaultConfig *ElasticsearchConfig7 `protobuf:"bytes,3,opt,name=default_config,json=defaultConfig,proto3" json:"default_config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ElasticsearchConfigSet7) ProtoMessage() {}

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

func (x *ElasticsearchConfigSet7) GetEffectiveConfig() *ElasticsearchConfig7 {
	if x != nil {
		return x.EffectiveConfig
	}
	return nil
}

func (x *ElasticsearchConfigSet7) GetUserConfig() *ElasticsearchConfig7 {
	if x != nil {
		return x.UserConfig
	}
	return nil
}

func (x *ElasticsearchConfigSet7) GetDefaultConfig() *ElasticsearchConfig7 {
	if x != nil {
		return x.DefaultConfig
	}
	return nil
}

var File_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDesc = "" +
	"\n" +
	"<yandex/cloud/mdb/elasticsearch/v1/config/elasticsearch.proto\x12(yandex.cloud.mdb.elasticsearch.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xfe\x01\n" +
	"\x14ElasticsearchConfig7\x12E\n" +
	"\x10max_clause_count\x18\x03 \x01(\v2\x1b.google.protobuf.Int64ValueR\x0emaxClauseCount\x120\n" +
	"\x14fielddata_cache_size\x18\x04 \x01(\tR\x12fielddataCacheSize\x128\n" +
	"\x18reindex_remote_whitelist\x18\x06 \x01(\tR\x16reindexRemoteWhitelist\x12-\n" +
	"\x13reindex_ssl_ca_path\x18\a \x01(\tR\x10reindexSslCaPathJ\x04\b\x05\x10\x06\"\xd2\x02\n" +
	"\x17ElasticsearchConfigSet7\x12o\n" +
	"\x10effective_config\x18\x01 \x01(\v2>.yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7B\x04\xe8\xc71\x01R\x0feffectiveConfig\x12_\n" +
	"\vuser_config\x18\x02 \x01(\v2>.yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7R\n" +
	"userConfig\x12e\n" +
	"\x0edefault_config\x18\x03 \x01(\v2>.yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7R\rdefaultConfigB\x8a\x01\n" +
	",yandex.cloud.api.mdb.elasticsearch.v1.configZZgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/elasticsearch/v1/config;elasticsearchb\x06proto3"

var (
	file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDesc), len(file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDescData
}

var file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_goTypes = []any{
	(*ElasticsearchConfig7)(nil),    // 0: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7
	(*ElasticsearchConfigSet7)(nil), // 1: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7
	(*wrapperspb.Int64Value)(nil),   // 2: google.protobuf.Int64Value
}
var file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7.max_clause_count:type_name -> google.protobuf.Int64Value
	0, // 1: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7.effective_config:type_name -> yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7
	0, // 2: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7.user_config:type_name -> yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7
	0, // 3: yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7.default_config:type_name -> yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfig7
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_init() }
func file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_init() {
	if File_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_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_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDesc), len(file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto = out.File
	file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_goTypes = nil
	file_yandex_cloud_mdb_elasticsearch_v1_config_elasticsearch_proto_depIdxs = nil
}
