// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/searchapi/v2/search_service.proto

package searchapi

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 SortSpec_SortOrder int32

const (
	SortSpec_SORT_ORDER_UNSPECIFIED SortSpec_SortOrder = 0
	// Reverse order from oldest to most recent.
	SortSpec_SORT_ORDER_ASC SortSpec_SortOrder = 1
	// Direct order from most recent to oldest (default).
	SortSpec_SORT_ORDER_DESC SortSpec_SortOrder = 2
)

// Enum value maps for SortSpec_SortOrder.
var (
	SortSpec_SortOrder_name = map[int32]string{
		0: "SORT_ORDER_UNSPECIFIED",
		1: "SORT_ORDER_ASC",
		2: "SORT_ORDER_DESC",
	}
	SortSpec_SortOrder_value = map[string]int32{
		"SORT_ORDER_UNSPECIFIED": 0,
		"SORT_ORDER_ASC":         1,
		"SORT_ORDER_DESC":        2,
	}
)

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

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

func (SortSpec_SortOrder) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[0].Descriptor()
}

func (SortSpec_SortOrder) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[0]
}

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

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

type SortSpec_SortMode int32

const (
	SortSpec_SORT_MODE_UNSPECIFIED SortSpec_SortMode = 0
	// Sort documents by relevance (default value).
	SortSpec_SORT_MODE_BY_RELEVANCE SortSpec_SortMode = 1
	// Sort documents by update time.
	SortSpec_SORT_MODE_BY_TIME SortSpec_SortMode = 2
)

// Enum value maps for SortSpec_SortMode.
var (
	SortSpec_SortMode_name = map[int32]string{
		0: "SORT_MODE_UNSPECIFIED",
		1: "SORT_MODE_BY_RELEVANCE",
		2: "SORT_MODE_BY_TIME",
	}
	SortSpec_SortMode_value = map[string]int32{
		"SORT_MODE_UNSPECIFIED":  0,
		"SORT_MODE_BY_RELEVANCE": 1,
		"SORT_MODE_BY_TIME":      2,
	}
)

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

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

func (SortSpec_SortMode) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[1].Descriptor()
}

func (SortSpec_SortMode) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[1]
}

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

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

type GroupSpec_GroupMode int32

const (
	GroupSpec_GROUP_MODE_UNSPECIFIED GroupSpec_GroupMode = 0
	// Flat grouping. Each group contains a single document.
	GroupSpec_GROUP_MODE_FLAT GroupSpec_GroupMode = 1
	// Grouping by domain. Each group contains documents from one domain.
	GroupSpec_GROUP_MODE_DEEP GroupSpec_GroupMode = 2
)

// Enum value maps for GroupSpec_GroupMode.
var (
	GroupSpec_GroupMode_name = map[int32]string{
		0: "GROUP_MODE_UNSPECIFIED",
		1: "GROUP_MODE_FLAT",
		2: "GROUP_MODE_DEEP",
	}
	GroupSpec_GroupMode_value = map[string]int32{
		"GROUP_MODE_UNSPECIFIED": 0,
		"GROUP_MODE_FLAT":        1,
		"GROUP_MODE_DEEP":        2,
	}
)

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

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

func (GroupSpec_GroupMode) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[2].Descriptor()
}

func (GroupSpec_GroupMode) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[2]
}

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

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

type WebSearchRequest_Localization int32

const (
	WebSearchRequest_LOCALIZATION_UNSPECIFIED WebSearchRequest_Localization = 0
	// Russian (default value)
	WebSearchRequest_LOCALIZATION_RU WebSearchRequest_Localization = 1
	// Ukrainian
	WebSearchRequest_LOCALIZATION_UK WebSearchRequest_Localization = 2
	// Belarusian
	WebSearchRequest_LOCALIZATION_BE WebSearchRequest_Localization = 3
	// Kazakh
	WebSearchRequest_LOCALIZATION_KK WebSearchRequest_Localization = 4
	// Turkish
	WebSearchRequest_LOCALIZATION_TR WebSearchRequest_Localization = 5
	// English
	WebSearchRequest_LOCALIZATION_EN WebSearchRequest_Localization = 6
)

// Enum value maps for WebSearchRequest_Localization.
var (
	WebSearchRequest_Localization_name = map[int32]string{
		0: "LOCALIZATION_UNSPECIFIED",
		1: "LOCALIZATION_RU",
		2: "LOCALIZATION_UK",
		3: "LOCALIZATION_BE",
		4: "LOCALIZATION_KK",
		5: "LOCALIZATION_TR",
		6: "LOCALIZATION_EN",
	}
	WebSearchRequest_Localization_value = map[string]int32{
		"LOCALIZATION_UNSPECIFIED": 0,
		"LOCALIZATION_RU":          1,
		"LOCALIZATION_UK":          2,
		"LOCALIZATION_BE":          3,
		"LOCALIZATION_KK":          4,
		"LOCALIZATION_TR":          5,
		"LOCALIZATION_EN":          6,
	}
)

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

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

func (WebSearchRequest_Localization) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[3].Descriptor()
}

func (WebSearchRequest_Localization) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[3]
}

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

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

type WebSearchRequest_Format int32

const (
	WebSearchRequest_FORMAT_UNSPECIFIED WebSearchRequest_Format = 0
	// XML format (default value)
	WebSearchRequest_FORMAT_XML WebSearchRequest_Format = 1
	// HTML format
	WebSearchRequest_FORMAT_HTML WebSearchRequest_Format = 2
)

// Enum value maps for WebSearchRequest_Format.
var (
	WebSearchRequest_Format_name = map[int32]string{
		0: "FORMAT_UNSPECIFIED",
		1: "FORMAT_XML",
		2: "FORMAT_HTML",
	}
	WebSearchRequest_Format_value = map[string]int32{
		"FORMAT_UNSPECIFIED": 0,
		"FORMAT_XML":         1,
		"FORMAT_HTML":        2,
	}
)

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

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

func (WebSearchRequest_Format) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[4].Descriptor()
}

func (WebSearchRequest_Format) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[4]
}

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

// Deprecated: Use WebSearchRequest_Format.Descriptor instead.
func (WebSearchRequest_Format) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_searchapi_v2_search_service_proto_rawDescGZIP(), []int{2, 1}
}

type WebSearchRequest_Period int32

const (
	WebSearchRequest_PERIOD_UNSPECIFIED WebSearchRequest_Period = 0
	// All time
	WebSearchRequest_PERIOD_ALL_TIME WebSearchRequest_Period = 1
	// Last 24 hours
	WebSearchRequest_PERIOD_DAY WebSearchRequest_Period = 2
	// Last 2 weeks
	WebSearchRequest_PERIOD_2_WEEKS WebSearchRequest_Period = 3
	// Last month
	WebSearchRequest_PERIOD_MONTH WebSearchRequest_Period = 4
)

// Enum value maps for WebSearchRequest_Period.
var (
	WebSearchRequest_Period_name = map[int32]string{
		0: "PERIOD_UNSPECIFIED",
		1: "PERIOD_ALL_TIME",
		2: "PERIOD_DAY",
		3: "PERIOD_2_WEEKS",
		4: "PERIOD_MONTH",
	}
	WebSearchRequest_Period_value = map[string]int32{
		"PERIOD_UNSPECIFIED": 0,
		"PERIOD_ALL_TIME":    1,
		"PERIOD_DAY":         2,
		"PERIOD_2_WEEKS":     3,
		"PERIOD_MONTH":       4,
	}
)

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

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

func (WebSearchRequest_Period) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[5].Descriptor()
}

func (WebSearchRequest_Period) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes[5]
}

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

// Deprecated: Use WebSearchRequest_Period.Descriptor instead.
func (WebSearchRequest_Period) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_searchapi_v2_search_service_proto_rawDescGZIP(), []int{2, 2}
}

type SortSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Documents sorting mode.
	SortMode SortSpec_SortMode `protobuf:"varint,1,opt,name=sort_mode,json=sortMode,proto3,enum=yandex.cloud.searchapi.v2.SortSpec_SortMode" json:"sort_mode,omitempty"`
	// Documents sorting order.
	SortOrder     SortSpec_SortOrder `protobuf:"varint,2,opt,name=sort_order,json=sortOrder,proto3,enum=yandex.cloud.searchapi.v2.SortSpec_SortOrder" json:"sort_order,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SortSpec) ProtoMessage() {}

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

func (x *SortSpec) GetSortMode() SortSpec_SortMode {
	if x != nil {
		return x.SortMode
	}
	return SortSpec_SORT_MODE_UNSPECIFIED
}

func (x *SortSpec) GetSortOrder() SortSpec_SortOrder {
	if x != nil {
		return x.SortOrder
	}
	return SortSpec_SORT_ORDER_UNSPECIFIED
}

type GroupSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Grouping method.
	GroupMode GroupSpec_GroupMode `protobuf:"varint,1,opt,name=group_mode,json=groupMode,proto3,enum=yandex.cloud.searchapi.v2.GroupSpec_GroupMode" json:"group_mode,omitempty"`
	// Maximum number of groups that can be returned per page with search results.
	GroupsOnPage int64 `protobuf:"varint,2,opt,name=groups_on_page,json=groupsOnPage,proto3" json:"groups_on_page,omitempty"`
	// Maximum number of documents that can be returned per group.
	DocsInGroup   int64 `protobuf:"varint,3,opt,name=docs_in_group,json=docsInGroup,proto3" json:"docs_in_group,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GroupSpec) ProtoMessage() {}

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

func (x *GroupSpec) GetGroupMode() GroupSpec_GroupMode {
	if x != nil {
		return x.GroupMode
	}
	return GroupSpec_GROUP_MODE_UNSPECIFIED
}

func (x *GroupSpec) GetGroupsOnPage() int64 {
	if x != nil {
		return x.GroupsOnPage
	}
	return 0
}

func (x *GroupSpec) GetDocsInGroup() int64 {
	if x != nil {
		return x.DocsInGroup
	}
	return 0
}

type WebSearchRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Search query.
	Query *SearchQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// The rules for sorting search results that define the sequence of the returned search results.
	SortSpec *SortSpec `protobuf:"bytes,2,opt,name=sort_spec,json=sortSpec,proto3" json:"sort_spec,omitempty"`
	// Grouping settings that are used to group documents from a single domain into a container.
	GroupSpec *GroupSpec `protobuf:"bytes,3,opt,name=group_spec,json=groupSpec,proto3" json:"group_spec,omitempty"`
	// The maximum number of passages that can be used when generating a document snippet.
	MaxPassages int64 `protobuf:"varint,4,opt,name=max_passages,json=maxPassages,proto3" json:"max_passages,omitempty"`
	// ID of the search country or region that impacts the document ranking rules.
	Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	// The notification language for a search response.
	L10N WebSearchRequest_Localization `protobuf:"varint,6,opt,name=l10n,proto3,enum=yandex.cloud.searchapi.v2.WebSearchRequest_Localization" json:"l10n,omitempty"`
	// ID of the folder.
	FolderId string `protobuf:"bytes,7,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Search results format.
	ResponseFormat WebSearchRequest_Format `protobuf:"varint,8,opt,name=response_format,json=responseFormat,proto3,enum=yandex.cloud.searchapi.v2.WebSearchRequest_Format" json:"response_format,omitempty"`
	// User-Agent request header value.
	UserAgent string `protobuf:"bytes,9,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// Search flags
	Metadata *SearchMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Get results for the certain period
	Period        WebSearchRequest_Period `protobuf:"varint,11,opt,name=period,proto3,enum=yandex.cloud.searchapi.v2.WebSearchRequest_Period" json:"period,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WebSearchRequest) ProtoMessage() {}

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

func (x *WebSearchRequest) GetQuery() *SearchQuery {
	if x != nil {
		return x.Query
	}
	return nil
}

func (x *WebSearchRequest) GetSortSpec() *SortSpec {
	if x != nil {
		return x.SortSpec
	}
	return nil
}

func (x *WebSearchRequest) GetGroupSpec() *GroupSpec {
	if x != nil {
		return x.GroupSpec
	}
	return nil
}

func (x *WebSearchRequest) GetMaxPassages() int64 {
	if x != nil {
		return x.MaxPassages
	}
	return 0
}

func (x *WebSearchRequest) GetRegion() string {
	if x != nil {
		return x.Region
	}
	return ""
}

func (x *WebSearchRequest) GetL10N() WebSearchRequest_Localization {
	if x != nil {
		return x.L10N
	}
	return WebSearchRequest_LOCALIZATION_UNSPECIFIED
}

func (x *WebSearchRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *WebSearchRequest) GetResponseFormat() WebSearchRequest_Format {
	if x != nil {
		return x.ResponseFormat
	}
	return WebSearchRequest_FORMAT_UNSPECIFIED
}

func (x *WebSearchRequest) GetUserAgent() string {
	if x != nil {
		return x.UserAgent
	}
	return ""
}

func (x *WebSearchRequest) GetMetadata() *SearchMetadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *WebSearchRequest) GetPeriod() WebSearchRequest_Period {
	if x != nil {
		return x.Period
	}
	return WebSearchRequest_PERIOD_UNSPECIFIED
}

type WebSearchResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Search results, either in XML or HTML format depending on the request settings.
	RawData       []byte `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WebSearchResponse) ProtoMessage() {}

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

func (x *WebSearchResponse) GetRawData() []byte {
	if x != nil {
		return x.RawData
	}
	return nil
}

var File_yandex_cloud_searchapi_v2_search_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_searchapi_v2_search_service_proto_rawDesc = "" +
	"\n" +
	".yandex/cloud/searchapi/v2/search_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a,yandex/cloud/searchapi/v2/search_query.proto\x1a\x1cgoogle/api/annotations.proto\"\xcf\x02\n" +
	"\bSortSpec\x12I\n" +
	"\tsort_mode\x18\x01 \x01(\x0e2,.yandex.cloud.searchapi.v2.SortSpec.SortModeR\bsortMode\x12L\n" +
	"\n" +
	"sort_order\x18\x02 \x01(\x0e2-.yandex.cloud.searchapi.v2.SortSpec.SortOrderR\tsortOrder\"P\n" +
	"\tSortOrder\x12\x1a\n" +
	"\x16SORT_ORDER_UNSPECIFIED\x10\x00\x12\x12\n" +
	"\x0eSORT_ORDER_ASC\x10\x01\x12\x13\n" +
	"\x0fSORT_ORDER_DESC\x10\x02\"X\n" +
	"\bSortMode\x12\x19\n" +
	"\x15SORT_MODE_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16SORT_MODE_BY_RELEVANCE\x10\x01\x12\x15\n" +
	"\x11SORT_MODE_BY_TIME\x10\x02\"\x8b\x02\n" +
	"\tGroupSpec\x12M\n" +
	"\n" +
	"group_mode\x18\x01 \x01(\x0e2..yandex.cloud.searchapi.v2.GroupSpec.GroupModeR\tgroupMode\x12/\n" +
	"\x0egroups_on_page\x18\x02 \x01(\x03B\t\xfa\xc71\x051-100R\fgroupsOnPage\x12+\n" +
	"\rdocs_in_group\x18\x03 \x01(\x03B\a\xfa\xc71\x031-3R\vdocsInGroup\"Q\n" +
	"\tGroupMode\x12\x1a\n" +
	"\x16GROUP_MODE_UNSPECIFIED\x10\x00\x12\x13\n" +
	"\x0fGROUP_MODE_FLAT\x10\x01\x12\x13\n" +
	"\x0fGROUP_MODE_DEEP\x10\x02\"\x98\b\n" +
	"\x10WebSearchRequest\x12B\n" +
	"\x05query\x18\x01 \x01(\v2&.yandex.cloud.searchapi.v2.SearchQueryB\x04\xe8\xc71\x01R\x05query\x12@\n" +
	"\tsort_spec\x18\x02 \x01(\v2#.yandex.cloud.searchapi.v2.SortSpecR\bsortSpec\x12C\n" +
	"\n" +
	"group_spec\x18\x03 \x01(\v2$.yandex.cloud.searchapi.v2.GroupSpecR\tgroupSpec\x12*\n" +
	"\fmax_passages\x18\x04 \x01(\x03B\a\xfa\xc71\x031-5R\vmaxPassages\x12!\n" +
	"\x06region\x18\x05 \x01(\tB\t\x8a\xc81\x05<=100R\x06region\x12L\n" +
	"\x04l10n\x18\x06 \x01(\x0e28.yandex.cloud.searchapi.v2.WebSearchRequest.LocalizationR\x04l10n\x12%\n" +
	"\tfolder_id\x18\a \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\x12[\n" +
	"\x0fresponse_format\x18\b \x01(\x0e22.yandex.cloud.searchapi.v2.WebSearchRequest.FormatR\x0eresponseFormat\x12(\n" +
	"\n" +
	"user_agent\x18\t \x01(\tB\t\x8a\xc81\x05<=300R\tuserAgent\x12E\n" +
	"\bmetadata\x18\n" +
	" \x01(\v2).yandex.cloud.searchapi.v2.SearchMetadataR\bmetadata\x12J\n" +
	"\x06period\x18\v \x01(\x0e22.yandex.cloud.searchapi.v2.WebSearchRequest.PeriodR\x06period\"\xaa\x01\n" +
	"\fLocalization\x12\x1c\n" +
	"\x18LOCALIZATION_UNSPECIFIED\x10\x00\x12\x13\n" +
	"\x0fLOCALIZATION_RU\x10\x01\x12\x13\n" +
	"\x0fLOCALIZATION_UK\x10\x02\x12\x13\n" +
	"\x0fLOCALIZATION_BE\x10\x03\x12\x13\n" +
	"\x0fLOCALIZATION_KK\x10\x04\x12\x13\n" +
	"\x0fLOCALIZATION_TR\x10\x05\x12\x13\n" +
	"\x0fLOCALIZATION_EN\x10\x06\"A\n" +
	"\x06Format\x12\x16\n" +
	"\x12FORMAT_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"FORMAT_XML\x10\x01\x12\x0f\n" +
	"\vFORMAT_HTML\x10\x02\"k\n" +
	"\x06Period\x12\x16\n" +
	"\x12PERIOD_UNSPECIFIED\x10\x00\x12\x13\n" +
	"\x0fPERIOD_ALL_TIME\x10\x01\x12\x0e\n" +
	"\n" +
	"PERIOD_DAY\x10\x02\x12\x12\n" +
	"\x0ePERIOD_2_WEEKS\x10\x03\x12\x10\n" +
	"\fPERIOD_MONTH\x10\x04\"4\n" +
	"\x11WebSearchResponse\x12\x1f\n" +
	"\braw_data\x18\x01 \x01(\fB\x04\xe8\xc71\x01R\arawData2\xa9\x01\n" +
	"\x15WebSearchAsyncService\x12\x8f\x01\n" +
	"\x06Search\x12+.yandex.cloud.searchapi.v2.WebSearchRequest\x1a!.yandex.cloud.operation.Operation\"5\xb2\xd2*\x13\x12\x11WebSearchResponse\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/v2/web/searchAsync2\x92\x01\n" +
	"\x10WebSearchService\x12~\n" +
	"\x06Search\x12+.yandex.cloud.searchapi.v2.WebSearchRequest\x1a,.yandex.cloud.searchapi.v2.WebSearchResponse\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/v2/web/searchBe\n" +
	"\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3"

var (
	file_yandex_cloud_searchapi_v2_search_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_searchapi_v2_search_service_proto_rawDescData []byte
)

func file_yandex_cloud_searchapi_v2_search_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_searchapi_v2_search_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_searchapi_v2_search_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_searchapi_v2_search_service_proto_rawDesc), len(file_yandex_cloud_searchapi_v2_search_service_proto_rawDesc)))
	})
	return file_yandex_cloud_searchapi_v2_search_service_proto_rawDescData
}

var file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
var file_yandex_cloud_searchapi_v2_search_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_searchapi_v2_search_service_proto_goTypes = []any{
	(SortSpec_SortOrder)(0),            // 0: yandex.cloud.searchapi.v2.SortSpec.SortOrder
	(SortSpec_SortMode)(0),             // 1: yandex.cloud.searchapi.v2.SortSpec.SortMode
	(GroupSpec_GroupMode)(0),           // 2: yandex.cloud.searchapi.v2.GroupSpec.GroupMode
	(WebSearchRequest_Localization)(0), // 3: yandex.cloud.searchapi.v2.WebSearchRequest.Localization
	(WebSearchRequest_Format)(0),       // 4: yandex.cloud.searchapi.v2.WebSearchRequest.Format
	(WebSearchRequest_Period)(0),       // 5: yandex.cloud.searchapi.v2.WebSearchRequest.Period
	(*SortSpec)(nil),                   // 6: yandex.cloud.searchapi.v2.SortSpec
	(*GroupSpec)(nil),                  // 7: yandex.cloud.searchapi.v2.GroupSpec
	(*WebSearchRequest)(nil),           // 8: yandex.cloud.searchapi.v2.WebSearchRequest
	(*WebSearchResponse)(nil),          // 9: yandex.cloud.searchapi.v2.WebSearchResponse
	(*SearchQuery)(nil),                // 10: yandex.cloud.searchapi.v2.SearchQuery
	(*SearchMetadata)(nil),             // 11: yandex.cloud.searchapi.v2.SearchMetadata
	(*operation.Operation)(nil),        // 12: yandex.cloud.operation.Operation
}
var file_yandex_cloud_searchapi_v2_search_service_proto_depIdxs = []int32{
	1,  // 0: yandex.cloud.searchapi.v2.SortSpec.sort_mode:type_name -> yandex.cloud.searchapi.v2.SortSpec.SortMode
	0,  // 1: yandex.cloud.searchapi.v2.SortSpec.sort_order:type_name -> yandex.cloud.searchapi.v2.SortSpec.SortOrder
	2,  // 2: yandex.cloud.searchapi.v2.GroupSpec.group_mode:type_name -> yandex.cloud.searchapi.v2.GroupSpec.GroupMode
	10, // 3: yandex.cloud.searchapi.v2.WebSearchRequest.query:type_name -> yandex.cloud.searchapi.v2.SearchQuery
	6,  // 4: yandex.cloud.searchapi.v2.WebSearchRequest.sort_spec:type_name -> yandex.cloud.searchapi.v2.SortSpec
	7,  // 5: yandex.cloud.searchapi.v2.WebSearchRequest.group_spec:type_name -> yandex.cloud.searchapi.v2.GroupSpec
	3,  // 6: yandex.cloud.searchapi.v2.WebSearchRequest.l10n:type_name -> yandex.cloud.searchapi.v2.WebSearchRequest.Localization
	4,  // 7: yandex.cloud.searchapi.v2.WebSearchRequest.response_format:type_name -> yandex.cloud.searchapi.v2.WebSearchRequest.Format
	11, // 8: yandex.cloud.searchapi.v2.WebSearchRequest.metadata:type_name -> yandex.cloud.searchapi.v2.SearchMetadata
	5,  // 9: yandex.cloud.searchapi.v2.WebSearchRequest.period:type_name -> yandex.cloud.searchapi.v2.WebSearchRequest.Period
	8,  // 10: yandex.cloud.searchapi.v2.WebSearchAsyncService.Search:input_type -> yandex.cloud.searchapi.v2.WebSearchRequest
	8,  // 11: yandex.cloud.searchapi.v2.WebSearchService.Search:input_type -> yandex.cloud.searchapi.v2.WebSearchRequest
	12, // 12: yandex.cloud.searchapi.v2.WebSearchAsyncService.Search:output_type -> yandex.cloud.operation.Operation
	9,  // 13: yandex.cloud.searchapi.v2.WebSearchService.Search:output_type -> yandex.cloud.searchapi.v2.WebSearchResponse
	12, // [12:14] is the sub-list for method output_type
	10, // [10:12] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_yandex_cloud_searchapi_v2_search_service_proto_init() }
func file_yandex_cloud_searchapi_v2_search_service_proto_init() {
	if File_yandex_cloud_searchapi_v2_search_service_proto != nil {
		return
	}
	file_yandex_cloud_searchapi_v2_search_query_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_searchapi_v2_search_service_proto_rawDesc), len(file_yandex_cloud_searchapi_v2_search_service_proto_rawDesc)),
			NumEnums:      6,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   2,
		},
		GoTypes:           file_yandex_cloud_searchapi_v2_search_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_searchapi_v2_search_service_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_searchapi_v2_search_service_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_searchapi_v2_search_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_searchapi_v2_search_service_proto = out.File
	file_yandex_cloud_searchapi_v2_search_service_proto_goTypes = nil
	file_yandex_cloud_searchapi_v2_search_service_proto_depIdxs = nil
}
