// 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/v2/image.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 of image
type Image_ImageType int32

const (
	Image_IMAGE_TYPE_UNSPECIFIED Image_ImageType = 0
	Image_JPEG                   Image_ImageType = 1
	Image_PNG                    Image_ImageType = 2
)

// Enum value maps for Image_ImageType.
var (
	Image_ImageType_name = map[int32]string{
		0: "IMAGE_TYPE_UNSPECIFIED",
		1: "JPEG",
		2: "PNG",
	}
	Image_ImageType_value = map[string]int32{
		"IMAGE_TYPE_UNSPECIFIED": 0,
		"JPEG":                   1,
		"PNG":                    2,
	}
)

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

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

func (Image_ImageType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_ai_vision_v2_image_proto_enumTypes[0].Descriptor()
}

func (Image_ImageType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_ai_vision_v2_image_proto_enumTypes[0]
}

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

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

type Image struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to ImageSource:
	//
	//	*Image_Content
	ImageSource isImage_ImageSource `protobuf_oneof:"ImageSource"`
	// type of data
	ImageType     Image_ImageType `protobuf:"varint,2,opt,name=image_type,json=imageType,proto3,enum=yandex.cloud.ai.vision.v2.Image_ImageType" json:"image_type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Image) ProtoMessage() {}

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

func (x *Image) GetImageSource() isImage_ImageSource {
	if x != nil {
		return x.ImageSource
	}
	return nil
}

func (x *Image) GetContent() []byte {
	if x != nil {
		if x, ok := x.ImageSource.(*Image_Content); ok {
			return x.Content
		}
	}
	return nil
}

func (x *Image) GetImageType() Image_ImageType {
	if x != nil {
		return x.ImageType
	}
	return Image_IMAGE_TYPE_UNSPECIFIED
}

type isImage_ImageSource interface {
	isImage_ImageSource()
}

type Image_Content struct {
	// bytes with data
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}

func (*Image_Content) isImage_ImageSource() {}

var File_yandex_cloud_ai_vision_v2_image_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_vision_v2_image_proto_rawDesc = "" +
	"\n" +
	"%yandex/cloud/ai/vision/v2/image.proto\x12\x19yandex.cloud.ai.vision.v2\"\xb9\x01\n" +
	"\x05Image\x12\x1a\n" +
	"\acontent\x18\x01 \x01(\fH\x00R\acontent\x12I\n" +
	"\n" +
	"image_type\x18\x02 \x01(\x0e2*.yandex.cloud.ai.vision.v2.Image.ImageTypeR\timageType\":\n" +
	"\tImageType\x12\x1a\n" +
	"\x16IMAGE_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04JPEG\x10\x01\x12\a\n" +
	"\x03PNG\x10\x02B\r\n" +
	"\vImageSourceBe\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_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_vision_v2_image_proto_rawDescData []byte
)

func file_yandex_cloud_ai_vision_v2_image_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_vision_v2_image_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_vision_v2_image_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_vision_v2_image_proto_rawDesc), len(file_yandex_cloud_ai_vision_v2_image_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_vision_v2_image_proto_rawDescData
}

var file_yandex_cloud_ai_vision_v2_image_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_ai_vision_v2_image_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_ai_vision_v2_image_proto_goTypes = []any{
	(Image_ImageType)(0), // 0: yandex.cloud.ai.vision.v2.Image.ImageType
	(*Image)(nil),        // 1: yandex.cloud.ai.vision.v2.Image
}
var file_yandex_cloud_ai_vision_v2_image_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.ai.vision.v2.Image.image_type:type_name -> yandex.cloud.ai.vision.v2.Image.ImageType
	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_v2_image_proto_init() }
func file_yandex_cloud_ai_vision_v2_image_proto_init() {
	if File_yandex_cloud_ai_vision_v2_image_proto != nil {
		return
	}
	file_yandex_cloud_ai_vision_v2_image_proto_msgTypes[0].OneofWrappers = []any{
		(*Image_Content)(nil),
	}
	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_proto_rawDesc), len(file_yandex_cloud_ai_vision_v2_image_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_ai_vision_v2_image_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_vision_v2_image_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_ai_vision_v2_image_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_ai_vision_v2_image_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_vision_v2_image_proto = out.File
	file_yandex_cloud_ai_vision_v2_image_proto_goTypes = nil
	file_yandex_cloud_ai_vision_v2_image_proto_depIdxs = nil
}
