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

package vision

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 ClassifierSpecification_ClassificationType int32

const (
	ClassifierSpecification_CLASSIFICATION_TYPE_UNSPECIFIED ClassifierSpecification_ClassificationType = 0
	ClassifierSpecification_MULTI_LABEL                     ClassifierSpecification_ClassificationType = 1
	ClassifierSpecification_MULTI_CLASS                     ClassifierSpecification_ClassificationType = 2
)

// Enum value maps for ClassifierSpecification_ClassificationType.
var (
	ClassifierSpecification_ClassificationType_name = map[int32]string{
		0: "CLASSIFICATION_TYPE_UNSPECIFIED",
		1: "MULTI_LABEL",
		2: "MULTI_CLASS",
	}
	ClassifierSpecification_ClassificationType_value = map[string]int32{
		"CLASSIFICATION_TYPE_UNSPECIFIED": 0,
		"MULTI_LABEL":                     1,
		"MULTI_CLASS":                     2,
	}
)

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

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

func (ClassifierSpecification_ClassificationType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_vision_v2_image_classifier_proto_enumTypes[0].Descriptor()
}

func (ClassifierSpecification_ClassificationType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_vision_v2_image_classifier_proto_enumTypes[0]
}

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

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

// Description of single label
type Label struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Label name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// human readable description of label
	Description   string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Label) ProtoMessage() {}

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

func (x *Label) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

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

// Image annotation for specific label
type ClassAnnotation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// list of annotated labels
	Label *Label `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// confidence for each label
	Confidence    float64 `protobuf:"fixed64,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClassAnnotation) ProtoMessage() {}

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

func (x *ClassAnnotation) GetLabel() *Label {
	if x != nil {
		return x.Label
	}
	return nil
}

func (x *ClassAnnotation) GetConfidence() float64 {
	if x != nil {
		return x.Confidence
	}
	return 0
}

// Specification of model used for annotation
type ClassifierSpecification struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of labels, annotated by service
	Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// type of annotation: exclusive (multi-class) or non-exclusive (multi-label)
	ClassificationType ClassifierSpecification_ClassificationType `protobuf:"varint,2,opt,name=classification_type,json=classificationType,proto3,enum=yandex.cloud.ai.vision.v2.ClassifierSpecification_ClassificationType" json:"classification_type,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*ClassifierSpecification) ProtoMessage() {}

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

func (x *ClassifierSpecification) GetLabels() []*Label {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *ClassifierSpecification) GetClassificationType() ClassifierSpecification_ClassificationType {
	if x != nil {
		return x.ClassificationType
	}
	return ClassifierSpecification_CLASSIFICATION_TYPE_UNSPECIFIED
}

type AnnotationResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// internal service requestId
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// class specification
	ClassifierSpecification *ClassifierSpecification `protobuf:"bytes,2,opt,name=classifier_specification,json=classifierSpecification,proto3" json:"classifier_specification,omitempty"`
	// annotations for each class
	Annotations   []*ClassAnnotation `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AnnotationResponse) ProtoMessage() {}

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

func (x *AnnotationResponse) GetRequestId() string {
	if x != nil {
		return x.RequestId
	}
	return ""
}

func (x *AnnotationResponse) GetClassifierSpecification() *ClassifierSpecification {
	if x != nil {
		return x.ClassifierSpecification
	}
	return nil
}

func (x *AnnotationResponse) GetAnnotations() []*ClassAnnotation {
	if x != nil {
		return x.Annotations
	}
	return nil
}

// request for annotation
type AnnotationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// image to annotate
	Image         *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AnnotationRequest) ProtoMessage() {}

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

func (x *AnnotationRequest) GetImage() *Image {
	if x != nil {
		return x.Image
	}
	return nil
}

var File_yandex_cloud_ai_vision_v2_image_classifier_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDesc = "" +
	"\n" +
	"0yandex/cloud/ai/vision/v2/image_classifier.proto\x12\x19yandex.cloud.ai.vision.v2\x1a%yandex/cloud/ai/vision/v2/image.proto\"=\n" +
	"\x05Label\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x02 \x01(\tR\vdescription\"i\n" +
	"\x0fClassAnnotation\x126\n" +
	"\x05label\x18\x01 \x01(\v2 .yandex.cloud.ai.vision.v2.LabelR\x05label\x12\x1e\n" +
	"\n" +
	"confidence\x18\x02 \x01(\x01R\n" +
	"confidence\"\xa8\x02\n" +
	"\x17ClassifierSpecification\x128\n" +
	"\x06labels\x18\x01 \x03(\v2 .yandex.cloud.ai.vision.v2.LabelR\x06labels\x12v\n" +
	"\x13classification_type\x18\x02 \x01(\x0e2E.yandex.cloud.ai.vision.v2.ClassifierSpecification.ClassificationTypeR\x12classificationType\"[\n" +
	"\x12ClassificationType\x12#\n" +
	"\x1fCLASSIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n" +
	"\vMULTI_LABEL\x10\x01\x12\x0f\n" +
	"\vMULTI_CLASS\x10\x02\"\xf0\x01\n" +
	"\x12AnnotationResponse\x12\x1d\n" +
	"\n" +
	"request_id\x18\x01 \x01(\tR\trequestId\x12m\n" +
	"\x18classifier_specification\x18\x02 \x01(\v22.yandex.cloud.ai.vision.v2.ClassifierSpecificationR\x17classifierSpecification\x12L\n" +
	"\vannotations\x18\x03 \x03(\v2*.yandex.cloud.ai.vision.v2.ClassAnnotationR\vannotations\"K\n" +
	"\x11AnnotationRequest\x126\n" +
	"\x05image\x18\x01 \x01(\v2 .yandex.cloud.ai.vision.v2.ImageR\x05imageBe\n" +
	"\x1dyandex.cloud.api.ai.vision.v2ZDgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v2;visionb\x06proto3"

var (
	file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescData []byte
)

func file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDesc), len(file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDescData
}

var file_yandex_cloud_ai_vision_v2_image_classifier_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_ai_vision_v2_image_classifier_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_ai_vision_v2_image_classifier_proto_goTypes = []any{
	(ClassifierSpecification_ClassificationType)(0), // 0: yandex.cloud.ai.vision.v2.ClassifierSpecification.ClassificationType
	(*Label)(nil),                   // 1: yandex.cloud.ai.vision.v2.Label
	(*ClassAnnotation)(nil),         // 2: yandex.cloud.ai.vision.v2.ClassAnnotation
	(*ClassifierSpecification)(nil), // 3: yandex.cloud.ai.vision.v2.ClassifierSpecification
	(*AnnotationResponse)(nil),      // 4: yandex.cloud.ai.vision.v2.AnnotationResponse
	(*AnnotationRequest)(nil),       // 5: yandex.cloud.ai.vision.v2.AnnotationRequest
	(*Image)(nil),                   // 6: yandex.cloud.ai.vision.v2.Image
}
var file_yandex_cloud_ai_vision_v2_image_classifier_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.ai.vision.v2.ClassAnnotation.label:type_name -> yandex.cloud.ai.vision.v2.Label
	1, // 1: yandex.cloud.ai.vision.v2.ClassifierSpecification.labels:type_name -> yandex.cloud.ai.vision.v2.Label
	0, // 2: yandex.cloud.ai.vision.v2.ClassifierSpecification.classification_type:type_name -> yandex.cloud.ai.vision.v2.ClassifierSpecification.ClassificationType
	3, // 3: yandex.cloud.ai.vision.v2.AnnotationResponse.classifier_specification:type_name -> yandex.cloud.ai.vision.v2.ClassifierSpecification
	2, // 4: yandex.cloud.ai.vision.v2.AnnotationResponse.annotations:type_name -> yandex.cloud.ai.vision.v2.ClassAnnotation
	6, // 5: yandex.cloud.ai.vision.v2.AnnotationRequest.image:type_name -> yandex.cloud.ai.vision.v2.Image
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_ai_vision_v2_image_classifier_proto_init() }
func file_yandex_cloud_ai_vision_v2_image_classifier_proto_init() {
	if File_yandex_cloud_ai_vision_v2_image_classifier_proto != nil {
		return
	}
	file_yandex_cloud_ai_vision_v2_image_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDesc), len(file_yandex_cloud_ai_vision_v2_image_classifier_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_vision_v2_image_classifier_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_vision_v2_image_classifier_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_ai_vision_v2_image_classifier_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_ai_vision_v2_image_classifier_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_vision_v2_image_classifier_proto = out.File
	file_yandex_cloud_ai_vision_v2_image_classifier_proto_goTypes = nil
	file_yandex_cloud_ai_vision_v2_image_classifier_proto_depIdxs = nil
}
