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

package stt

import (
	structpb "google.golang.org/protobuf/types/known/structpb"
)

func (m *TextNormalizationOptions) SetTextNormalization(v TextNormalizationOptions_TextNormalization) {
	m.TextNormalization = v
}

func (m *TextNormalizationOptions) SetProfanityFilter(v bool) {
	m.ProfanityFilter = v
}

func (m *TextNormalizationOptions) SetLiteratureText(v bool) {
	m.LiteratureText = v
}

func (m *TextNormalizationOptions) SetPhoneFormattingMode(v TextNormalizationOptions_PhoneFormattingMode) {
	m.PhoneFormattingMode = v
}

func (m *DefaultEouClassifier) SetType(v DefaultEouClassifier_EouSensitivity) {
	m.Type = v
}

func (m *DefaultEouClassifier) SetMaxPauseBetweenWordsHintMs(v int64) {
	m.MaxPauseBetweenWordsHintMs = v
}

type EouClassifierOptions_Classifier = isEouClassifierOptions_Classifier

func (m *EouClassifierOptions) SetClassifier(v EouClassifierOptions_Classifier) {
	m.Classifier = v
}

func (m *EouClassifierOptions) SetDefaultClassifier(v *DefaultEouClassifier) {
	m.Classifier = &EouClassifierOptions_DefaultClassifier{
		DefaultClassifier: v,
	}
}

func (m *EouClassifierOptions) SetExternalClassifier(v *ExternalEouClassifier) {
	m.Classifier = &EouClassifierOptions_ExternalClassifier{
		ExternalClassifier: v,
	}
}

func (m *RecognitionClassifier) SetClassifier(v string) {
	m.Classifier = v
}

func (m *RecognitionClassifier) SetTriggers(v []RecognitionClassifier_TriggerType) {
	m.Triggers = v
}

func (m *RecognitionClassifierOptions) SetClassifiers(v []*RecognitionClassifier) {
	m.Classifiers = v
}

func (m *SpeechAnalysisOptions) SetEnableSpeakerAnalysis(v bool) {
	m.EnableSpeakerAnalysis = v
}

func (m *SpeechAnalysisOptions) SetEnableConversationAnalysis(v bool) {
	m.EnableConversationAnalysis = v
}

func (m *SpeechAnalysisOptions) SetDescriptiveStatisticsQuantiles(v []float64) {
	m.DescriptiveStatisticsQuantiles = v
}

func (m *RawAudio) SetAudioEncoding(v RawAudio_AudioEncoding) {
	m.AudioEncoding = v
}

func (m *RawAudio) SetSampleRateHertz(v int64) {
	m.SampleRateHertz = v
}

func (m *RawAudio) SetAudioChannelCount(v int64) {
	m.AudioChannelCount = v
}

func (m *ContainerAudio) SetContainerAudioType(v ContainerAudio_ContainerAudioType) {
	m.ContainerAudioType = v
}

type AudioFormatOptions_AudioFormat = isAudioFormatOptions_AudioFormat

func (m *AudioFormatOptions) SetAudioFormat(v AudioFormatOptions_AudioFormat) {
	m.AudioFormat = v
}

func (m *AudioFormatOptions) SetRawAudio(v *RawAudio) {
	m.AudioFormat = &AudioFormatOptions_RawAudio{
		RawAudio: v,
	}
}

func (m *AudioFormatOptions) SetContainerAudio(v *ContainerAudio) {
	m.AudioFormat = &AudioFormatOptions_ContainerAudio{
		ContainerAudio: v,
	}
}

func (m *LanguageRestrictionOptions) SetRestrictionType(v LanguageRestrictionOptions_LanguageRestrictionType) {
	m.RestrictionType = v
}

func (m *LanguageRestrictionOptions) SetLanguageCode(v []string) {
	m.LanguageCode = v
}

func (m *JsonSchema) SetSchema(v *structpb.Struct) {
	m.Schema = v
}

type SummarizationProperty_ResponseFormat = isSummarizationProperty_ResponseFormat

func (m *SummarizationProperty) SetResponseFormat(v SummarizationProperty_ResponseFormat) {
	m.ResponseFormat = v
}

func (m *SummarizationProperty) SetInstruction(v string) {
	m.Instruction = v
}

func (m *SummarizationProperty) SetJsonObject(v bool) {
	m.ResponseFormat = &SummarizationProperty_JsonObject{
		JsonObject: v,
	}
}

func (m *SummarizationProperty) SetJsonSchema(v *JsonSchema) {
	m.ResponseFormat = &SummarizationProperty_JsonSchema{
		JsonSchema: v,
	}
}

func (m *SummarizationOptions) SetModelUri(v string) {
	m.ModelUri = v
}

func (m *SummarizationOptions) SetProperties(v []*SummarizationProperty) {
	m.Properties = v
}

func (m *SummarizationPropertyResult) SetResponse(v string) {
	m.Response = v
}

func (m *RecognitionModelOptions) SetModel(v string) {
	m.Model = v
}

func (m *RecognitionModelOptions) SetAudioFormat(v *AudioFormatOptions) {
	m.AudioFormat = v
}

func (m *RecognitionModelOptions) SetTextNormalization(v *TextNormalizationOptions) {
	m.TextNormalization = v
}

func (m *RecognitionModelOptions) SetLanguageRestriction(v *LanguageRestrictionOptions) {
	m.LanguageRestriction = v
}

func (m *RecognitionModelOptions) SetAudioProcessingType(v RecognitionModelOptions_AudioProcessingType) {
	m.AudioProcessingType = v
}

func (m *SpeakerLabelingOptions) SetSpeakerLabeling(v SpeakerLabelingOptions_SpeakerLabeling) {
	m.SpeakerLabeling = v
}

func (m *StreamingOptions) SetRecognitionModel(v *RecognitionModelOptions) {
	m.RecognitionModel = v
}

func (m *StreamingOptions) SetEouClassifier(v *EouClassifierOptions) {
	m.EouClassifier = v
}

func (m *StreamingOptions) SetRecognitionClassifier(v *RecognitionClassifierOptions) {
	m.RecognitionClassifier = v
}

func (m *StreamingOptions) SetSpeechAnalysis(v *SpeechAnalysisOptions) {
	m.SpeechAnalysis = v
}

func (m *StreamingOptions) SetSpeakerLabeling(v *SpeakerLabelingOptions) {
	m.SpeakerLabeling = v
}

func (m *StreamingOptions) SetSummarization(v *SummarizationOptions) {
	m.Summarization = v
}

func (m *AudioChunk) SetData(v []byte) {
	m.Data = v
}

func (m *SilenceChunk) SetDurationMs(v int64) {
	m.DurationMs = v
}

type StreamingRequest_Event = isStreamingRequest_Event

func (m *StreamingRequest) SetEvent(v StreamingRequest_Event) {
	m.Event = v
}

func (m *StreamingRequest) SetSessionOptions(v *StreamingOptions) {
	m.Event = &StreamingRequest_SessionOptions{
		SessionOptions: v,
	}
}

func (m *StreamingRequest) SetChunk(v *AudioChunk) {
	m.Event = &StreamingRequest_Chunk{
		Chunk: v,
	}
}

func (m *StreamingRequest) SetSilenceChunk(v *SilenceChunk) {
	m.Event = &StreamingRequest_SilenceChunk{
		SilenceChunk: v,
	}
}

func (m *StreamingRequest) SetEou(v *Eou) {
	m.Event = &StreamingRequest_Eou{
		Eou: v,
	}
}

type RecognizeFileRequest_AudioSource = isRecognizeFileRequest_AudioSource

func (m *RecognizeFileRequest) SetAudioSource(v RecognizeFileRequest_AudioSource) {
	m.AudioSource = v
}

func (m *RecognizeFileRequest) SetContent(v []byte) {
	m.AudioSource = &RecognizeFileRequest_Content{
		Content: v,
	}
}

func (m *RecognizeFileRequest) SetUri(v string) {
	m.AudioSource = &RecognizeFileRequest_Uri{
		Uri: v,
	}
}

func (m *RecognizeFileRequest) SetRecognitionModel(v *RecognitionModelOptions) {
	m.RecognitionModel = v
}

func (m *RecognizeFileRequest) SetRecognitionClassifier(v *RecognitionClassifierOptions) {
	m.RecognitionClassifier = v
}

func (m *RecognizeFileRequest) SetSpeechAnalysis(v *SpeechAnalysisOptions) {
	m.SpeechAnalysis = v
}

func (m *RecognizeFileRequest) SetSpeakerLabeling(v *SpeakerLabelingOptions) {
	m.SpeakerLabeling = v
}

func (m *RecognizeFileRequest) SetSummarization(v *SummarizationOptions) {
	m.Summarization = v
}

func (m *Word) SetText(v string) {
	m.Text = v
}

func (m *Word) SetStartTimeMs(v int64) {
	m.StartTimeMs = v
}

func (m *Word) SetEndTimeMs(v int64) {
	m.EndTimeMs = v
}

func (m *LanguageEstimation) SetLanguageCode(v string) {
	m.LanguageCode = v
}

func (m *LanguageEstimation) SetProbability(v float64) {
	m.Probability = v
}

func (m *Alternative) SetWords(v []*Word) {
	m.Words = v
}

func (m *Alternative) SetText(v string) {
	m.Text = v
}

func (m *Alternative) SetStartTimeMs(v int64) {
	m.StartTimeMs = v
}

func (m *Alternative) SetEndTimeMs(v int64) {
	m.EndTimeMs = v
}

func (m *Alternative) SetConfidence(v float64) {
	m.Confidence = v
}

func (m *Alternative) SetLanguages(v []*LanguageEstimation) {
	m.Languages = v
}

func (m *EouUpdate) SetTimeMs(v int64) {
	m.TimeMs = v
}

func (m *AlternativeUpdate) SetAlternatives(v []*Alternative) {
	m.Alternatives = v
}

func (m *AlternativeUpdate) SetChannelTag(v string) {
	m.ChannelTag = v
}

func (m *AudioCursors) SetReceivedDataMs(v int64) {
	m.ReceivedDataMs = v
}

func (m *AudioCursors) SetResetTimeMs(v int64) {
	m.ResetTimeMs = v
}

func (m *AudioCursors) SetPartialTimeMs(v int64) {
	m.PartialTimeMs = v
}

func (m *AudioCursors) SetFinalTimeMs(v int64) {
	m.FinalTimeMs = v
}

func (m *AudioCursors) SetFinalIndex(v int64) {
	m.FinalIndex = v
}

func (m *AudioCursors) SetEouTimeMs(v int64) {
	m.EouTimeMs = v
}

type FinalRefinement_Type = isFinalRefinement_Type

func (m *FinalRefinement) SetType(v FinalRefinement_Type) {
	m.Type = v
}

func (m *FinalRefinement) SetFinalIndex(v int64) {
	m.FinalIndex = v
}

func (m *FinalRefinement) SetNormalizedText(v *AlternativeUpdate) {
	m.Type = &FinalRefinement_NormalizedText{
		NormalizedText: v,
	}
}

func (m *StatusCode) SetCodeType(v CodeType) {
	m.CodeType = v
}

func (m *StatusCode) SetMessage(v string) {
	m.Message = v
}

func (m *SessionUuid) SetUuid(v string) {
	m.Uuid = v
}

func (m *SessionUuid) SetUserRequestId(v string) {
	m.UserRequestId = v
}

func (m *PhraseHighlight) SetText(v string) {
	m.Text = v
}

func (m *PhraseHighlight) SetStartTimeMs(v int64) {
	m.StartTimeMs = v
}

func (m *PhraseHighlight) SetEndTimeMs(v int64) {
	m.EndTimeMs = v
}

func (m *RecognitionClassifierLabel) SetLabel(v string) {
	m.Label = v
}

func (m *RecognitionClassifierLabel) SetConfidence(v float64) {
	m.Confidence = v
}

func (m *RecognitionClassifierResult) SetClassifier(v string) {
	m.Classifier = v
}

func (m *RecognitionClassifierResult) SetHighlights(v []*PhraseHighlight) {
	m.Highlights = v
}

func (m *RecognitionClassifierResult) SetLabels(v []*RecognitionClassifierLabel) {
	m.Labels = v
}

func (m *RecognitionClassifierUpdate) SetWindowType(v RecognitionClassifierUpdate_WindowType) {
	m.WindowType = v
}

func (m *RecognitionClassifierUpdate) SetStartTimeMs(v int64) {
	m.StartTimeMs = v
}

func (m *RecognitionClassifierUpdate) SetEndTimeMs(v int64) {
	m.EndTimeMs = v
}

func (m *RecognitionClassifierUpdate) SetClassifierResult(v *RecognitionClassifierResult) {
	m.ClassifierResult = v
}

func (m *DescriptiveStatistics) SetMin(v float64) {
	m.Min = v
}

func (m *DescriptiveStatistics) SetMax(v float64) {
	m.Max = v
}

func (m *DescriptiveStatistics) SetMean(v float64) {
	m.Mean = v
}

func (m *DescriptiveStatistics) SetStd(v float64) {
	m.Std = v
}

func (m *DescriptiveStatistics) SetQuantiles(v []*DescriptiveStatistics_Quantile) {
	m.Quantiles = v
}

func (m *DescriptiveStatistics_Quantile) SetLevel(v float64) {
	m.Level = v
}

func (m *DescriptiveStatistics_Quantile) SetValue(v float64) {
	m.Value = v
}

func (m *AudioSegmentBoundaries) SetStartTimeMs(v int64) {
	m.StartTimeMs = v
}

func (m *AudioSegmentBoundaries) SetEndTimeMs(v int64) {
	m.EndTimeMs = v
}

func (m *SpeakerAnalysis) SetSpeakerTag(v string) {
	m.SpeakerTag = v
}

func (m *SpeakerAnalysis) SetWindowType(v SpeakerAnalysis_WindowType) {
	m.WindowType = v
}

func (m *SpeakerAnalysis) SetSpeechBoundaries(v *AudioSegmentBoundaries) {
	m.SpeechBoundaries = v
}

func (m *SpeakerAnalysis) SetTotalSpeechMs(v int64) {
	m.TotalSpeechMs = v
}

func (m *SpeakerAnalysis) SetSpeechRatio(v float64) {
	m.SpeechRatio = v
}

func (m *SpeakerAnalysis) SetTotalSilenceMs(v int64) {
	m.TotalSilenceMs = v
}

func (m *SpeakerAnalysis) SetSilenceRatio(v float64) {
	m.SilenceRatio = v
}

func (m *SpeakerAnalysis) SetWordsCount(v int64) {
	m.WordsCount = v
}

func (m *SpeakerAnalysis) SetLettersCount(v int64) {
	m.LettersCount = v
}

func (m *SpeakerAnalysis) SetWordsPerSecond(v *DescriptiveStatistics) {
	m.WordsPerSecond = v
}

func (m *SpeakerAnalysis) SetLettersPerSecond(v *DescriptiveStatistics) {
	m.LettersPerSecond = v
}

func (m *SpeakerAnalysis) SetWordsPerUtterance(v *DescriptiveStatistics) {
	m.WordsPerUtterance = v
}

func (m *SpeakerAnalysis) SetLettersPerUtterance(v *DescriptiveStatistics) {
	m.LettersPerUtterance = v
}

func (m *SpeakerAnalysis) SetUtteranceCount(v int64) {
	m.UtteranceCount = v
}

func (m *SpeakerAnalysis) SetUtteranceDurationEstimation(v *DescriptiveStatistics) {
	m.UtteranceDurationEstimation = v
}

func (m *ConversationAnalysis) SetConversationBoundaries(v *AudioSegmentBoundaries) {
	m.ConversationBoundaries = v
}

func (m *ConversationAnalysis) SetTotalSimultaneousSilenceDurationMs(v int64) {
	m.TotalSimultaneousSilenceDurationMs = v
}

func (m *ConversationAnalysis) SetTotalSimultaneousSilenceRatio(v float64) {
	m.TotalSimultaneousSilenceRatio = v
}

func (m *ConversationAnalysis) SetSimultaneousSilenceDurationEstimation(v *DescriptiveStatistics) {
	m.SimultaneousSilenceDurationEstimation = v
}

func (m *ConversationAnalysis) SetTotalSimultaneousSpeechDurationMs(v int64) {
	m.TotalSimultaneousSpeechDurationMs = v
}

func (m *ConversationAnalysis) SetTotalSimultaneousSpeechRatio(v float64) {
	m.TotalSimultaneousSpeechRatio = v
}

func (m *ConversationAnalysis) SetSimultaneousSpeechDurationEstimation(v *DescriptiveStatistics) {
	m.SimultaneousSpeechDurationEstimation = v
}

func (m *ConversationAnalysis) SetSpeakerInterrupts(v []*ConversationAnalysis_InterruptsEvaluation) {
	m.SpeakerInterrupts = v
}

func (m *ConversationAnalysis) SetTotalSpeechDurationMs(v int64) {
	m.TotalSpeechDurationMs = v
}

func (m *ConversationAnalysis) SetTotalSpeechRatio(v float64) {
	m.TotalSpeechRatio = v
}

func (m *ConversationAnalysis_InterruptsEvaluation) SetSpeakerTag(v string) {
	m.SpeakerTag = v
}

func (m *ConversationAnalysis_InterruptsEvaluation) SetInterruptsCount(v int64) {
	m.InterruptsCount = v
}

func (m *ConversationAnalysis_InterruptsEvaluation) SetInterruptsDurationMs(v int64) {
	m.InterruptsDurationMs = v
}

func (m *ConversationAnalysis_InterruptsEvaluation) SetInterrupts(v []*AudioSegmentBoundaries) {
	m.Interrupts = v
}

func (m *ContentUsage) SetInputTextTokens(v int64) {
	m.InputTextTokens = v
}

func (m *ContentUsage) SetCompletionTokens(v int64) {
	m.CompletionTokens = v
}

func (m *ContentUsage) SetTotalTokens(v int64) {
	m.TotalTokens = v
}

func (m *Summarization) SetResults(v []*SummarizationPropertyResult) {
	m.Results = v
}

func (m *Summarization) SetContentUsage(v *ContentUsage) {
	m.ContentUsage = v
}

type StreamingResponse_Event = isStreamingResponse_Event

func (m *StreamingResponse) SetEvent(v StreamingResponse_Event) {
	m.Event = v
}

func (m *StreamingResponse) SetSessionUuid(v *SessionUuid) {
	m.SessionUuid = v
}

func (m *StreamingResponse) SetAudioCursors(v *AudioCursors) {
	m.AudioCursors = v
}

func (m *StreamingResponse) SetResponseWallTimeMs(v int64) {
	m.ResponseWallTimeMs = v
}

func (m *StreamingResponse) SetPartial(v *AlternativeUpdate) {
	m.Event = &StreamingResponse_Partial{
		Partial: v,
	}
}

func (m *StreamingResponse) SetFinal(v *AlternativeUpdate) {
	m.Event = &StreamingResponse_Final{
		Final: v,
	}
}

func (m *StreamingResponse) SetEouUpdate(v *EouUpdate) {
	m.Event = &StreamingResponse_EouUpdate{
		EouUpdate: v,
	}
}

func (m *StreamingResponse) SetFinalRefinement(v *FinalRefinement) {
	m.Event = &StreamingResponse_FinalRefinement{
		FinalRefinement: v,
	}
}

func (m *StreamingResponse) SetStatusCode(v *StatusCode) {
	m.Event = &StreamingResponse_StatusCode{
		StatusCode: v,
	}
}

func (m *StreamingResponse) SetClassifierUpdate(v *RecognitionClassifierUpdate) {
	m.Event = &StreamingResponse_ClassifierUpdate{
		ClassifierUpdate: v,
	}
}

func (m *StreamingResponse) SetSpeakerAnalysis(v *SpeakerAnalysis) {
	m.Event = &StreamingResponse_SpeakerAnalysis{
		SpeakerAnalysis: v,
	}
}

func (m *StreamingResponse) SetConversationAnalysis(v *ConversationAnalysis) {
	m.Event = &StreamingResponse_ConversationAnalysis{
		ConversationAnalysis: v,
	}
}

func (m *StreamingResponse) SetSummarization(v *Summarization) {
	m.Event = &StreamingResponse_Summarization{
		Summarization: v,
	}
}

func (m *StreamingResponse) SetChannelTag(v string) {
	m.ChannelTag = v
}

func (m *DeleteRecognitionRequest) SetOperationId(v string) {
	m.OperationId = v
}

func (m *StreamingResponseList) SetStreamingResponses(v []*StreamingResponse) {
	m.StreamingResponses = v
}
