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

package searchapi

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 Device int32

const (
	Device_DEVICE_UNSPECIFIED Device = 0
	// All devices.
	Device_DEVICE_ALL Device = 1
	// Desktop computers.
	Device_DEVICE_DESKTOP Device = 2
	// Phones.
	Device_DEVICE_PHONE Device = 3
	// Tablets.
	Device_DEVICE_TABLET Device = 4
)

// Enum value maps for Device.
var (
	Device_name = map[int32]string{
		0: "DEVICE_UNSPECIFIED",
		1: "DEVICE_ALL",
		2: "DEVICE_DESKTOP",
		3: "DEVICE_PHONE",
		4: "DEVICE_TABLET",
	}
	Device_value = map[string]int32{
		"DEVICE_UNSPECIFIED": 0,
		"DEVICE_ALL":         1,
		"DEVICE_DESKTOP":     2,
		"DEVICE_PHONE":       3,
		"DEVICE_TABLET":      4,
	}
)

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

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

func (Device) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[0].Descriptor()
}

func (Device) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[0]
}

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

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

type GetDynamicsRequest_Period int32

const (
	GetDynamicsRequest_PERIOD_UNSPECIFIED GetDynamicsRequest_Period = 0
	// Details by month.
	GetDynamicsRequest_PERIOD_MONTHLY GetDynamicsRequest_Period = 1
	// Details by week.
	GetDynamicsRequest_PERIOD_WEEKLY GetDynamicsRequest_Period = 2
	// Details by day.
	GetDynamicsRequest_PERIOD_DAILY GetDynamicsRequest_Period = 3
)

// Enum value maps for GetDynamicsRequest_Period.
var (
	GetDynamicsRequest_Period_name = map[int32]string{
		0: "PERIOD_UNSPECIFIED",
		1: "PERIOD_MONTHLY",
		2: "PERIOD_WEEKLY",
		3: "PERIOD_DAILY",
	}
	GetDynamicsRequest_Period_value = map[string]int32{
		"PERIOD_UNSPECIFIED": 0,
		"PERIOD_MONTHLY":     1,
		"PERIOD_WEEKLY":      2,
		"PERIOD_DAILY":       3,
	}
)

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

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

func (GetDynamicsRequest_Period) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[1].Descriptor()
}

func (GetDynamicsRequest_Period) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[1]
}

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

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

type GetRegionsDistributionRequest_Region int32

const (
	GetRegionsDistributionRequest_REGION_UNSPECIFIED GetRegionsDistributionRequest_Region = 0
	// Show distribution everywhere.
	GetRegionsDistributionRequest_REGION_ALL GetRegionsDistributionRequest_Region = 1
	// Show distribution by cities.
	GetRegionsDistributionRequest_REGION_CITIES GetRegionsDistributionRequest_Region = 2
	// Show distribution by regions.
	GetRegionsDistributionRequest_REGION_REGIONS GetRegionsDistributionRequest_Region = 3
)

// Enum value maps for GetRegionsDistributionRequest_Region.
var (
	GetRegionsDistributionRequest_Region_name = map[int32]string{
		0: "REGION_UNSPECIFIED",
		1: "REGION_ALL",
		2: "REGION_CITIES",
		3: "REGION_REGIONS",
	}
	GetRegionsDistributionRequest_Region_value = map[string]int32{
		"REGION_UNSPECIFIED": 0,
		"REGION_ALL":         1,
		"REGION_CITIES":      2,
		"REGION_REGIONS":     3,
	}
)

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

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

func (GetRegionsDistributionRequest_Region) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[2].Descriptor()
}

func (GetRegionsDistributionRequest_Region) Type() protoreflect.EnumType {
	return &file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes[2]
}

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

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

type GetTopRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Keyword
	Phrase string `protobuf:"bytes,1,opt,name=phrase,proto3" json:"phrase,omitempty"`
	// Number of the phrases in the response.
	NumPhrases int64 `protobuf:"varint,2,opt,name=num_phrases,json=numPhrases,proto3" json:"num_phrases,omitempty"`
	// A list of IDs of the regions a query was made from.
	Regions []string `protobuf:"bytes,3,rep,name=regions,proto3" json:"regions,omitempty"`
	// A list of device types a query was made from.
	Devices []Device `protobuf:"varint,4,rep,packed,name=devices,proto3,enum=yandex.cloud.searchapi.v2.Device" json:"devices,omitempty"`
	// ID of the folder.
	FolderId      string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetTopRequest) ProtoMessage() {}

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

func (x *GetTopRequest) GetPhrase() string {
	if x != nil {
		return x.Phrase
	}
	return ""
}

func (x *GetTopRequest) GetNumPhrases() int64 {
	if x != nil {
		return x.NumPhrases
	}
	return 0
}

func (x *GetTopRequest) GetRegions() []string {
	if x != nil {
		return x.Regions
	}
	return nil
}

func (x *GetTopRequest) GetDevices() []Device {
	if x != nil {
		return x.Devices
	}
	return nil
}

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

type GetTopResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Total number of the queries that contain all the keywords, regardless of their order.
	TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// Results.
	Results []*GetTopResponse_PhraseInfo `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
	// Queries that are similar to the specified one.
	Associations  []*GetTopResponse_PhraseInfo `protobuf:"bytes,3,rep,name=associations,proto3" json:"associations,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetTopResponse) ProtoMessage() {}

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

func (x *GetTopResponse) GetTotalCount() int64 {
	if x != nil {
		return x.TotalCount
	}
	return 0
}

func (x *GetTopResponse) GetResults() []*GetTopResponse_PhraseInfo {
	if x != nil {
		return x.Results
	}
	return nil
}

func (x *GetTopResponse) GetAssociations() []*GetTopResponse_PhraseInfo {
	if x != nil {
		return x.Associations
	}
	return nil
}

type GetDynamicsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Keyword.
	Phrase string `protobuf:"bytes,1,opt,name=phrase,proto3" json:"phrase,omitempty"`
	// The period of aggregation of the number of queries.
	Period GetDynamicsRequest_Period `protobuf:"varint,2,opt,name=period,proto3,enum=yandex.cloud.searchapi.v2.GetDynamicsRequest_Period" json:"period,omitempty"`
	// The start of the period data is requested for.
	FromDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=from_date,json=fromDate,proto3" json:"from_date,omitempty"`
	// The end of the period data is requested for.
	ToDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=to_date,json=toDate,proto3" json:"to_date,omitempty"`
	// A list of IDs of the regions a query was made from.
	Regions []string `protobuf:"bytes,5,rep,name=regions,proto3" json:"regions,omitempty"`
	// A list of device types a query was made from.
	Devices []Device `protobuf:"varint,6,rep,packed,name=devices,proto3,enum=yandex.cloud.searchapi.v2.Device" json:"devices,omitempty"`
	// ID of the folder.
	FolderId      string `protobuf:"bytes,7,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetDynamicsRequest) ProtoMessage() {}

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

func (x *GetDynamicsRequest) GetPhrase() string {
	if x != nil {
		return x.Phrase
	}
	return ""
}

func (x *GetDynamicsRequest) GetPeriod() GetDynamicsRequest_Period {
	if x != nil {
		return x.Period
	}
	return GetDynamicsRequest_PERIOD_UNSPECIFIED
}

func (x *GetDynamicsRequest) GetFromDate() *timestamppb.Timestamp {
	if x != nil {
		return x.FromDate
	}
	return nil
}

func (x *GetDynamicsRequest) GetToDate() *timestamppb.Timestamp {
	if x != nil {
		return x.ToDate
	}
	return nil
}

func (x *GetDynamicsRequest) GetRegions() []string {
	if x != nil {
		return x.Regions
	}
	return nil
}

func (x *GetDynamicsRequest) GetDevices() []Device {
	if x != nil {
		return x.Devices
	}
	return nil
}

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

type GetDynamicsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Results.
	Results       []*GetDynamicsResponse_DynamicsInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetDynamicsResponse) ProtoMessage() {}

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

func (x *GetDynamicsResponse) GetResults() []*GetDynamicsResponse_DynamicsInfo {
	if x != nil {
		return x.Results
	}
	return nil
}

type GetRegionsDistributionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Keyword
	Phrase string `protobuf:"bytes,1,opt,name=phrase,proto3" json:"phrase,omitempty"`
	// Show query distribution only by city, only by region, or everywhere.
	Region GetRegionsDistributionRequest_Region `protobuf:"varint,2,opt,name=region,proto3,enum=yandex.cloud.searchapi.v2.GetRegionsDistributionRequest_Region" json:"region,omitempty"`
	// A list of device types a query was made from.
	Devices []Device `protobuf:"varint,3,rep,packed,name=devices,proto3,enum=yandex.cloud.searchapi.v2.Device" json:"devices,omitempty"`
	// ID of the folder.
	FolderId      string `protobuf:"bytes,4,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRegionsDistributionRequest) Reset() {
	*x = GetRegionsDistributionRequest{}
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetRegionsDistributionRequest) ProtoMessage() {}

func (x *GetRegionsDistributionRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[4]
	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 GetRegionsDistributionRequest.ProtoReflect.Descriptor instead.
func (*GetRegionsDistributionRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescGZIP(), []int{4}
}

func (x *GetRegionsDistributionRequest) GetPhrase() string {
	if x != nil {
		return x.Phrase
	}
	return ""
}

func (x *GetRegionsDistributionRequest) GetRegion() GetRegionsDistributionRequest_Region {
	if x != nil {
		return x.Region
	}
	return GetRegionsDistributionRequest_REGION_UNSPECIFIED
}

func (x *GetRegionsDistributionRequest) GetDevices() []Device {
	if x != nil {
		return x.Devices
	}
	return nil
}

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

type GetRegionsDistributionResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Results.
	Results       []*GetRegionsDistributionResponse_RegionInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRegionsDistributionResponse) Reset() {
	*x = GetRegionsDistributionResponse{}
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetRegionsDistributionResponse) ProtoMessage() {}

func (x *GetRegionsDistributionResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[5]
	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 GetRegionsDistributionResponse.ProtoReflect.Descriptor instead.
func (*GetRegionsDistributionResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescGZIP(), []int{5}
}

func (x *GetRegionsDistributionResponse) GetResults() []*GetRegionsDistributionResponse_RegionInfo {
	if x != nil {
		return x.Results
	}
	return nil
}

type GetTopResponse_PhraseInfo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Keyword.
	Phrase string `protobuf:"bytes,1,opt,name=phrase,proto3" json:"phrase,omitempty"`
	// Number of queries made.
	Count         int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetTopResponse_PhraseInfo) Reset() {
	*x = GetTopResponse_PhraseInfo{}
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetTopResponse_PhraseInfo) ProtoMessage() {}

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

func (x *GetTopResponse_PhraseInfo) GetPhrase() string {
	if x != nil {
		return x.Phrase
	}
	return ""
}

func (x *GetTopResponse_PhraseInfo) GetCount() int64 {
	if x != nil {
		return x.Count
	}
	return 0
}

type GetDynamicsResponse_DynamicsInfo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The date
	Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	// Number of queries containing the given keyword
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The share of the number of such queries from the total number of queries to Yandex.
	Share         float64 `protobuf:"fixed64,3,opt,name=share,proto3" json:"share,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetDynamicsResponse_DynamicsInfo) Reset() {
	*x = GetDynamicsResponse_DynamicsInfo{}
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetDynamicsResponse_DynamicsInfo) ProtoMessage() {}

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

func (x *GetDynamicsResponse_DynamicsInfo) GetDate() *timestamppb.Timestamp {
	if x != nil {
		return x.Date
	}
	return nil
}

func (x *GetDynamicsResponse_DynamicsInfo) GetCount() int64 {
	if x != nil {
		return x.Count
	}
	return 0
}

func (x *GetDynamicsResponse_DynamicsInfo) GetShare() float64 {
	if x != nil {
		return x.Share
	}
	return 0
}

type GetRegionsDistributionResponse_RegionInfo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// region ID
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// Number of queries containing the given keyword.
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The share of the number of such queries from the total number of queries to Yandex in the region.
	Share float64 `protobuf:"fixed64,3,opt,name=share,proto3" json:"share,omitempty"`
	// The ratio between the share of the selected queries in the region and their share across the country.
	AffinityIndex float64 `protobuf:"fixed64,4,opt,name=affinity_index,json=affinityIndex,proto3" json:"affinity_index,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRegionsDistributionResponse_RegionInfo) Reset() {
	*x = GetRegionsDistributionResponse_RegionInfo{}
	mi := &file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetRegionsDistributionResponse_RegionInfo) ProtoMessage() {}

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

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

func (x *GetRegionsDistributionResponse_RegionInfo) GetCount() int64 {
	if x != nil {
		return x.Count
	}
	return 0
}

func (x *GetRegionsDistributionResponse_RegionInfo) GetShare() float64 {
	if x != nil {
		return x.Share
	}
	return 0
}

func (x *GetRegionsDistributionResponse_RegionInfo) GetAffinityIndex() float64 {
	if x != nil {
		return x.AffinityIndex
	}
	return 0
}

var File_yandex_cloud_searchapi_v2_wordstat_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDesc = "" +
	"\n" +
	"0yandex/cloud/searchapi/v2/wordstat_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x01\n" +
	"\rGetTopRequest\x12%\n" +
	"\x06phrase\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=400R\x06phrase\x12+\n" +
	"\vnum_phrases\x18\x02 \x01(\x03B\n" +
	"\xfa\xc71\x061-2000R\n" +
	"numPhrases\x12#\n" +
	"\aregions\x18\x03 \x03(\tB\t\x82\xc81\x05<=100R\aregions\x12D\n" +
	"\adevices\x18\x04 \x03(\x0e2!.yandex.cloud.searchapi.v2.DeviceB\a\x82\xc81\x03<=3R\adevices\x12%\n" +
	"\tfolder_id\x18\x05 \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\"\x97\x02\n" +
	"\x0eGetTopResponse\x12\x1f\n" +
	"\vtotal_count\x18\x01 \x01(\x03R\n" +
	"totalCount\x12N\n" +
	"\aresults\x18\x02 \x03(\v24.yandex.cloud.searchapi.v2.GetTopResponse.PhraseInfoR\aresults\x12X\n" +
	"\fassociations\x18\x03 \x03(\v24.yandex.cloud.searchapi.v2.GetTopResponse.PhraseInfoR\fassociations\x1a:\n" +
	"\n" +
	"PhraseInfo\x12\x16\n" +
	"\x06phrase\x18\x01 \x01(\tR\x06phrase\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\"\xf0\x03\n" +
	"\x12GetDynamicsRequest\x12%\n" +
	"\x06phrase\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=400R\x06phrase\x12R\n" +
	"\x06period\x18\x02 \x01(\x0e24.yandex.cloud.searchapi.v2.GetDynamicsRequest.PeriodB\x04\xe8\xc71\x01R\x06period\x12=\n" +
	"\tfrom_date\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe8\xc71\x01R\bfromDate\x123\n" +
	"\ato_date\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x06toDate\x12#\n" +
	"\aregions\x18\x05 \x03(\tB\t\x82\xc81\x05<=100R\aregions\x12D\n" +
	"\adevices\x18\x06 \x03(\x0e2!.yandex.cloud.searchapi.v2.DeviceB\a\x82\xc81\x03<=3R\adevices\x12%\n" +
	"\tfolder_id\x18\a \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\"Y\n" +
	"\x06Period\x12\x16\n" +
	"\x12PERIOD_UNSPECIFIED\x10\x00\x12\x12\n" +
	"\x0ePERIOD_MONTHLY\x10\x01\x12\x11\n" +
	"\rPERIOD_WEEKLY\x10\x02\x12\x10\n" +
	"\fPERIOD_DAILY\x10\x03\"\xd8\x01\n" +
	"\x13GetDynamicsResponse\x12U\n" +
	"\aresults\x18\x01 \x03(\v2;.yandex.cloud.searchapi.v2.GetDynamicsResponse.DynamicsInfoR\aresults\x1aj\n" +
	"\fDynamicsInfo\x12.\n" +
	"\x04date\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04date\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\x12\x14\n" +
	"\x05share\x18\x03 \x01(\x01R\x05share\"\xdc\x02\n" +
	"\x1dGetRegionsDistributionRequest\x12%\n" +
	"\x06phrase\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=400R\x06phrase\x12W\n" +
	"\x06region\x18\x02 \x01(\x0e2?.yandex.cloud.searchapi.v2.GetRegionsDistributionRequest.RegionR\x06region\x12;\n" +
	"\adevices\x18\x03 \x03(\x0e2!.yandex.cloud.searchapi.v2.DeviceR\adevices\x12%\n" +
	"\tfolder_id\x18\x04 \x01(\tB\b\x8a\xc81\x04<=50R\bfolderId\"W\n" +
	"\x06Region\x12\x16\n" +
	"\x12REGION_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"REGION_ALL\x10\x01\x12\x11\n" +
	"\rREGION_CITIES\x10\x02\x12\x12\n" +
	"\x0eREGION_REGIONS\x10\x03\"\xf9\x01\n" +
	"\x1eGetRegionsDistributionResponse\x12^\n" +
	"\aresults\x18\x01 \x03(\v2D.yandex.cloud.searchapi.v2.GetRegionsDistributionResponse.RegionInfoR\aresults\x1aw\n" +
	"\n" +
	"RegionInfo\x12\x16\n" +
	"\x06region\x18\x01 \x01(\tR\x06region\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\x12\x14\n" +
	"\x05share\x18\x03 \x01(\x01R\x05share\x12%\n" +
	"\x0eaffinity_index\x18\x04 \x01(\x01R\raffinityIndex*i\n" +
	"\x06Device\x12\x16\n" +
	"\x12DEVICE_UNSPECIFIED\x10\x00\x12\x0e\n" +
	"\n" +
	"DEVICE_ALL\x10\x01\x12\x12\n" +
	"\x0eDEVICE_DESKTOP\x10\x02\x12\x10\n" +
	"\fDEVICE_PHONE\x10\x03\x12\x11\n" +
	"\rDEVICE_TABLET\x10\x042\xd8\x03\n" +
	"\x0fWordstatService\x12\x82\x01\n" +
	"\x06GetTop\x12(.yandex.cloud.searchapi.v2.GetTopRequest\x1a).yandex.cloud.searchapi.v2.GetTopResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/v2/wordstat/topRequests\x12\x8e\x01\n" +
	"\vGetDynamics\x12-.yandex.cloud.searchapi.v2.GetDynamicsRequest\x1a..yandex.cloud.searchapi.v2.GetDynamicsResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/v2/wordstat/dynamics\x12\xae\x01\n" +
	"\x16GetRegionsDistribution\x128.yandex.cloud.searchapi.v2.GetRegionsDistributionRequest\x1a9.yandex.cloud.searchapi.v2.GetRegionsDistributionResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/v2/wordstat/regionsBe\n" +
	"\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3"

var (
	file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescData []byte
)

func file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDesc), len(file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDesc)))
	})
	return file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDescData
}

var file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
var file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_yandex_cloud_searchapi_v2_wordstat_service_proto_goTypes = []any{
	(Device)(0),                                       // 0: yandex.cloud.searchapi.v2.Device
	(GetDynamicsRequest_Period)(0),                    // 1: yandex.cloud.searchapi.v2.GetDynamicsRequest.Period
	(GetRegionsDistributionRequest_Region)(0),         // 2: yandex.cloud.searchapi.v2.GetRegionsDistributionRequest.Region
	(*GetTopRequest)(nil),                             // 3: yandex.cloud.searchapi.v2.GetTopRequest
	(*GetTopResponse)(nil),                            // 4: yandex.cloud.searchapi.v2.GetTopResponse
	(*GetDynamicsRequest)(nil),                        // 5: yandex.cloud.searchapi.v2.GetDynamicsRequest
	(*GetDynamicsResponse)(nil),                       // 6: yandex.cloud.searchapi.v2.GetDynamicsResponse
	(*GetRegionsDistributionRequest)(nil),             // 7: yandex.cloud.searchapi.v2.GetRegionsDistributionRequest
	(*GetRegionsDistributionResponse)(nil),            // 8: yandex.cloud.searchapi.v2.GetRegionsDistributionResponse
	(*GetTopResponse_PhraseInfo)(nil),                 // 9: yandex.cloud.searchapi.v2.GetTopResponse.PhraseInfo
	(*GetDynamicsResponse_DynamicsInfo)(nil),          // 10: yandex.cloud.searchapi.v2.GetDynamicsResponse.DynamicsInfo
	(*GetRegionsDistributionResponse_RegionInfo)(nil), // 11: yandex.cloud.searchapi.v2.GetRegionsDistributionResponse.RegionInfo
	(*timestamppb.Timestamp)(nil),                     // 12: google.protobuf.Timestamp
}
var file_yandex_cloud_searchapi_v2_wordstat_service_proto_depIdxs = []int32{
	0,  // 0: yandex.cloud.searchapi.v2.GetTopRequest.devices:type_name -> yandex.cloud.searchapi.v2.Device
	9,  // 1: yandex.cloud.searchapi.v2.GetTopResponse.results:type_name -> yandex.cloud.searchapi.v2.GetTopResponse.PhraseInfo
	9,  // 2: yandex.cloud.searchapi.v2.GetTopResponse.associations:type_name -> yandex.cloud.searchapi.v2.GetTopResponse.PhraseInfo
	1,  // 3: yandex.cloud.searchapi.v2.GetDynamicsRequest.period:type_name -> yandex.cloud.searchapi.v2.GetDynamicsRequest.Period
	12, // 4: yandex.cloud.searchapi.v2.GetDynamicsRequest.from_date:type_name -> google.protobuf.Timestamp
	12, // 5: yandex.cloud.searchapi.v2.GetDynamicsRequest.to_date:type_name -> google.protobuf.Timestamp
	0,  // 6: yandex.cloud.searchapi.v2.GetDynamicsRequest.devices:type_name -> yandex.cloud.searchapi.v2.Device
	10, // 7: yandex.cloud.searchapi.v2.GetDynamicsResponse.results:type_name -> yandex.cloud.searchapi.v2.GetDynamicsResponse.DynamicsInfo
	2,  // 8: yandex.cloud.searchapi.v2.GetRegionsDistributionRequest.region:type_name -> yandex.cloud.searchapi.v2.GetRegionsDistributionRequest.Region
	0,  // 9: yandex.cloud.searchapi.v2.GetRegionsDistributionRequest.devices:type_name -> yandex.cloud.searchapi.v2.Device
	11, // 10: yandex.cloud.searchapi.v2.GetRegionsDistributionResponse.results:type_name -> yandex.cloud.searchapi.v2.GetRegionsDistributionResponse.RegionInfo
	12, // 11: yandex.cloud.searchapi.v2.GetDynamicsResponse.DynamicsInfo.date:type_name -> google.protobuf.Timestamp
	3,  // 12: yandex.cloud.searchapi.v2.WordstatService.GetTop:input_type -> yandex.cloud.searchapi.v2.GetTopRequest
	5,  // 13: yandex.cloud.searchapi.v2.WordstatService.GetDynamics:input_type -> yandex.cloud.searchapi.v2.GetDynamicsRequest
	7,  // 14: yandex.cloud.searchapi.v2.WordstatService.GetRegionsDistribution:input_type -> yandex.cloud.searchapi.v2.GetRegionsDistributionRequest
	4,  // 15: yandex.cloud.searchapi.v2.WordstatService.GetTop:output_type -> yandex.cloud.searchapi.v2.GetTopResponse
	6,  // 16: yandex.cloud.searchapi.v2.WordstatService.GetDynamics:output_type -> yandex.cloud.searchapi.v2.GetDynamicsResponse
	8,  // 17: yandex.cloud.searchapi.v2.WordstatService.GetRegionsDistribution:output_type -> yandex.cloud.searchapi.v2.GetRegionsDistributionResponse
	15, // [15:18] is the sub-list for method output_type
	12, // [12:15] is the sub-list for method input_type
	12, // [12:12] is the sub-list for extension type_name
	12, // [12:12] is the sub-list for extension extendee
	0,  // [0:12] is the sub-list for field type_name
}

func init() { file_yandex_cloud_searchapi_v2_wordstat_service_proto_init() }
func file_yandex_cloud_searchapi_v2_wordstat_service_proto_init() {
	if File_yandex_cloud_searchapi_v2_wordstat_service_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_searchapi_v2_wordstat_service_proto_rawDesc), len(file_yandex_cloud_searchapi_v2_wordstat_service_proto_rawDesc)),
			NumEnums:      3,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_searchapi_v2_wordstat_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_searchapi_v2_wordstat_service_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_searchapi_v2_wordstat_service_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_searchapi_v2_wordstat_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_searchapi_v2_wordstat_service_proto = out.File
	file_yandex_cloud_searchapi_v2_wordstat_service_proto_goTypes = nil
	file_yandex_cloud_searchapi_v2_wordstat_service_proto_depIdxs = nil
}
