// 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/text_classification/text_classification_service.proto

package text_classification

import (
	_ "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 classify text with tuned model.
//
// The names of the classes between which the model will be distributing requests must be specified during model tuning;
// therefore, they are not provided in the request.
//
// For examples of usage, see [step-by-step guides](/docs/foundation-models/operations/classifier/additionally-trained).
type TextClassificationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The [URI](/docs/foundation-models/concepts/classifier/models) of your tuned classifier model.
	ModelUri string `protobuf:"bytes,1,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"`
	// Text for classification.
	Text          string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextClassificationRequest) ProtoMessage() {}

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

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

func (x *TextClassificationRequest) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

// Response with classifier predictions.
type TextClassificationResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The classification results with the `confidence“ values
	// for the probability of classifying the request text into each class.
	Predictions []*ClassificationLabel `protobuf:"bytes,1,rep,name=predictions,proto3" json:"predictions,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"`
	// Number of input tokens
	InputTokens   int64 `protobuf:"varint,3,opt,name=input_tokens,json=inputTokens,proto3" json:"input_tokens,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextClassificationResponse) ProtoMessage() {}

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

func (x *TextClassificationResponse) GetPredictions() []*ClassificationLabel {
	if x != nil {
		return x.Predictions
	}
	return nil
}

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

func (x *TextClassificationResponse) GetInputTokens() int64 {
	if x != nil {
		return x.InputTokens
	}
	return 0
}

// Request for the service to classify text.
// For examples of usage, see [step-by-step guides](/docs/foundation-models/operations/classifier/readymade).
type FewShotTextClassificationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The [URI](/docs/foundation-models/concepts/classifier/models) of the classifier model.
	ModelUri string `protobuf:"bytes,1,opt,name=model_uri,json=modelUri,proto3" json:"model_uri,omitempty"`
	// Text description of the classification task.
	TaskDescription string `protobuf:"bytes,2,opt,name=task_description,json=taskDescription,proto3" json:"task_description,omitempty"`
	// List of available labels for the classification result.
	// Give meaningful names to label classes: this is essential for correct classification results.
	// For example, use “chemistry“ and “physics“ rather than “chm“ and “phs“ for class names.
	Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	// Text for classification.
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	// Optional set of text samples with expected labels that may be used as an additional hint for the classifier.
	Samples       []*ClassificationSample `protobuf:"bytes,5,rep,name=samples,proto3" json:"samples,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FewShotTextClassificationRequest) ProtoMessage() {}

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

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

func (x *FewShotTextClassificationRequest) GetTaskDescription() string {
	if x != nil {
		return x.TaskDescription
	}
	return ""
}

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

func (x *FewShotTextClassificationRequest) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

func (x *FewShotTextClassificationRequest) GetSamples() []*ClassificationSample {
	if x != nil {
		return x.Samples
	}
	return nil
}

// Response containing classifier predictions.
type FewShotTextClassificationResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The classification results with the `confidence“ values
	// for the probability of classifying the request text into each class.
	Predictions []*ClassificationLabel `protobuf:"bytes,1,rep,name=predictions,proto3" json:"predictions,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"`
	// Number of input tokens
	InputTokens   int64 `protobuf:"varint,3,opt,name=input_tokens,json=inputTokens,proto3" json:"input_tokens,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FewShotTextClassificationResponse) ProtoMessage() {}

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

func (x *FewShotTextClassificationResponse) GetPredictions() []*ClassificationLabel {
	if x != nil {
		return x.Predictions
	}
	return nil
}

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

func (x *FewShotTextClassificationResponse) GetInputTokens() int64 {
	if x != nil {
		return x.InputTokens
	}
	return 0
}

var File_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDesc = "" +
	"\n" +
	"Zyandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service.proto\x128yandex.cloud.ai.foundation_models.v1.text_classification\x1a\x1cgoogle/api/annotations.proto\x1aRyandex/cloud/ai/foundation_models/v1/text_classification/text_classification.proto\"L\n" +
	"\x19TextClassificationRequest\x12\x1b\n" +
	"\tmodel_uri\x18\x01 \x01(\tR\bmodelUri\x12\x12\n" +
	"\x04text\x18\x02 \x01(\tR\x04text\"\xd5\x01\n" +
	"\x1aTextClassificationResponse\x12o\n" +
	"\vpredictions\x18\x01 \x03(\v2M.yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationLabelR\vpredictions\x12#\n" +
	"\rmodel_version\x18\x02 \x01(\tR\fmodelVersion\x12!\n" +
	"\finput_tokens\x18\x03 \x01(\x03R\vinputTokens\"\x80\x02\n" +
	" FewShotTextClassificationRequest\x12\x1b\n" +
	"\tmodel_uri\x18\x01 \x01(\tR\bmodelUri\x12)\n" +
	"\x10task_description\x18\x02 \x01(\tR\x0ftaskDescription\x12\x16\n" +
	"\x06labels\x18\x03 \x03(\tR\x06labels\x12\x12\n" +
	"\x04text\x18\x04 \x01(\tR\x04text\x12h\n" +
	"\asamples\x18\x05 \x03(\v2N.yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationSampleR\asamples\"\xdc\x01\n" +
	"!FewShotTextClassificationResponse\x12o\n" +
	"\vpredictions\x18\x01 \x03(\v2M.yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationLabelR\vpredictions\x12#\n" +
	"\rmodel_version\x18\x02 \x01(\tR\fmodelVersion\x12!\n" +
	"\finput_tokens\x18\x03 \x01(\x03R\vinputTokens2\x8f\x04\n" +
	"\x19TextClassificationService\x12\xe9\x01\n" +
	"\bClassify\x12S.yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationRequest\x1aT.yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationResponse\"2\x82\xd3\xe4\x93\x02,:\x01*\"'/foundationModels/v1/textClassification\x12\x85\x02\n" +
	"\x0fFewShotClassify\x12Z.yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationRequest\x1a[.yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationResponse\"9\x82\xd3\xe4\x93\x023:\x01*\"./foundationModels/v1/fewShotTextClassificationB\xb0\x01\n" +
	"<yandex.cloud.api.ai.foundation_models.v1.text_classificationZpgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/foundation_models/v1/text_classification;text_classificationb\x06proto3"

var (
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescData []byte
)

func file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDesc), len(file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDescData
}

var file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_goTypes = []any{
	(*TextClassificationRequest)(nil),         // 0: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationRequest
	(*TextClassificationResponse)(nil),        // 1: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationResponse
	(*FewShotTextClassificationRequest)(nil),  // 2: yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationRequest
	(*FewShotTextClassificationResponse)(nil), // 3: yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationResponse
	(*ClassificationLabel)(nil),               // 4: yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationLabel
	(*ClassificationSample)(nil),              // 5: yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationSample
}
var file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationResponse.predictions:type_name -> yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationLabel
	5, // 1: yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationRequest.samples:type_name -> yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationSample
	4, // 2: yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationResponse.predictions:type_name -> yandex.cloud.ai.foundation_models.v1.text_classification.ClassificationLabel
	0, // 3: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationService.Classify:input_type -> yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationRequest
	2, // 4: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationService.FewShotClassify:input_type -> yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationRequest
	1, // 5: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationService.Classify:output_type -> yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationResponse
	3, // 6: yandex.cloud.ai.foundation_models.v1.text_classification.TextClassificationService.FewShotClassify:output_type -> yandex.cloud.ai.foundation_models.v1.text_classification.FewShotTextClassificationResponse
	5, // [5:7] is the sub-list for method output_type
	3, // [3:5] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() {
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_init()
}
func file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_init() {
	if File_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto != nil {
		return
	}
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_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_text_classification_text_classification_service_proto_rawDesc), len(file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto = out.File
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_goTypes = nil
	file_yandex_cloud_ai_foundation_models_v1_text_classification_text_classification_service_proto_depIdxs = nil
}
