// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/ai/assistants/v1/threads/message_service.proto

package threads

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "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 to create a new message in a specific thread.
type CreateMessageRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the thread to which the message will be added.
	ThreadId string `protobuf:"bytes,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"`
	// Author of the message, containing details about the message's creator.
	// If not provided, the default author ID specified in the corresponding thread will be used.
	Author *Author `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	// Set of key-value pairs to label the message.
	Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Content of the message.
	Content       *MessageContent `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateMessageRequest) ProtoMessage() {}

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

func (x *CreateMessageRequest) GetThreadId() string {
	if x != nil {
		return x.ThreadId
	}
	return ""
}

func (x *CreateMessageRequest) GetAuthor() *Author {
	if x != nil {
		return x.Author
	}
	return nil
}

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

func (x *CreateMessageRequest) GetContent() *MessageContent {
	if x != nil {
		return x.Content
	}
	return nil
}

// Request message for retrieving a message from a thread.
type GetMessageRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the thread that contains the message.
	ThreadId string `protobuf:"bytes,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"`
	// ID of the message to retrieve.
	MessageId     string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetMessageRequest) ProtoMessage() {}

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

func (x *GetMessageRequest) GetThreadId() string {
	if x != nil {
		return x.ThreadId
	}
	return ""
}

func (x *GetMessageRequest) GetMessageId() string {
	if x != nil {
		return x.MessageId
	}
	return ""
}

// Request message for listing messages in a specific thread.
type ListMessagesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the thread whose messages will be listed.
	ThreadId      string `protobuf:"bytes,1,opt,name=thread_id,json=threadId,proto3" json:"thread_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMessagesRequest) ProtoMessage() {}

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

func (x *ListMessagesRequest) GetThreadId() string {
	if x != nil {
		return x.ThreadId
	}
	return ""
}

var File_yandex_cloud_ai_assistants_v1_threads_message_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDesc = "" +
	"\n" +
	";yandex/cloud/ai/assistants/v1/threads/message_service.proto\x12%yandex.cloud.ai.assistants.v1.threads\x1a3yandex/cloud/ai/assistants/v1/threads/message.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\"\xf3\x02\n" +
	"\x14CreateMessageRequest\x12!\n" +
	"\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bthreadId\x12E\n" +
	"\x06author\x18\x02 \x01(\v2-.yandex.cloud.ai.assistants.v1.threads.AuthorR\x06author\x12_\n" +
	"\x06labels\x18\x03 \x03(\v2G.yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.LabelsEntryR\x06labels\x12U\n" +
	"\acontent\x18\x04 \x01(\v25.yandex.cloud.ai.assistants.v1.threads.MessageContentB\x04\xe8\xc71\x01R\acontent\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"[\n" +
	"\x11GetMessageRequest\x12!\n" +
	"\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bthreadId\x12#\n" +
	"\n" +
	"message_id\x18\x02 \x01(\tB\x04\xe8\xc71\x01R\tmessageId\"8\n" +
	"\x13ListMessagesRequest\x12!\n" +
	"\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bthreadId2\xe4\x03\n" +
	"\x0eMessageService\x12\x99\x01\n" +
	"\x06Create\x12;.yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/assistants/v1/messages\x12\x9d\x01\n" +
	"\x03Get\x128.yandex.cloud.ai.assistants.v1.threads.GetMessageRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\",\x82\xd3\xe4\x93\x02&\x12$/assistants/v1/messages/{message_id}\x12\x95\x01\n" +
	"\x04List\x12:.yandex.cloud.ai.assistants.v1.threads.ListMessagesRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/assistants/v1/messages0\x01B~\n" +
	")yandex.cloud.api.ai.assistants.v1.threadsZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/threads;threadsb\x06proto3"

var (
	file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescData []byte
)

func file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDesc), len(file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDesc)))
	})
	return file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDescData
}

var file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_goTypes = []any{
	(*CreateMessageRequest)(nil), // 0: yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest
	(*GetMessageRequest)(nil),    // 1: yandex.cloud.ai.assistants.v1.threads.GetMessageRequest
	(*ListMessagesRequest)(nil),  // 2: yandex.cloud.ai.assistants.v1.threads.ListMessagesRequest
	nil,                          // 3: yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.LabelsEntry
	(*Author)(nil),               // 4: yandex.cloud.ai.assistants.v1.threads.Author
	(*MessageContent)(nil),       // 5: yandex.cloud.ai.assistants.v1.threads.MessageContent
	(*Message)(nil),              // 6: yandex.cloud.ai.assistants.v1.threads.Message
}
var file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.author:type_name -> yandex.cloud.ai.assistants.v1.threads.Author
	3, // 1: yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.labels:type_name -> yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.LabelsEntry
	5, // 2: yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.content:type_name -> yandex.cloud.ai.assistants.v1.threads.MessageContent
	0, // 3: yandex.cloud.ai.assistants.v1.threads.MessageService.Create:input_type -> yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest
	1, // 4: yandex.cloud.ai.assistants.v1.threads.MessageService.Get:input_type -> yandex.cloud.ai.assistants.v1.threads.GetMessageRequest
	2, // 5: yandex.cloud.ai.assistants.v1.threads.MessageService.List:input_type -> yandex.cloud.ai.assistants.v1.threads.ListMessagesRequest
	6, // 6: yandex.cloud.ai.assistants.v1.threads.MessageService.Create:output_type -> yandex.cloud.ai.assistants.v1.threads.Message
	6, // 7: yandex.cloud.ai.assistants.v1.threads.MessageService.Get:output_type -> yandex.cloud.ai.assistants.v1.threads.Message
	6, // 8: yandex.cloud.ai.assistants.v1.threads.MessageService.List:output_type -> yandex.cloud.ai.assistants.v1.threads.Message
	6, // [6:9] is the sub-list for method output_type
	3, // [3:6] 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_assistants_v1_threads_message_service_proto_init() }
func file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_init() {
	if File_yandex_cloud_ai_assistants_v1_threads_message_service_proto != nil {
		return
	}
	file_yandex_cloud_ai_assistants_v1_threads_message_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_assistants_v1_threads_message_service_proto_rawDesc), len(file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ai_assistants_v1_threads_message_service_proto = out.File
	file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_goTypes = nil
	file_yandex_cloud_ai_assistants_v1_threads_message_service_proto_depIdxs = nil
}
