// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.5
// 	protoc        (unknown)
// source: agntcy/dir/search/v1/record_query.proto

package v1

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

// Defines a list of supported record query types.
type RecordQueryType int32

const (
	// Unspecified query type.
	RecordQueryType_RECORD_QUERY_TYPE_UNSPECIFIED RecordQueryType = 0
	// Query for a record name.
	// Supports wildcard patterns: "web*", "*service", "api-*-v2", "???api", "agent-[0-9]"
	RecordQueryType_RECORD_QUERY_TYPE_NAME RecordQueryType = 1
	// Query for a record version.
	// Supports wildcard patterns: "v1.*", "v2.*", "*-beta", "v1.0.?", "v[0-9].*"
	RecordQueryType_RECORD_QUERY_TYPE_VERSION RecordQueryType = 2
	// Query for a skill ID.
	// Numeric field - exact match only, no wildcard support.
	RecordQueryType_RECORD_QUERY_TYPE_SKILL_ID RecordQueryType = 3
	// Query for a skill name.
	// Supports wildcard patterns: "python*", "*script", "*machine*learning*", "Pytho?", "[A-M]*"
	RecordQueryType_RECORD_QUERY_TYPE_SKILL_NAME RecordQueryType = 4
	// Query for a locator type.
	// Supports wildcard patterns: "http*", "ftp*", "*docker*", "[hf]tt[ps]*"
	RecordQueryType_RECORD_QUERY_TYPE_LOCATOR RecordQueryType = 5
	// Query for a module.
	// Supports wildcard patterns: "*-plugin", "*-module", "core*", "mod-?", "plugin-[0-9]"
	RecordQueryType_RECORD_QUERY_TYPE_MODULE RecordQueryType = 6
)

// Enum value maps for RecordQueryType.
var (
	RecordQueryType_name = map[int32]string{
		0: "RECORD_QUERY_TYPE_UNSPECIFIED",
		1: "RECORD_QUERY_TYPE_NAME",
		2: "RECORD_QUERY_TYPE_VERSION",
		3: "RECORD_QUERY_TYPE_SKILL_ID",
		4: "RECORD_QUERY_TYPE_SKILL_NAME",
		5: "RECORD_QUERY_TYPE_LOCATOR",
		6: "RECORD_QUERY_TYPE_MODULE",
	}
	RecordQueryType_value = map[string]int32{
		"RECORD_QUERY_TYPE_UNSPECIFIED": 0,
		"RECORD_QUERY_TYPE_NAME":        1,
		"RECORD_QUERY_TYPE_VERSION":     2,
		"RECORD_QUERY_TYPE_SKILL_ID":    3,
		"RECORD_QUERY_TYPE_SKILL_NAME":  4,
		"RECORD_QUERY_TYPE_LOCATOR":     5,
		"RECORD_QUERY_TYPE_MODULE":      6,
	}
)

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

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

func (RecordQueryType) Descriptor() protoreflect.EnumDescriptor {
	return file_agntcy_dir_search_v1_record_query_proto_enumTypes[0].Descriptor()
}

func (RecordQueryType) Type() protoreflect.EnumType {
	return &file_agntcy_dir_search_v1_record_query_proto_enumTypes[0]
}

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

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

// A query to match the record against during discovery.
// For example:
//
//	Exact match:      { type: RECORD_QUERY_TYPE_NAME, value: "my-agent" }
//	Wildcard match:   { type: RECORD_QUERY_TYPE_NAME, value: "web*" }
//	Pattern match:    { type: RECORD_QUERY_TYPE_SKILL_NAME, value: "*machine*learning*" }
//	Question mark:    { type: RECORD_QUERY_TYPE_VERSION, value: "v1.0.?" }
//	List wildcards:   { type: RECORD_QUERY_TYPE_NAME, value: "agent-[0-9]" }
//	Complex match:    { type: RECORD_QUERY_TYPE_LOCATOR, value: "docker-image:https://*.example.com/*" }
type RecordQuery struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The type of the query to match against.
	Type RecordQueryType `protobuf:"varint,1,opt,name=type,proto3,enum=agntcy.dir.search.v1.RecordQueryType" json:"type,omitempty"`
	// The query value to match against.
	// Supports wildcard patterns:
	//
	//	'*' - matches zero or more characters
	//	'?' - matches exactly one character
	//	'[]' - matches any character within brackets (e.g., [0-9], [a-z], [abc])
	Value         string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RecordQuery) ProtoMessage() {}

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

func (x *RecordQuery) GetType() RecordQueryType {
	if x != nil {
		return x.Type
	}
	return RecordQueryType_RECORD_QUERY_TYPE_UNSPECIFIED
}

func (x *RecordQuery) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

var File_agntcy_dir_search_v1_record_query_proto protoreflect.FileDescriptor

var file_agntcy_dir_search_v1_record_query_proto_rawDesc = string([]byte{
	0x0a, 0x27, 0x61, 0x67, 0x6e, 0x74, 0x63, 0x79, 0x2f, 0x64, 0x69, 0x72, 0x2f, 0x73, 0x65, 0x61,
	0x72, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x71, 0x75,
	0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x61, 0x67, 0x6e, 0x74, 0x63,
	0x79, 0x2e, 0x64, 0x69, 0x72, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x22,
	0x5e, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x39,
	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x61,
	0x67, 0x6e, 0x74, 0x63, 0x79, 0x2e, 0x64, 0x69, 0x72, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,
	0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
	0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a,
	0xee, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
	0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55,
	0x45, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
	0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44,
	0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x41, 0x4d, 0x45,
	0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55, 0x45,
	0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10,
	0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55, 0x45, 0x52,
	0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4b, 0x49, 0x4c, 0x4c, 0x5f, 0x49, 0x44, 0x10,
	0x03, 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55, 0x45, 0x52,
	0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4b, 0x49, 0x4c, 0x4c, 0x5f, 0x4e, 0x41, 0x4d,
	0x45, 0x10, 0x04, 0x12, 0x1d, 0x0a, 0x19, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55,
	0x45, 0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, 0x4f, 0x52,
	0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x5f, 0x51, 0x55, 0x45,
	0x52, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x55, 0x4c, 0x45, 0x10, 0x06,
	0x42, 0xc4, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x67, 0x6e, 0x74, 0x63, 0x79, 0x2e,
	0x64, 0x69, 0x72, 0x2e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x52,
	0x65, 0x63, 0x6f, 0x72, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
	0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x67,
	0x6e, 0x74, 0x63, 0x79, 0x2f, 0x64, 0x69, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x61,
	0x72, 0x63, 0x68, 0x2f, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x44, 0x53, 0xaa, 0x02, 0x14, 0x41,
	0x67, 0x6e, 0x74, 0x63, 0x79, 0x2e, 0x44, 0x69, 0x72, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
	0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x41, 0x67, 0x6e, 0x74, 0x63, 0x79, 0x5c, 0x44, 0x69, 0x72,
	0x5c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x41, 0x67, 0x6e,
	0x74, 0x63, 0x79, 0x5c, 0x44, 0x69, 0x72, 0x5c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5c, 0x56,
	0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17,
	0x41, 0x67, 0x6e, 0x74, 0x63, 0x79, 0x3a, 0x3a, 0x44, 0x69, 0x72, 0x3a, 0x3a, 0x53, 0x65, 0x61,
	0x72, 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
})

var (
	file_agntcy_dir_search_v1_record_query_proto_rawDescOnce sync.Once
	file_agntcy_dir_search_v1_record_query_proto_rawDescData []byte
)

func file_agntcy_dir_search_v1_record_query_proto_rawDescGZIP() []byte {
	file_agntcy_dir_search_v1_record_query_proto_rawDescOnce.Do(func() {
		file_agntcy_dir_search_v1_record_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agntcy_dir_search_v1_record_query_proto_rawDesc), len(file_agntcy_dir_search_v1_record_query_proto_rawDesc)))
	})
	return file_agntcy_dir_search_v1_record_query_proto_rawDescData
}

var file_agntcy_dir_search_v1_record_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_agntcy_dir_search_v1_record_query_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_agntcy_dir_search_v1_record_query_proto_goTypes = []any{
	(RecordQueryType)(0), // 0: agntcy.dir.search.v1.RecordQueryType
	(*RecordQuery)(nil),  // 1: agntcy.dir.search.v1.RecordQuery
}
var file_agntcy_dir_search_v1_record_query_proto_depIdxs = []int32{
	0, // 0: agntcy.dir.search.v1.RecordQuery.type:type_name -> agntcy.dir.search.v1.RecordQueryType
	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_agntcy_dir_search_v1_record_query_proto_init() }
func file_agntcy_dir_search_v1_record_query_proto_init() {
	if File_agntcy_dir_search_v1_record_query_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_agntcy_dir_search_v1_record_query_proto_rawDesc), len(file_agntcy_dir_search_v1_record_query_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agntcy_dir_search_v1_record_query_proto_goTypes,
		DependencyIndexes: file_agntcy_dir_search_v1_record_query_proto_depIdxs,
		EnumInfos:         file_agntcy_dir_search_v1_record_query_proto_enumTypes,
		MessageInfos:      file_agntcy_dir_search_v1_record_query_proto_msgTypes,
	}.Build()
	File_agntcy_dir_search_v1_record_query_proto = out.File
	file_agntcy_dir_search_v1_record_query_proto_goTypes = nil
	file_agntcy_dir_search_v1_record_query_proto_depIdxs = nil
}
