// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.34.2
// 	protoc        v3.21.12
// source: yandex/cloud/ai/vision/v1/image_copy_search.proto

package vision

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

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 ImageCopySearchAnnotation struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Number of image copies
	CopyCount int64 `protobuf:"varint,1,opt,name=copy_count,json=copyCount,proto3" json:"copy_count,omitempty"`
	// Top relevance result of image copy search
	TopResults []*CopyMatch `protobuf:"bytes,2,rep,name=top_results,json=topResults,proto3" json:"top_results,omitempty"`
}

func (x *ImageCopySearchAnnotation) Reset() {
	*x = ImageCopySearchAnnotation{}
	if protoimpl.UnsafeEnabled {
		mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*ImageCopySearchAnnotation) ProtoMessage() {}

func (x *ImageCopySearchAnnotation) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ImageCopySearchAnnotation.ProtoReflect.Descriptor instead.
func (*ImageCopySearchAnnotation) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP(), []int{0}
}

func (x *ImageCopySearchAnnotation) GetCopyCount() int64 {
	if x != nil {
		return x.CopyCount
	}
	return 0
}

func (x *ImageCopySearchAnnotation) GetTopResults() []*CopyMatch {
	if x != nil {
		return x.TopResults
	}
	return nil
}

type CopyMatch struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// url of image
	ImageUrl string `protobuf:"bytes,1,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	// url of page that contains image
	PageUrl string `protobuf:"bytes,2,opt,name=page_url,json=pageUrl,proto3" json:"page_url,omitempty"`
	// page title that contains image
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// image description
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}

func (x *CopyMatch) Reset() {
	*x = CopyMatch{}
	if protoimpl.UnsafeEnabled {
		mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*CopyMatch) ProtoMessage() {}

func (x *CopyMatch) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CopyMatch.ProtoReflect.Descriptor instead.
func (*CopyMatch) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP(), []int{1}
}

func (x *CopyMatch) GetImageUrl() string {
	if x != nil {
		return x.ImageUrl
	}
	return ""
}

func (x *CopyMatch) GetPageUrl() string {
	if x != nil {
		return x.PageUrl
	}
	return ""
}

func (x *CopyMatch) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *CopyMatch) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

var File_yandex_cloud_ai_vision_v1_image_copy_search_proto protoreflect.FileDescriptor

var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc = []byte{
	0x0a, 0x31, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
	0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67,
	0x65, 0x5f, 0x63, 0x6f, 0x70, 0x79, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x12, 0x19, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
	0x64, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x81,
	0x01, 0x0a, 0x19, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x70, 0x79, 0x53, 0x65, 0x61, 0x72,
	0x63, 0x68, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a,
	0x63, 0x6f, 0x70, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
	0x52, 0x09, 0x63, 0x6f, 0x70, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x74,
	0x6f, 0x70, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
	0x32, 0x24, 0x2e, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
	0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x70,
	0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x0a, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x75, 0x6c,
	0x74, 0x73, 0x22, 0x7b, 0x0a, 0x09, 0x43, 0x6f, 0x70, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12,
	0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08,
	0x70, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
	0x70, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a,
	0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
	0x65, 0x0a, 0x1d, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
	0x61, 0x70, 0x69, 0x2e, 0x61, 0x69, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
	0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x79, 0x61, 0x6e,
	0x64, 0x65, 0x78, 0x2d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x65, 0x6e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x79, 0x61, 0x6e, 0x64, 0x65, 0x78, 0x2f, 0x63, 0x6c, 0x6f,
	0x75, 0x64, 0x2f, 0x61, 0x69, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b,
	0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData = file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc
)

func file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData = protoimpl.X.CompressGZIP(file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData)
	})
	return file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDescData
}

var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes = []any{
	(*ImageCopySearchAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation
	(*CopyMatch)(nil),                 // 1: yandex.cloud.ai.vision.v1.CopyMatch
}
var file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation.top_results:type_name -> yandex.cloud.ai.vision.v1.CopyMatch
	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_yandex_cloud_ai_vision_v1_image_copy_search_proto_init() }
func file_yandex_cloud_ai_vision_v1_image_copy_search_proto_init() {
	if File_yandex_cloud_ai_vision_v1_image_copy_search_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[0].Exporter = func(v any, i int) any {
			switch v := v.(*ImageCopySearchAnnotation); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes[1].Exporter = func(v any, i int) any {
			switch v := v.(*CopyMatch); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_vision_v1_image_copy_search_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_vision_v1_image_copy_search_proto = out.File
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_rawDesc = nil
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_goTypes = nil
	file_yandex_cloud_ai_vision_v1_image_copy_search_proto_depIdxs = nil
}
