// 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/v1/primitives.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 Polygon struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The bounding polygon vertices.
	Vertices      []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Polygon) ProtoMessage() {}

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

func (x *Polygon) GetVertices() []*Vertex {
	if x != nil {
		return x.Vertices
	}
	return nil
}

type Vertex struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// X coordinate in pixels.
	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// Y coordinate in pixels.
	Y             int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Vertex) ProtoMessage() {}

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

func (x *Vertex) GetX() int64 {
	if x != nil {
		return x.X
	}
	return 0
}

func (x *Vertex) GetY() int64 {
	if x != nil {
		return x.Y
	}
	return 0
}

var File_yandex_cloud_ai_vision_v1_primitives_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc = "" +
	"\n" +
	"*yandex/cloud/ai/vision/v1/primitives.proto\x12\x19yandex.cloud.ai.vision.v1\"H\n" +
	"\aPolygon\x12=\n" +
	"\bvertices\x18\x01 \x03(\v2!.yandex.cloud.ai.vision.v1.VertexR\bvertices\"$\n" +
	"\x06Vertex\x12\f\n" +
	"\x01x\x18\x01 \x01(\x03R\x01x\x12\f\n" +
	"\x01y\x18\x02 \x01(\x03R\x01yBe\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_primitives_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData []byte
)

func file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc), len(file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_vision_v1_primitives_proto_rawDescData
}

var file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes = []any{
	(*Polygon)(nil), // 0: yandex.cloud.ai.vision.v1.Polygon
	(*Vertex)(nil),  // 1: yandex.cloud.ai.vision.v1.Vertex
}
var file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.ai.vision.v1.Polygon.vertices:type_name -> yandex.cloud.ai.vision.v1.Vertex
	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_primitives_proto_init() }
func file_yandex_cloud_ai_vision_v1_primitives_proto_init() {
	if File_yandex_cloud_ai_vision_v1_primitives_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_ai_vision_v1_primitives_proto_rawDesc), len(file_yandex_cloud_ai_vision_v1_primitives_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_vision_v1_primitives_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_vision_v1_primitives_proto = out.File
	file_yandex_cloud_ai_vision_v1_primitives_proto_goTypes = nil
	file_yandex_cloud_ai_vision_v1_primitives_proto_depIdxs = nil
}
