// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service.proto

package image_generation

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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)
)

// Request for the service to generate an image.
//
// For examples of usage, see [step-by-step guide](/docs/foundation-models/operations/yandexart/request).
type ImageGenerationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The [model URI](/docs/foundation-models/concepts/yandexart/models) to be used for image generation.
	ModelUri string `protobuf:"bytes,1,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"`
	// A list of messages representing the context for the image generation model.
	Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// Image generation options.
	GenerationOptions *ImageGenerationOptions `protobuf:"bytes,3,opt,name=generation_options,json=generationOptions,proto3" json:"generation_options,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*ImageGenerationRequest) ProtoMessage() {}

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

func (x *ImageGenerationRequest) GetModelUri() string {
	if x != nil {
		return x.ModelUri
	}
	return ""
}

func (x *ImageGenerationRequest) GetMessages() []*Message {
	if x != nil {
		return x.Messages
	}
	return nil
}

func (x *ImageGenerationRequest) GetGenerationOptions() *ImageGenerationOptions {
	if x != nil {
		return x.GenerationOptions
	}
	return nil
}

// Response containing generated image.
type ImageGenerationResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The image is serialized as an array of bytes encoded in [Base64](https://en.wikipedia.org/wiki/Base64).
	Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// The model version changes with each new releases.
	ModelVersion  string `protobuf:"bytes,2,opt,name=model_version,json=modelVersion,proto3" json:"model_version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ImageGenerationResponse) ProtoMessage() {}

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

func (x *ImageGenerationResponse) GetImage() []byte {
	if x != nil {
		return x.Image
	}
	return nil
}

func (x *ImageGenerationResponse) GetModelVersion() string {
	if x != nil {
		return x.ModelVersion
	}
	return ""
}

var File_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDesc = "" +
	"\n" +
	"Tyandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service.proto\x125yandex.cloud.ai.foundation_models.v1.image_generation\x1a\x1cgoogle/api/annotations.proto\x1aLyandex/cloud/ai/foundation_models/v1/image_generation/image_generation.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\"\x8f\x02\n" +
	"\x16ImageGenerationRequest\x12\x1b\n" +
	"\tmodel_uri\x18\x01 \x01(\tR\bmodelUri\x12Z\n" +
	"\bmessages\x18\x02 \x03(\v2>.yandex.cloud.ai.foundation_models.v1.image_generation.MessageR\bmessages\x12|\n" +
	"\x12generation_options\x18\x03 \x01(\v2M.yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationOptionsR\x11generationOptions\"T\n" +
	"\x17ImageGenerationResponse\x12\x14\n" +
	"\x05image\x18\x01 \x01(\fR\x05image\x12#\n" +
	"\rmodel_version\x18\x02 \x01(\tR\fmodelVersion2\xef\x01\n" +
	"\x1bImageGenerationAsyncService\x12\xcf\x01\n" +
	"\bGenerate\x12M.yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationRequest\x1a!.yandex.cloud.operation.Operation\"Q\xb2\xd2*\x19\x12\x17ImageGenerationResponse\x82\xd3\xe4\x93\x02.:\x01*\")/foundationModels/v1/imageGenerationAsyncB\xa7\x01\n" +
	"9yandex.cloud.api.ai.foundation_models.v1.image_generationZjgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1/image_generation;image_generationb\x06proto3"

var (
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescData []byte
)

func file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDesc), len(file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDescData
}

var file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_goTypes = []any{
	(*ImageGenerationRequest)(nil),  // 0: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationRequest
	(*ImageGenerationResponse)(nil), // 1: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationResponse
	(*Message)(nil),                 // 2: yandex.cloud.ai.foundation_models.v1.image_generation.Message
	(*ImageGenerationOptions)(nil),  // 3: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationOptions
	(*operation.Operation)(nil),     // 4: yandex.cloud.operation.Operation
}
var file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationRequest.messages:type_name -> yandex.cloud.ai.foundation_models.v1.image_generation.Message
	3, // 1: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationRequest.generation_options:type_name -> yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationOptions
	0, // 2: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationAsyncService.Generate:input_type -> yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationRequest
	4, // 3: yandex.cloud.ai.foundation_models.v1.image_generation.ImageGenerationAsyncService.Generate:output_type -> yandex.cloud.operation.Operation
	3, // [3:4] is the sub-list for method output_type
	2, // [2:3] 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_foundation_models_v1_image_generation_image_generation_service_proto_init()
}
func file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_init() {
	if File_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto != nil {
		return
	}
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_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_foundation_models_v1_image_generation_image_generation_service_proto_rawDesc), len(file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto = out.File
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_goTypes = nil
	file_yandex_cloud_ai_foundation_models_v1_image_generation_image_generation_service_proto_depIdxs = nil
}
