// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v6.32.1
// source: query.proto

package pb

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

type QueryResponse_Type int32

const (
	QueryResponse_REGULAR QueryResponse_Type = 0
	QueryResponse_FILE    QueryResponse_Type = 1
)

// Enum value maps for QueryResponse_Type.
var (
	QueryResponse_Type_name = map[int32]string{
		0: "REGULAR",
		1: "FILE",
	}
	QueryResponse_Type_value = map[string]int32{
		"REGULAR": 0,
		"FILE":    1,
	}
)

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

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

func (QueryResponse_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_query_proto_enumTypes[0].Descriptor()
}

func (QueryResponse_Type) Type() protoreflect.EnumType {
	return &file_query_proto_enumTypes[0]
}

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

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

type QueryRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Providers     []string               `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	Query         string                 `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
	Maxresults    int32                  `protobuf:"varint,3,opt,name=maxresults,proto3" json:"maxresults,omitempty"`
	Exactsearch   bool                   `protobuf:"varint,4,opt,name=exactsearch,proto3" json:"exactsearch,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QueryRequest) ProtoMessage() {}

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

func (x *QueryRequest) GetProviders() []string {
	if x != nil {
		return x.Providers
	}
	return nil
}

func (x *QueryRequest) GetQuery() string {
	if x != nil {
		return x.Query
	}
	return ""
}

func (x *QueryRequest) GetMaxresults() int32 {
	if x != nil {
		return x.Maxresults
	}
	return 0
}

func (x *QueryRequest) GetExactsearch() bool {
	if x != nil {
		return x.Exactsearch
	}
	return false
}

type QueryResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Query         string                 `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Item          *QueryResponse_Item    `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
	Qid           int32                  `protobuf:"varint,3,opt,name=qid,proto3" json:"qid,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QueryResponse) ProtoMessage() {}

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

func (x *QueryResponse) GetQuery() string {
	if x != nil {
		return x.Query
	}
	return ""
}

func (x *QueryResponse) GetItem() *QueryResponse_Item {
	if x != nil {
		return x.Item
	}
	return nil
}

func (x *QueryResponse) GetQid() int32 {
	if x != nil {
		return x.Qid
	}
	return 0
}

type QueryResponse_Item struct {
	state         protoimpl.MessageState        `protogen:"open.v1"`
	Identifier    string                        `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Text          string                        `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Subtext       string                        `protobuf:"bytes,3,opt,name=subtext,proto3" json:"subtext,omitempty"`
	Icon          string                        `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	Provider      string                        `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"`
	Score         int32                         `protobuf:"varint,6,opt,name=score,proto3" json:"score,omitempty"`
	Fuzzyinfo     *QueryResponse_Item_FuzzyInfo `protobuf:"bytes,7,opt,name=fuzzyinfo,proto3" json:"fuzzyinfo,omitempty"`
	Type          QueryResponse_Type            `protobuf:"varint,8,opt,name=type,proto3,enum=pb.QueryResponse_Type" json:"type,omitempty"`
	Mimetype      string                        `protobuf:"bytes,9,opt,name=mimetype,proto3" json:"mimetype,omitempty"`
	Preview       string                        `protobuf:"bytes,10,opt,name=preview,proto3" json:"preview,omitempty"`
	PreviewType   string                        `protobuf:"bytes,11,opt,name=preview_type,json=previewType,proto3" json:"preview_type,omitempty"`
	State         []string                      `protobuf:"bytes,12,rep,name=state,proto3" json:"state,omitempty"`
	Actions       []string                      `protobuf:"bytes,13,rep,name=actions,proto3" json:"actions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryResponse_Item) Reset() {
	*x = QueryResponse_Item{}
	mi := &file_query_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*QueryResponse_Item) ProtoMessage() {}

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

func (x *QueryResponse_Item) GetIdentifier() string {
	if x != nil {
		return x.Identifier
	}
	return ""
}

func (x *QueryResponse_Item) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

func (x *QueryResponse_Item) GetSubtext() string {
	if x != nil {
		return x.Subtext
	}
	return ""
}

func (x *QueryResponse_Item) GetIcon() string {
	if x != nil {
		return x.Icon
	}
	return ""
}

func (x *QueryResponse_Item) GetProvider() string {
	if x != nil {
		return x.Provider
	}
	return ""
}

func (x *QueryResponse_Item) GetScore() int32 {
	if x != nil {
		return x.Score
	}
	return 0
}

func (x *QueryResponse_Item) GetFuzzyinfo() *QueryResponse_Item_FuzzyInfo {
	if x != nil {
		return x.Fuzzyinfo
	}
	return nil
}

func (x *QueryResponse_Item) GetType() QueryResponse_Type {
	if x != nil {
		return x.Type
	}
	return QueryResponse_REGULAR
}

func (x *QueryResponse_Item) GetMimetype() string {
	if x != nil {
		return x.Mimetype
	}
	return ""
}

func (x *QueryResponse_Item) GetPreview() string {
	if x != nil {
		return x.Preview
	}
	return ""
}

func (x *QueryResponse_Item) GetPreviewType() string {
	if x != nil {
		return x.PreviewType
	}
	return ""
}

func (x *QueryResponse_Item) GetState() []string {
	if x != nil {
		return x.State
	}
	return nil
}

func (x *QueryResponse_Item) GetActions() []string {
	if x != nil {
		return x.Actions
	}
	return nil
}

type QueryResponse_Item_FuzzyInfo struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Start         int32                  `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	Field         string                 `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	Positions     []int32                `protobuf:"varint,3,rep,packed,name=positions,proto3" json:"positions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *QueryResponse_Item_FuzzyInfo) Reset() {
	*x = QueryResponse_Item_FuzzyInfo{}
	mi := &file_query_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*QueryResponse_Item_FuzzyInfo) ProtoMessage() {}

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

func (x *QueryResponse_Item_FuzzyInfo) GetStart() int32 {
	if x != nil {
		return x.Start
	}
	return 0
}

func (x *QueryResponse_Item_FuzzyInfo) GetField() string {
	if x != nil {
		return x.Field
	}
	return ""
}

func (x *QueryResponse_Item_FuzzyInfo) GetPositions() []int32 {
	if x != nil {
		return x.Positions
	}
	return nil
}

var File_query_proto protoreflect.FileDescriptor

const file_query_proto_rawDesc = "" +
	"\n" +
	"\vquery.proto\x12\x02pb\"\x84\x01\n" +
	"\fQueryRequest\x12\x1c\n" +
	"\tproviders\x18\x01 \x03(\tR\tproviders\x12\x14\n" +
	"\x05query\x18\x02 \x01(\tR\x05query\x12\x1e\n" +
	"\n" +
	"maxresults\x18\x03 \x01(\x05R\n" +
	"maxresults\x12 \n" +
	"\vexactsearch\x18\x04 \x01(\bR\vexactsearch\"\xeb\x04\n" +
	"\rQueryResponse\x12\x14\n" +
	"\x05query\x18\x01 \x01(\tR\x05query\x12*\n" +
	"\x04item\x18\x02 \x01(\v2\x16.pb.QueryResponse.ItemR\x04item\x12\x10\n" +
	"\x03qid\x18\x03 \x01(\x05R\x03qid\x1a\xe6\x03\n" +
	"\x04Item\x12\x1e\n" +
	"\n" +
	"identifier\x18\x01 \x01(\tR\n" +
	"identifier\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\x12\x18\n" +
	"\asubtext\x18\x03 \x01(\tR\asubtext\x12\x12\n" +
	"\x04icon\x18\x04 \x01(\tR\x04icon\x12\x1a\n" +
	"\bprovider\x18\x05 \x01(\tR\bprovider\x12\x14\n" +
	"\x05score\x18\x06 \x01(\x05R\x05score\x12>\n" +
	"\tfuzzyinfo\x18\a \x01(\v2 .pb.QueryResponse.Item.FuzzyInfoR\tfuzzyinfo\x12*\n" +
	"\x04type\x18\b \x01(\x0e2\x16.pb.QueryResponse.TypeR\x04type\x12\x1a\n" +
	"\bmimetype\x18\t \x01(\tR\bmimetype\x12\x18\n" +
	"\apreview\x18\n" +
	" \x01(\tR\apreview\x12!\n" +
	"\fpreview_type\x18\v \x01(\tR\vpreviewType\x12\x14\n" +
	"\x05state\x18\f \x03(\tR\x05state\x12\x18\n" +
	"\aactions\x18\r \x03(\tR\aactions\x1aU\n" +
	"\tFuzzyInfo\x12\x14\n" +
	"\x05start\x18\x01 \x01(\x05R\x05start\x12\x14\n" +
	"\x05field\x18\x02 \x01(\tR\x05field\x12\x1c\n" +
	"\tpositions\x18\x03 \x03(\x05R\tpositions\"\x1d\n" +
	"\x04Type\x12\v\n" +
	"\aREGULAR\x10\x00\x12\b\n" +
	"\x04FILE\x10\x01B\x06Z\x04./pbb\x06proto3"

var (
	file_query_proto_rawDescOnce sync.Once
	file_query_proto_rawDescData []byte
)

func file_query_proto_rawDescGZIP() []byte {
	file_query_proto_rawDescOnce.Do(func() {
		file_query_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_query_proto_rawDesc), len(file_query_proto_rawDesc)))
	})
	return file_query_proto_rawDescData
}

var file_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_query_proto_goTypes = []any{
	(QueryResponse_Type)(0),              // 0: pb.QueryResponse.Type
	(*QueryRequest)(nil),                 // 1: pb.QueryRequest
	(*QueryResponse)(nil),                // 2: pb.QueryResponse
	(*QueryResponse_Item)(nil),           // 3: pb.QueryResponse.Item
	(*QueryResponse_Item_FuzzyInfo)(nil), // 4: pb.QueryResponse.Item.FuzzyInfo
}
var file_query_proto_depIdxs = []int32{
	3, // 0: pb.QueryResponse.item:type_name -> pb.QueryResponse.Item
	4, // 1: pb.QueryResponse.Item.fuzzyinfo:type_name -> pb.QueryResponse.Item.FuzzyInfo
	0, // 2: pb.QueryResponse.Item.type:type_name -> pb.QueryResponse.Type
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_query_proto_init() }
func file_query_proto_init() {
	if File_query_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_query_proto_rawDesc), len(file_query_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_query_proto_goTypes,
		DependencyIndexes: file_query_proto_depIdxs,
		EnumInfos:         file_query_proto_enumTypes,
		MessageInfos:      file_query_proto_msgTypes,
	}.Build()
	File_query_proto = out.File
	file_query_proto_goTypes = nil
	file_query_proto_depIdxs = nil
}
