// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.4
// 	protoc        v5.29.0
// source: kernel/matcher.proto

package kernel

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	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)
)

// MatchType is the matching methods of string or bytes data.
// See https://pkg.go.dev/strings for string matching, https://pkg.go.dev/bytes for bytes matching.
// https://pkg.go.dev/regexp and https://pkg.go.dev/regexp/syntax for regular expression matching.
type MatchType int32

const (
	// Exact is the exact matching method type.
	MatchType_Exact MatchType = 0
	// Prefix is the prefix matching method type.
	// See https://pkg.go.dev/strings#HasPrefix for string matching.
	// See https://pkg.go.dev/bytes#HasPrefix for bytes matching.
	MatchType_Prefix MatchType = 1
	// Suffix is the suffix matching method type.
	// See https://pkg.go.dev/strings#HasSuffix for string matching.
	// See https://pkg.go.dev/bytes#HasSuffix for bytes matching.
	MatchType_Suffix MatchType = 2
	// Contains is the containing matching method type.
	// See https://pkg.go.dev/strings#Contains for string matching.
	// See https://pkg.go.dev/bytes#Contains for bytes matching.
	MatchType_Contains MatchType = 3
	// Path is the path matching method type.
	// See https://pkg.go.dev/path#Match for string and bytes matching.
	MatchType_Path MatchType = 4
	// FilePath is the file path matching method type.
	// See https://pkg.go.dev/path/filepath#Match for string and bytes matching.
	MatchType_FilePath MatchType = 5
	// Regex is the regular expression matching method type.
	// See  https://pkg.go.dev/regexp#Match and https://pkg.go.dev/regexp/syntax
	// for string and bytes matching.
	MatchType_Regex MatchType = 6
	// RegexPOSIX is the POSIX regular expression matching method type.
	// See  https://pkg.go.dev/regexp#Match and https://pkg.go.dev/regexp/syntax
	// for string and bytes matching.
	MatchType_RegexPOSIX MatchType = 7
)

// Enum value maps for MatchType.
var (
	MatchType_name = map[int32]string{
		0: "Exact",
		1: "Prefix",
		2: "Suffix",
		3: "Contains",
		4: "Path",
		5: "FilePath",
		6: "Regex",
		7: "RegexPOSIX",
	}
	MatchType_value = map[string]int32{
		"Exact":      0,
		"Prefix":     1,
		"Suffix":     2,
		"Contains":   3,
		"Path":       4,
		"FilePath":   5,
		"Regex":      6,
		"RegexPOSIX": 7,
	}
)

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

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

func (MatchType) Descriptor() protoreflect.EnumDescriptor {
	return file_kernel_matcher_proto_enumTypes[0].Descriptor()
}

func (MatchType) Type() protoreflect.EnumType {
	return &file_kernel_matcher_proto_enumTypes[0]
}

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

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

// MatcherSpec is the string or bytes matching specification.
type MatcherSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// [OPTIONAL]
	// Patterns is the list of matching patterns.
	// Values must have appropriate expressions for the specified match type.
	// Default is not set.
	Patterns []string `protobuf:"bytes,1,rep,name=Patterns,json=patterns,proto3" json:"Patterns,omitempty"`
	// [OPTIONAL]
	// MatchType is the matching method type.
	// Default is [Exact].
	MatchType     MatchType `protobuf:"varint,2,opt,name=MatchType,json=matchType,proto3,enum=kernel.MatchType" json:"MatchType,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MatcherSpec) ProtoMessage() {}

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

func (x *MatcherSpec) GetPatterns() []string {
	if x != nil {
		return x.Patterns
	}
	return nil
}

func (x *MatcherSpec) GetMatchType() MatchType {
	if x != nil {
		return x.MatchType
	}
	return MatchType_Exact
}

var File_kernel_matcher_proto protoreflect.FileDescriptor

var file_kernel_matcher_proto_rawDesc = string([]byte{
	0x0a, 0x14, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x1a, 0x1b,
	0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c,
	0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x0b, 0x4d,
	0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x24, 0x0a, 0x08, 0x50, 0x61,
	0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x08, 0xba, 0x48,
	0x05, 0x92, 0x01, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73,
	0x12, 0x2f, 0x0a, 0x09, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
	0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2e, 0x4d, 0x61, 0x74,
	0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70,
	0x65, 0x2a, 0x6f, 0x0a, 0x09, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09,
	0x0a, 0x05, 0x45, 0x78, 0x61, 0x63, 0x74, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x72, 0x65,
	0x66, 0x69, 0x78, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x10,
	0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x10, 0x03, 0x12,
	0x08, 0x0a, 0x04, 0x50, 0x61, 0x74, 0x68, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x69, 0x6c,
	0x65, 0x50, 0x61, 0x74, 0x68, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78,
	0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x65, 0x78, 0x50, 0x4f, 0x53, 0x49, 0x58,
	0x10, 0x07, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
	0x2f, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
	0x2f, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
	0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x33,
})

var (
	file_kernel_matcher_proto_rawDescOnce sync.Once
	file_kernel_matcher_proto_rawDescData []byte
)

func file_kernel_matcher_proto_rawDescGZIP() []byte {
	file_kernel_matcher_proto_rawDescOnce.Do(func() {
		file_kernel_matcher_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kernel_matcher_proto_rawDesc), len(file_kernel_matcher_proto_rawDesc)))
	})
	return file_kernel_matcher_proto_rawDescData
}

var file_kernel_matcher_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_kernel_matcher_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_kernel_matcher_proto_goTypes = []any{
	(MatchType)(0),      // 0: kernel.MatchType
	(*MatcherSpec)(nil), // 1: kernel.MatcherSpec
}
var file_kernel_matcher_proto_depIdxs = []int32{
	0, // 0: kernel.MatcherSpec.MatchType:type_name -> kernel.MatchType
	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_kernel_matcher_proto_init() }
func file_kernel_matcher_proto_init() {
	if File_kernel_matcher_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_kernel_matcher_proto_rawDesc), len(file_kernel_matcher_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_kernel_matcher_proto_goTypes,
		DependencyIndexes: file_kernel_matcher_proto_depIdxs,
		EnumInfos:         file_kernel_matcher_proto_enumTypes,
		MessageInfos:      file_kernel_matcher_proto_msgTypes,
	}.Build()
	File_kernel_matcher_proto = out.File
	file_kernel_matcher_proto_goTypes = nil
	file_kernel_matcher_proto_depIdxs = nil
}
