// Code generated by protoc-gen-goext. DO NOT EDIT.

package threads

import (
	searchindex "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/searchindex"
	v1 "github.com/yandex-cloud/go-genproto/yandex/cloud/ai/files/v1"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

func (m *Message) SetId(v string) {
	m.Id = v
}

func (m *Message) SetThreadId(v string) {
	m.ThreadId = v
}

func (m *Message) SetCreatedBy(v string) {
	m.CreatedBy = v
}

func (m *Message) SetCreatedAt(v *timestamppb.Timestamp) {
	m.CreatedAt = v
}

func (m *Message) SetAuthor(v *Author) {
	m.Author = v
}

func (m *Message) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *Message) SetContent(v *MessageContent) {
	m.Content = v
}

func (m *Message) SetStatus(v Message_MessageStatus) {
	m.Status = v
}

func (m *Message) SetCitations(v []*Citation) {
	m.Citations = v
}

func (m *MessageContent) SetContent(v []*ContentPart) {
	m.Content = v
}

func (m *MessageData) SetAuthor(v *Author) {
	m.Author = v
}

func (m *MessageData) SetLabels(v map[string]string) {
	m.Labels = v
}

func (m *MessageData) SetContent(v *MessageContent) {
	m.Content = v
}

func (m *Text) SetContent(v string) {
	m.Content = v
}

type ContentPart_PartType = isContentPart_PartType

func (m *ContentPart) SetPartType(v ContentPart_PartType) {
	m.PartType = v
}

func (m *ContentPart) SetText(v *Text) {
	m.PartType = &ContentPart_Text{
		Text: v,
	}
}

func (m *Author) SetId(v string) {
	m.Id = v
}

func (m *Author) SetRole(v string) {
	m.Role = v
}

func (m *Citation) SetSources(v []*Source) {
	m.Sources = v
}

type Source_SourceType = isSource_SourceType

func (m *Source) SetSourceType(v Source_SourceType) {
	m.SourceType = v
}

func (m *Source) SetChunk(v *FileChunk) {
	m.SourceType = &Source_Chunk{
		Chunk: v,
	}
}

func (m *FileChunk) SetSearchIndex(v *searchindex.SearchIndex) {
	m.SearchIndex = v
}

func (m *FileChunk) SetSourceFile(v *v1.File) {
	m.SourceFile = v
}

func (m *FileChunk) SetContent(v *ChunkContent) {
	m.Content = v
}

func (m *ChunkContent) SetContent(v []*ContentPart) {
	m.Content = v
}
