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

package smartwebsecurity

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 RuleSetDescriptor struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the rule set
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Version of the rule set
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// ID of the rule set
	Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// List of rules
	Rules         []*RuleSetDescriptor_RuleDescription `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RuleSetDescriptor) ProtoMessage() {}

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

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

func (x *RuleSetDescriptor) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

func (x *RuleSetDescriptor) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *RuleSetDescriptor) GetRules() []*RuleSetDescriptor_RuleDescription {
	if x != nil {
		return x.Rules
	}
	return nil
}

type RuleSetDescriptor_RuleDescription struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the rule
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Numeric anomaly value, i.e., a potential attack indicator.
	// The higher this value, the more likely it is that the request that satisfies the rule is an attack.
	// See [documentation](/docs/smartwebsecurity/concepts/waf#anomaly).
	AnomalyScore int64 `protobuf:"varint,8,opt,name=anomaly_score,json=anomalyScore,proto3" json:"anomaly_score,omitempty"`
	// Paranoia level classifies rules according to their aggression.
	// The higher the paranoia level, the better your protection, but also the higher the probability of WAF false positives.
	// See [documentation](/docs/smartwebsecurity/concepts/waf#paranoia).
	ParanoiaLevel int64 `protobuf:"varint,9,opt,name=paranoia_level,json=paranoiaLevel,proto3" json:"paranoia_level,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RuleSetDescriptor_RuleDescription) ProtoMessage() {}

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

func (x *RuleSetDescriptor_RuleDescription) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *RuleSetDescriptor_RuleDescription) GetAnomalyScore() int64 {
	if x != nil {
		return x.AnomalyScore
	}
	return 0
}

func (x *RuleSetDescriptor_RuleDescription) GetParanoiaLevel() int64 {
	if x != nil {
		return x.ParanoiaLevel
	}
	return 0
}

var File_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto protoreflect.FileDescriptor

const file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDesc = "" +
	"\n" +
	">yandex/cloud/smartwebsecurity/v1/waf/rule_set_descriptor.proto\x12$yandex.cloud.smartwebsecurity.v1.waf\x1a\x1dyandex/cloud/validation.proto\"\xdc\x02\n" +
	"\x11RuleSetDescriptor\x12\x18\n" +
	"\x04name\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\x04name\x12\x1e\n" +
	"\aversion\x18\x02 \x01(\tB\x04\xe8\xc71\x01R\aversion\x12\x14\n" +
	"\x02id\x18\x03 \x01(\tB\x04\xe8\xc71\x01R\x02id\x12]\n" +
	"\x05rules\x18\x04 \x03(\v2G.yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor.RuleDescriptionR\x05rules\x1a\x97\x01\n" +
	"\x0fRuleDescription\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12#\n" +
	"\ranomaly_score\x18\b \x01(\x03R\fanomalyScore\x12%\n" +
	"\x0eparanoia_level\x18\t \x01(\x03R\rparanoiaLevelJ\x04\b\x02\x10\x03J\x04\b\x03\x10\x04J\x04\b\x04\x10\x05J\x04\b\x05\x10\x06J\x04\b\x06\x10\aJ\x04\b\a\x10\bJ\x04\b\n" +
	"\x10\vB\x85\x01\n" +
	"(yandex.cloud.api.smartwebsecurity.v1.wafZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/smartwebsecurity/v1/waf;smartwebsecurityb\x06proto3"

var (
	file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescOnce sync.Once
	file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescData []byte
)

func file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescGZIP() []byte {
	file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDesc), len(file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDesc)))
	})
	return file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDescData
}

var file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_goTypes = []any{
	(*RuleSetDescriptor)(nil),                 // 0: yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor
	(*RuleSetDescriptor_RuleDescription)(nil), // 1: yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor.RuleDescription
}
var file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor.rules:type_name -> yandex.cloud.smartwebsecurity.v1.waf.RuleSetDescriptor.RuleDescription
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_init() }
func file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_init() {
	if File_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_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_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDesc), len(file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_msgTypes,
	}.Build()
	File_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto = out.File
	file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_goTypes = nil
	file_yandex_cloud_smartwebsecurity_v1_waf_rule_set_descriptor_proto_depIdxs = nil
}
