// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/speechsense/v1/text.proto

package speechsense

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 TextContent struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Messages      []*Message             `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextContent) ProtoMessage() {}

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

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

type Message struct {
	state     protoimpl.MessageState `protogen:"open.v1"`
	UserId    string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Types that are valid to be assigned to Payload:
	//
	//	*Message_Text
	Payload       isMessage_Payload `protobuf_oneof:"payload"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Message) ProtoMessage() {}

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

func (x *Message) GetUserId() string {
	if x != nil {
		return x.UserId
	}
	return ""
}

func (x *Message) GetTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.Timestamp
	}
	return nil
}

func (x *Message) GetPayload() isMessage_Payload {
	if x != nil {
		return x.Payload
	}
	return nil
}

func (x *Message) GetText() *TextPayload {
	if x != nil {
		if x, ok := x.Payload.(*Message_Text); ok {
			return x.Text
		}
	}
	return nil
}

type isMessage_Payload interface {
	isMessage_Payload()
}

type Message_Text struct {
	Text *TextPayload `protobuf:"bytes,3,opt,name=text,proto3,oneof"`
}

func (*Message_Text) isMessage_Payload() {}

type TextPayload struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Text          string                 `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TextPayload) ProtoMessage() {}

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

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

var File_yandex_cloud_speechsense_v1_text_proto protoreflect.FileDescriptor

const file_yandex_cloud_speechsense_v1_text_proto_rawDesc = "" +
	"\n" +
	"&yandex/cloud/speechsense/v1/text.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n" +
	"\vTextContent\x12@\n" +
	"\bmessages\x18\x01 \x03(\v2$.yandex.cloud.speechsense.v1.MessageR\bmessages\"\xa7\x01\n" +
	"\aMessage\x12\x17\n" +
	"\auser_id\x18\x01 \x01(\tR\x06userId\x128\n" +
	"\ttimestamp\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12>\n" +
	"\x04text\x18\x03 \x01(\v2(.yandex.cloud.speechsense.v1.TextPayloadH\x00R\x04textB\t\n" +
	"\apayload\"!\n" +
	"\vTextPayload\x12\x12\n" +
	"\x04text\x18\x01 \x01(\tR\x04textBy\n" +
	"\x1fyandex.cloud.api.speechsense.v1B\tTextProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3"

var (
	file_yandex_cloud_speechsense_v1_text_proto_rawDescOnce sync.Once
	file_yandex_cloud_speechsense_v1_text_proto_rawDescData []byte
)

func file_yandex_cloud_speechsense_v1_text_proto_rawDescGZIP() []byte {
	file_yandex_cloud_speechsense_v1_text_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_speechsense_v1_text_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_speechsense_v1_text_proto_rawDesc), len(file_yandex_cloud_speechsense_v1_text_proto_rawDesc)))
	})
	return file_yandex_cloud_speechsense_v1_text_proto_rawDescData
}

var file_yandex_cloud_speechsense_v1_text_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_speechsense_v1_text_proto_goTypes = []any{
	(*TextContent)(nil),           // 0: yandex.cloud.speechsense.v1.TextContent
	(*Message)(nil),               // 1: yandex.cloud.speechsense.v1.Message
	(*TextPayload)(nil),           // 2: yandex.cloud.speechsense.v1.TextPayload
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_speechsense_v1_text_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.speechsense.v1.TextContent.messages:type_name -> yandex.cloud.speechsense.v1.Message
	3, // 1: yandex.cloud.speechsense.v1.Message.timestamp:type_name -> google.protobuf.Timestamp
	2, // 2: yandex.cloud.speechsense.v1.Message.text:type_name -> yandex.cloud.speechsense.v1.TextPayload
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_speechsense_v1_text_proto_init() }
func file_yandex_cloud_speechsense_v1_text_proto_init() {
	if File_yandex_cloud_speechsense_v1_text_proto != nil {
		return
	}
	file_yandex_cloud_speechsense_v1_text_proto_msgTypes[1].OneofWrappers = []any{
		(*Message_Text)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_speechsense_v1_text_proto_rawDesc), len(file_yandex_cloud_speechsense_v1_text_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_speechsense_v1_text_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_speechsense_v1_text_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_speechsense_v1_text_proto_msgTypes,
	}.Build()
	File_yandex_cloud_speechsense_v1_text_proto = out.File
	file_yandex_cloud_speechsense_v1_text_proto_goTypes = nil
	file_yandex_cloud_speechsense_v1_text_proto_depIdxs = nil
}
