// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/ai/vision/v1/face_detection.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 FaceAnnotation struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// An array of detected faces for the specified image.
	Faces         []*Face `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FaceAnnotation) ProtoMessage() {}

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

func (x *FaceAnnotation) GetFaces() []*Face {
	if x != nil {
		return x.Faces
	}
	return nil
}

type Face struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Area on the image where the face is located.
	BoundingBox   *Polygon `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Face) ProtoMessage() {}

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

func (x *Face) GetBoundingBox() *Polygon {
	if x != nil {
		return x.BoundingBox
	}
	return nil
}

var File_yandex_cloud_ai_vision_v1_face_detection_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc = "" +
	"\n" +
	".yandex/cloud/ai/vision/v1/face_detection.proto\x12\x19yandex.cloud.ai.vision.v1\x1a*yandex/cloud/ai/vision/v1/primitives.proto\"G\n" +
	"\x0eFaceAnnotation\x125\n" +
	"\x05faces\x18\x01 \x03(\v2\x1f.yandex.cloud.ai.vision.v1.FaceR\x05faces\"M\n" +
	"\x04Face\x12E\n" +
	"\fbounding_box\x18\x01 \x01(\v2\".yandex.cloud.ai.vision.v1.PolygonR\vboundingBoxBe\n" +
	"\x1dyandex.cloud.api.ai.vision.v1ZDgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/vision/v1;visionb\x06proto3"

var (
	file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData []byte
)

func file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc), len(file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDescData
}

var file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes = []any{
	(*FaceAnnotation)(nil), // 0: yandex.cloud.ai.vision.v1.FaceAnnotation
	(*Face)(nil),           // 1: yandex.cloud.ai.vision.v1.Face
	(*Polygon)(nil),        // 2: yandex.cloud.ai.vision.v1.Polygon
}
var file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.ai.vision.v1.FaceAnnotation.faces:type_name -> yandex.cloud.ai.vision.v1.Face
	2, // 1: yandex.cloud.ai.vision.v1.Face.bounding_box:type_name -> yandex.cloud.ai.vision.v1.Polygon
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_yandex_cloud_ai_vision_v1_face_detection_proto_init() }
func file_yandex_cloud_ai_vision_v1_face_detection_proto_init() {
	if File_yandex_cloud_ai_vision_v1_face_detection_proto != nil {
		return
	}
	file_yandex_cloud_ai_vision_v1_primitives_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_v1_face_detection_proto_rawDesc), len(file_yandex_cloud_ai_vision_v1_face_detection_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_vision_v1_face_detection_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_vision_v1_face_detection_proto = out.File
	file_yandex_cloud_ai_vision_v1_face_detection_proto_goTypes = nil
	file_yandex_cloud_ai_vision_v1_face_detection_proto_depIdxs = nil
}
