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

package opensearch

import (
	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)
)

// OpenSearch audit logs settings.
type AuditLog struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Enables audit logging on changes to a security index, such as changes to roles mappings and role creation or deletion.
	//
	// For details, see [OpenSearch documentation](https://docs.opensearch.org/latest/security/audit-logs/index/#audit-user-account-manipulation).
	ComplianceEnabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=compliance_enabled,json=complianceEnabled,proto3" json:"compliance_enabled,omitempty"`
	// Includes the body of the request (if available) for both REST and the transport layer.
	//
	// For details, see [OpenSearch documentation](https://docs.opensearch.org/latest/security/audit-logs/index/#disable-request-body-logging).
	LogRequestBody *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=log_request_body,json=logRequestBody,proto3" json:"log_request_body,omitempty"`
	// Enables indices data read requests logging.
	LogSearchQueries *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=log_search_queries,json=logSearchQueries,proto3" json:"log_search_queries,omitempty"`
	// Enables indices data write request logging.
	LogDataModifications *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=log_data_modifications,json=logDataModifications,proto3" json:"log_data_modifications,omitempty"`
	// Enables indices metadata requests logging.
	LogIndexMetadataAccess *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=log_index_metadata_access,json=logIndexMetadataAccess,proto3" json:"log_index_metadata_access,omitempty"`
	// Enables monitoring data requests logging.
	LogMonitoringChecks *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=log_monitoring_checks,json=logMonitoringChecks,proto3" json:"log_monitoring_checks,omitempty"`
	// Enables indices maintenance requests logging, such as indices refreshes, flushes and merges.
	LogIndexMaintenance *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=log_index_maintenance,json=logIndexMaintenance,proto3" json:"log_index_maintenance,omitempty"`
	// Enables snapshots and repositories requests logging.
	LogBackupOperations *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=log_backup_operations,json=logBackupOperations,proto3" json:"log_backup_operations,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*AuditLog) ProtoMessage() {}

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

func (x *AuditLog) GetComplianceEnabled() *wrapperspb.BoolValue {
	if x != nil {
		return x.ComplianceEnabled
	}
	return nil
}

func (x *AuditLog) GetLogRequestBody() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogRequestBody
	}
	return nil
}

func (x *AuditLog) GetLogSearchQueries() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogSearchQueries
	}
	return nil
}

func (x *AuditLog) GetLogDataModifications() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogDataModifications
	}
	return nil
}

func (x *AuditLog) GetLogIndexMetadataAccess() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogIndexMetadataAccess
	}
	return nil
}

func (x *AuditLog) GetLogMonitoringChecks() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogMonitoringChecks
	}
	return nil
}

func (x *AuditLog) GetLogIndexMaintenance() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogIndexMaintenance
	}
	return nil
}

func (x *AuditLog) GetLogBackupOperations() *wrapperspb.BoolValue {
	if x != nil {
		return x.LogBackupOperations
	}
	return nil
}

var File_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDesc = "" +
	"\n" +
	"5yandex/cloud/mdb/opensearch/v1/config/audit_log.proto\x12%yandex.cloud.mdb.opensearch.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\"\xfe\x04\n" +
	"\bAuditLog\x12I\n" +
	"\x12compliance_enabled\x18\x01 \x01(\v2\x1a.google.protobuf.BoolValueR\x11complianceEnabled\x12D\n" +
	"\x10log_request_body\x18\x02 \x01(\v2\x1a.google.protobuf.BoolValueR\x0elogRequestBody\x12H\n" +
	"\x12log_search_queries\x18\x03 \x01(\v2\x1a.google.protobuf.BoolValueR\x10logSearchQueries\x12P\n" +
	"\x16log_data_modifications\x18\x04 \x01(\v2\x1a.google.protobuf.BoolValueR\x14logDataModifications\x12U\n" +
	"\x19log_index_metadata_access\x18\x05 \x01(\v2\x1a.google.protobuf.BoolValueR\x16logIndexMetadataAccess\x12N\n" +
	"\x15log_monitoring_checks\x18\x06 \x01(\v2\x1a.google.protobuf.BoolValueR\x13logMonitoringChecks\x12N\n" +
	"\x15log_index_maintenance\x18\a \x01(\v2\x1a.google.protobuf.BoolValueR\x13logIndexMaintenance\x12N\n" +
	"\x15log_backup_operations\x18\b \x01(\v2\x1a.google.protobuf.BoolValueR\x13logBackupOperationsB~\n" +
	"&yandex.cloud.api.api.mdb.opensearch.v1ZTgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/opensearch/v1/config;opensearchb\x06proto3"

var (
	file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDesc), len(file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDescData
}

var file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_goTypes = []any{
	(*AuditLog)(nil),             // 0: yandex.cloud.mdb.opensearch.v1.config.AuditLog
	(*wrapperspb.BoolValue)(nil), // 1: google.protobuf.BoolValue
}
var file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.mdb.opensearch.v1.config.AuditLog.compliance_enabled:type_name -> google.protobuf.BoolValue
	1, // 1: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_request_body:type_name -> google.protobuf.BoolValue
	1, // 2: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_search_queries:type_name -> google.protobuf.BoolValue
	1, // 3: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_data_modifications:type_name -> google.protobuf.BoolValue
	1, // 4: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_index_metadata_access:type_name -> google.protobuf.BoolValue
	1, // 5: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_monitoring_checks:type_name -> google.protobuf.BoolValue
	1, // 6: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_index_maintenance:type_name -> google.protobuf.BoolValue
	1, // 7: yandex.cloud.mdb.opensearch.v1.config.AuditLog.log_backup_operations:type_name -> google.protobuf.BoolValue
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_init() }
func file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_init() {
	if File_yandex_cloud_mdb_opensearch_v1_config_audit_log_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_opensearch_v1_config_audit_log_proto_rawDesc), len(file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto = out.File
	file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_goTypes = nil
	file_yandex_cloud_mdb_opensearch_v1_config_audit_log_proto_depIdxs = nil
}
