1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.25.0
18// 	protoc        v3.13.0
19// source: google/cloud/mediatranslation/v1alpha1/media_translation.proto
20
21package mediatranslation
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	status "google.golang.org/genproto/googleapis/rpc/status"
31	grpc "google.golang.org/grpc"
32	codes "google.golang.org/grpc/codes"
33	status1 "google.golang.org/grpc/status"
34	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36)
37
38const (
39	// Verify that this generated code is sufficiently up-to-date.
40	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41	// Verify that runtime/protoimpl is sufficiently up-to-date.
42	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43)
44
45// This is a compile-time assertion that a sufficiently up-to-date version
46// of the legacy proto package is being used.
47const _ = proto.ProtoPackageIsVersion4
48
49// Indicates the type of speech event.
50type StreamingTranslateSpeechResponse_SpeechEventType int32
51
52const (
53	// No speech event specified.
54	StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED StreamingTranslateSpeechResponse_SpeechEventType = 0
55	// This event indicates that the server has detected the end of the user's
56	// speech utterance and expects no additional speech. Therefore, the server
57	// will not process additional audio (although it may subsequently return
58	// additional results). When the client receives `END_OF_SINGLE_UTTERANCE`
59	// event, the client should stop sending the requests. However, clients
60	// should keep receiving remaining responses until the stream is terminated.
61	// To construct the complete sentence in a streaming way, one should
62	// override (if `is_final` of previous response is `false`), or append (if
63	// `is_final` of previous response is `true`). This event is only sent if
64	// `single_utterance` was set to `true`, and is not used otherwise.
65	StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE StreamingTranslateSpeechResponse_SpeechEventType = 1
66)
67
68// Enum value maps for StreamingTranslateSpeechResponse_SpeechEventType.
69var (
70	StreamingTranslateSpeechResponse_SpeechEventType_name = map[int32]string{
71		0: "SPEECH_EVENT_TYPE_UNSPECIFIED",
72		1: "END_OF_SINGLE_UTTERANCE",
73	}
74	StreamingTranslateSpeechResponse_SpeechEventType_value = map[string]int32{
75		"SPEECH_EVENT_TYPE_UNSPECIFIED": 0,
76		"END_OF_SINGLE_UTTERANCE":       1,
77	}
78)
79
80func (x StreamingTranslateSpeechResponse_SpeechEventType) Enum() *StreamingTranslateSpeechResponse_SpeechEventType {
81	p := new(StreamingTranslateSpeechResponse_SpeechEventType)
82	*p = x
83	return p
84}
85
86func (x StreamingTranslateSpeechResponse_SpeechEventType) String() string {
87	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
88}
89
90func (StreamingTranslateSpeechResponse_SpeechEventType) Descriptor() protoreflect.EnumDescriptor {
91	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes[0].Descriptor()
92}
93
94func (StreamingTranslateSpeechResponse_SpeechEventType) Type() protoreflect.EnumType {
95	return &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes[0]
96}
97
98func (x StreamingTranslateSpeechResponse_SpeechEventType) Number() protoreflect.EnumNumber {
99	return protoreflect.EnumNumber(x)
100}
101
102// Deprecated: Use StreamingTranslateSpeechResponse_SpeechEventType.Descriptor instead.
103func (StreamingTranslateSpeechResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) {
104	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{4, 0}
105}
106
107// Provides information to the speech translation that specifies how to process
108// the request.
109type TranslateSpeechConfig struct {
110	state         protoimpl.MessageState
111	sizeCache     protoimpl.SizeCache
112	unknownFields protoimpl.UnknownFields
113
114	// Required. Encoding of audio data.
115	// Supported formats:
116	//
117	// - `linear16`
118	//
119	//   Uncompressed 16-bit signed little-endian samples (Linear PCM).
120	//
121	// - `flac`
122	//
123	//   `flac` (Free Lossless Audio Codec) is the recommended encoding
124	//   because it is lossless--therefore recognition is not compromised--and
125	//   requires only about half the bandwidth of `linear16`.
126	//
127	// - `mulaw`
128	//
129	//   8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
130	//
131	// - `amr`
132	//
133	//   Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
134	//
135	// - `amr-wb`
136	//
137	//   Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
138	//
139	// - `ogg-opus`
140	//
141	//   Opus encoded audio frames in Ogg container
142	//   ([OggOpus](https://wiki.xiph.org/OggOpus)).
143	//   `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000, or 48000.
144	//
145	// - `mp3`
146	//
147	//   MP3 audio. Support all standard MP3 bitrates (which range from 32-320
148	//   kbps). When using this encoding, `sample_rate_hertz` has to match the
149	//   sample rate of the file being used.
150	//
151	//
152	AudioEncoding string `protobuf:"bytes,1,opt,name=audio_encoding,json=audioEncoding,proto3" json:"audio_encoding,omitempty"`
153	// Required. Source language code (BCP-47) of the input audio.
154	SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
155	// Required. Target language code (BCP-47) of the output.
156	TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
157	// Optional. A list of up to 3 additional language codes (BCP-47), listing possible
158	// alternative languages of the supplied audio. If alternative source
159	// languages are listed, speech translation result will translate in the most
160	// likely language detected including the main source_language_code. The
161	// translated result will include the language code of the language detected
162	// in the audio.
163	// Note:
164	// 1. If the provided alternative_source_language_code is not supported
165	// by current API version, we will skip that language code.
166	// 2. If user only provided one eligible alternative_source_language_codes,
167	// the translation will happen between source_language_code and
168	// alternative_source_language_codes. The target_language_code will be
169	// ignored. It will be useful in conversation mode.
170	AlternativeSourceLanguageCodes []string `protobuf:"bytes,6,rep,name=alternative_source_language_codes,json=alternativeSourceLanguageCodes,proto3" json:"alternative_source_language_codes,omitempty"`
171	// Optional. Sample rate in Hertz of the audio data. Valid values are:
172	// 8000-48000. 16000 is optimal. For best results, set the sampling rate of
173	// the audio source to 16000 Hz. If that's not possible, use the native sample
174	// rate of the audio source (instead of re-sampling).
175	//
176	SampleRateHertz int32 `protobuf:"varint,4,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
177	// Optional.
178	Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
179}
180
181func (x *TranslateSpeechConfig) Reset() {
182	*x = TranslateSpeechConfig{}
183	if protoimpl.UnsafeEnabled {
184		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0]
185		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
186		ms.StoreMessageInfo(mi)
187	}
188}
189
190func (x *TranslateSpeechConfig) String() string {
191	return protoimpl.X.MessageStringOf(x)
192}
193
194func (*TranslateSpeechConfig) ProtoMessage() {}
195
196func (x *TranslateSpeechConfig) ProtoReflect() protoreflect.Message {
197	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0]
198	if protoimpl.UnsafeEnabled && x != nil {
199		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
200		if ms.LoadMessageInfo() == nil {
201			ms.StoreMessageInfo(mi)
202		}
203		return ms
204	}
205	return mi.MessageOf(x)
206}
207
208// Deprecated: Use TranslateSpeechConfig.ProtoReflect.Descriptor instead.
209func (*TranslateSpeechConfig) Descriptor() ([]byte, []int) {
210	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{0}
211}
212
213func (x *TranslateSpeechConfig) GetAudioEncoding() string {
214	if x != nil {
215		return x.AudioEncoding
216	}
217	return ""
218}
219
220func (x *TranslateSpeechConfig) GetSourceLanguageCode() string {
221	if x != nil {
222		return x.SourceLanguageCode
223	}
224	return ""
225}
226
227func (x *TranslateSpeechConfig) GetTargetLanguageCode() string {
228	if x != nil {
229		return x.TargetLanguageCode
230	}
231	return ""
232}
233
234func (x *TranslateSpeechConfig) GetAlternativeSourceLanguageCodes() []string {
235	if x != nil {
236		return x.AlternativeSourceLanguageCodes
237	}
238	return nil
239}
240
241func (x *TranslateSpeechConfig) GetSampleRateHertz() int32 {
242	if x != nil {
243		return x.SampleRateHertz
244	}
245	return 0
246}
247
248func (x *TranslateSpeechConfig) GetModel() string {
249	if x != nil {
250		return x.Model
251	}
252	return ""
253}
254
255// Config used for streaming translation.
256type StreamingTranslateSpeechConfig struct {
257	state         protoimpl.MessageState
258	sizeCache     protoimpl.SizeCache
259	unknownFields protoimpl.UnknownFields
260
261	// Required. The common config for all the following audio contents.
262	AudioConfig *TranslateSpeechConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
263	// Optional. If `false` or omitted, the system performs
264	// continuous translation (continuing to wait for and process audio even if
265	// the user pauses speaking) until the client closes the input stream (gRPC
266	// API) or until the maximum time limit has been reached. May return multiple
267	// `StreamingTranslateSpeechResult`s with the `is_final` flag set to `true`.
268	//
269	// If `true`, the speech translator will detect a single spoken utterance.
270	// When it detects that the user has paused or stopped speaking, it will
271	// return an `END_OF_SINGLE_UTTERANCE` event and cease translation.
272	// When the client receives `END_OF_SINGLE_UTTERANCE` event, the client should
273	// stop sending the requests. However, clients should keep receiving remaining
274	// responses until the stream is terminated. To construct the complete
275	// sentence in a streaming way, one should override (if `is_final` of previous
276	// response is false), or append (if 'is_final' of previous response is true).
277	SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
278	// Optional. Stability control for the media translation text. The value should be
279	// "LOW", "MEDIUM", "HIGH". It applies to text/text_and_audio translation
280	// only.
281	// For audio translation mode, we only support HIGH stability mode,
282	// low/medium stability mode will throw argument error.
283	// Default empty string will be treated as "HIGH" in audio translation mode;
284	// will be treated as "LOW" in other translation mode.
285	// Note that stability and speed would be trade off.
286	// 1. "LOW": In low mode, translation service will start to do translation
287	// right after getting recognition response. The speed will be faster.
288	// 2. "MEDIUM": In medium mode, translation service will
289	// check if the recognition response is stable enough or not, and only
290	// translate recognition response which is not likely to be changed later.
291	// 3. "HIGH": In high mode, translation service will wait for more stable
292	// recognition responses, and then start to do translation. Also, the
293	// following recognition responses cannot modify previous recognition
294	// responses. Thus it may impact quality in some situation. "HIGH" stability
295	// will generate "final" responses more frequently.
296	//
297	Stability string `protobuf:"bytes,3,opt,name=stability,proto3" json:"stability,omitempty"`
298	// Optional. Translation mode, the value should be "text", "audio", "text_and_audio".
299	// Default empty string will be treated as "text".
300	// 1. "text": The response will be text translation. Text translation has a
301	// field "is_final". Detailed definition can be found in
302	// `TextTranslationResult`.
303	// 2. "audio": The response will be audio translation. Audio translation does
304	// not have "is_final" field, which means each audio translation response is
305	// stable and will not be changed by later response.
306	// Translation mode "audio" can only be used with "high" stability mode,
307	// 3. "text_and_audio": The response will have a text translation, when
308	// "is_final" is true, we will also output its corresponding audio
309	// translation. When "is_final" is false, audio_translation field will be
310	// empty.
311	TranslationMode string `protobuf:"bytes,4,opt,name=translation_mode,json=translationMode,proto3" json:"translation_mode,omitempty"`
312	// Optional. If disable_interim_results is true, we will only return "final" responses.
313	// Otherwise, we will return all the responses. Default value will be false.
314	// User can only set disable_interim_results to be true with "high" stability
315	// mode.
316	DisableInterimResults bool `protobuf:"varint,5,opt,name=disable_interim_results,json=disableInterimResults,proto3" json:"disable_interim_results,omitempty"`
317}
318
319func (x *StreamingTranslateSpeechConfig) Reset() {
320	*x = StreamingTranslateSpeechConfig{}
321	if protoimpl.UnsafeEnabled {
322		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1]
323		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
324		ms.StoreMessageInfo(mi)
325	}
326}
327
328func (x *StreamingTranslateSpeechConfig) String() string {
329	return protoimpl.X.MessageStringOf(x)
330}
331
332func (*StreamingTranslateSpeechConfig) ProtoMessage() {}
333
334func (x *StreamingTranslateSpeechConfig) ProtoReflect() protoreflect.Message {
335	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1]
336	if protoimpl.UnsafeEnabled && x != nil {
337		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
338		if ms.LoadMessageInfo() == nil {
339			ms.StoreMessageInfo(mi)
340		}
341		return ms
342	}
343	return mi.MessageOf(x)
344}
345
346// Deprecated: Use StreamingTranslateSpeechConfig.ProtoReflect.Descriptor instead.
347func (*StreamingTranslateSpeechConfig) Descriptor() ([]byte, []int) {
348	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{1}
349}
350
351func (x *StreamingTranslateSpeechConfig) GetAudioConfig() *TranslateSpeechConfig {
352	if x != nil {
353		return x.AudioConfig
354	}
355	return nil
356}
357
358func (x *StreamingTranslateSpeechConfig) GetSingleUtterance() bool {
359	if x != nil {
360		return x.SingleUtterance
361	}
362	return false
363}
364
365func (x *StreamingTranslateSpeechConfig) GetStability() string {
366	if x != nil {
367		return x.Stability
368	}
369	return ""
370}
371
372func (x *StreamingTranslateSpeechConfig) GetTranslationMode() string {
373	if x != nil {
374		return x.TranslationMode
375	}
376	return ""
377}
378
379func (x *StreamingTranslateSpeechConfig) GetDisableInterimResults() bool {
380	if x != nil {
381		return x.DisableInterimResults
382	}
383	return false
384}
385
386// The top-level message sent by the client for the `StreamingTranslateSpeech`
387// method. Multiple `StreamingTranslateSpeechRequest` messages are sent. The
388// first message must contain a `streaming_config` message and must not contain
389// `audio_content` data. All subsequent messages must contain `audio_content`
390// data and must not contain a `streaming_config` message.
391type StreamingTranslateSpeechRequest struct {
392	state         protoimpl.MessageState
393	sizeCache     protoimpl.SizeCache
394	unknownFields protoimpl.UnknownFields
395
396	// The streaming request, which is either a streaming config or content.
397	//
398	// Types that are assignable to StreamingRequest:
399	//	*StreamingTranslateSpeechRequest_StreamingConfig
400	//	*StreamingTranslateSpeechRequest_AudioContent
401	StreamingRequest isStreamingTranslateSpeechRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
402}
403
404func (x *StreamingTranslateSpeechRequest) Reset() {
405	*x = StreamingTranslateSpeechRequest{}
406	if protoimpl.UnsafeEnabled {
407		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2]
408		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
409		ms.StoreMessageInfo(mi)
410	}
411}
412
413func (x *StreamingTranslateSpeechRequest) String() string {
414	return protoimpl.X.MessageStringOf(x)
415}
416
417func (*StreamingTranslateSpeechRequest) ProtoMessage() {}
418
419func (x *StreamingTranslateSpeechRequest) ProtoReflect() protoreflect.Message {
420	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2]
421	if protoimpl.UnsafeEnabled && x != nil {
422		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
423		if ms.LoadMessageInfo() == nil {
424			ms.StoreMessageInfo(mi)
425		}
426		return ms
427	}
428	return mi.MessageOf(x)
429}
430
431// Deprecated: Use StreamingTranslateSpeechRequest.ProtoReflect.Descriptor instead.
432func (*StreamingTranslateSpeechRequest) Descriptor() ([]byte, []int) {
433	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{2}
434}
435
436func (m *StreamingTranslateSpeechRequest) GetStreamingRequest() isStreamingTranslateSpeechRequest_StreamingRequest {
437	if m != nil {
438		return m.StreamingRequest
439	}
440	return nil
441}
442
443func (x *StreamingTranslateSpeechRequest) GetStreamingConfig() *StreamingTranslateSpeechConfig {
444	if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_StreamingConfig); ok {
445		return x.StreamingConfig
446	}
447	return nil
448}
449
450func (x *StreamingTranslateSpeechRequest) GetAudioContent() []byte {
451	if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_AudioContent); ok {
452		return x.AudioContent
453	}
454	return nil
455}
456
457type isStreamingTranslateSpeechRequest_StreamingRequest interface {
458	isStreamingTranslateSpeechRequest_StreamingRequest()
459}
460
461type StreamingTranslateSpeechRequest_StreamingConfig struct {
462	// Provides information to the recognizer that specifies how to process the
463	// request. The first `StreamingTranslateSpeechRequest` message must contain
464	// a `streaming_config` message.
465	StreamingConfig *StreamingTranslateSpeechConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
466}
467
468type StreamingTranslateSpeechRequest_AudioContent struct {
469	// The audio data to be translated. Sequential chunks of audio data are sent
470	// in sequential `StreamingTranslateSpeechRequest` messages. The first
471	// `StreamingTranslateSpeechRequest` message must not contain
472	// `audio_content` data and all subsequent `StreamingTranslateSpeechRequest`
473	// messages must contain `audio_content` data. The audio bytes must be
474	// encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with
475	// all bytes fields, protobuffers use a pure binary representation (not
476	// base64).
477	AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
478}
479
480func (*StreamingTranslateSpeechRequest_StreamingConfig) isStreamingTranslateSpeechRequest_StreamingRequest() {
481}
482
483func (*StreamingTranslateSpeechRequest_AudioContent) isStreamingTranslateSpeechRequest_StreamingRequest() {
484}
485
486// A streaming speech translation result corresponding to a portion of the audio
487// that is currently being processed.
488type StreamingTranslateSpeechResult struct {
489	state         protoimpl.MessageState
490	sizeCache     protoimpl.SizeCache
491	unknownFields protoimpl.UnknownFields
492
493	// Text translation result.
494	TextTranslationResult *StreamingTranslateSpeechResult_TextTranslationResult `protobuf:"bytes,1,opt,name=text_translation_result,json=textTranslationResult,proto3" json:"text_translation_result,omitempty"`
495	// Audio translation result.
496	AudioTranslationResult *StreamingTranslateSpeechResult_AudioTranslationResult `protobuf:"bytes,2,opt,name=audio_translation_result,json=audioTranslationResult,proto3" json:"audio_translation_result,omitempty"`
497	// Output only. The debug only recognition result in original language. This field is debug
498	// only and will be set to empty string if not available.
499	// This is implementation detail and will not be backward compatible.
500	RecognitionResult string `protobuf:"bytes,3,opt,name=recognition_result,json=recognitionResult,proto3" json:"recognition_result,omitempty"`
501	// Output only.
502	DetectedSourceLanguageCode string `protobuf:"bytes,4,opt,name=detected_source_language_code,json=detectedSourceLanguageCode,proto3" json:"detected_source_language_code,omitempty"`
503}
504
505func (x *StreamingTranslateSpeechResult) Reset() {
506	*x = StreamingTranslateSpeechResult{}
507	if protoimpl.UnsafeEnabled {
508		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3]
509		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
510		ms.StoreMessageInfo(mi)
511	}
512}
513
514func (x *StreamingTranslateSpeechResult) String() string {
515	return protoimpl.X.MessageStringOf(x)
516}
517
518func (*StreamingTranslateSpeechResult) ProtoMessage() {}
519
520func (x *StreamingTranslateSpeechResult) ProtoReflect() protoreflect.Message {
521	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3]
522	if protoimpl.UnsafeEnabled && x != nil {
523		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
524		if ms.LoadMessageInfo() == nil {
525			ms.StoreMessageInfo(mi)
526		}
527		return ms
528	}
529	return mi.MessageOf(x)
530}
531
532// Deprecated: Use StreamingTranslateSpeechResult.ProtoReflect.Descriptor instead.
533func (*StreamingTranslateSpeechResult) Descriptor() ([]byte, []int) {
534	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3}
535}
536
537func (x *StreamingTranslateSpeechResult) GetTextTranslationResult() *StreamingTranslateSpeechResult_TextTranslationResult {
538	if x != nil {
539		return x.TextTranslationResult
540	}
541	return nil
542}
543
544func (x *StreamingTranslateSpeechResult) GetAudioTranslationResult() *StreamingTranslateSpeechResult_AudioTranslationResult {
545	if x != nil {
546		return x.AudioTranslationResult
547	}
548	return nil
549}
550
551func (x *StreamingTranslateSpeechResult) GetRecognitionResult() string {
552	if x != nil {
553		return x.RecognitionResult
554	}
555	return ""
556}
557
558func (x *StreamingTranslateSpeechResult) GetDetectedSourceLanguageCode() string {
559	if x != nil {
560		return x.DetectedSourceLanguageCode
561	}
562	return ""
563}
564
565// A streaming speech translation response corresponding to a portion of
566// the audio currently processed.
567type StreamingTranslateSpeechResponse struct {
568	state         protoimpl.MessageState
569	sizeCache     protoimpl.SizeCache
570	unknownFields protoimpl.UnknownFields
571
572	// Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
573	// specifies the error for the operation.
574	Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
575	// Output only. The translation result that is currently being processed (For text
576	// translation, `is_final` could be `true` or `false`.
577	// For audio translation, we do not have is_final field, which means each
578	// audio response is stable and will not get changed later. For
579	// text_and_audio, we still have `is_final` field in text translation, but we
580	// only output corresponsding audio when `is_final` is true.).
581	Result *StreamingTranslateSpeechResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
582	// Output only. Indicates the type of speech event.
583	SpeechEventType StreamingTranslateSpeechResponse_SpeechEventType `protobuf:"varint,3,opt,name=speech_event_type,json=speechEventType,proto3,enum=google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse_SpeechEventType" json:"speech_event_type,omitempty"`
584}
585
586func (x *StreamingTranslateSpeechResponse) Reset() {
587	*x = StreamingTranslateSpeechResponse{}
588	if protoimpl.UnsafeEnabled {
589		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4]
590		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
591		ms.StoreMessageInfo(mi)
592	}
593}
594
595func (x *StreamingTranslateSpeechResponse) String() string {
596	return protoimpl.X.MessageStringOf(x)
597}
598
599func (*StreamingTranslateSpeechResponse) ProtoMessage() {}
600
601func (x *StreamingTranslateSpeechResponse) ProtoReflect() protoreflect.Message {
602	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4]
603	if protoimpl.UnsafeEnabled && x != nil {
604		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
605		if ms.LoadMessageInfo() == nil {
606			ms.StoreMessageInfo(mi)
607		}
608		return ms
609	}
610	return mi.MessageOf(x)
611}
612
613// Deprecated: Use StreamingTranslateSpeechResponse.ProtoReflect.Descriptor instead.
614func (*StreamingTranslateSpeechResponse) Descriptor() ([]byte, []int) {
615	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{4}
616}
617
618func (x *StreamingTranslateSpeechResponse) GetError() *status.Status {
619	if x != nil {
620		return x.Error
621	}
622	return nil
623}
624
625func (x *StreamingTranslateSpeechResponse) GetResult() *StreamingTranslateSpeechResult {
626	if x != nil {
627		return x.Result
628	}
629	return nil
630}
631
632func (x *StreamingTranslateSpeechResponse) GetSpeechEventType() StreamingTranslateSpeechResponse_SpeechEventType {
633	if x != nil {
634		return x.SpeechEventType
635	}
636	return StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
637}
638
639// Text translation result.
640type StreamingTranslateSpeechResult_TextTranslationResult struct {
641	state         protoimpl.MessageState
642	sizeCache     protoimpl.SizeCache
643	unknownFields protoimpl.UnknownFields
644
645	// Output only. The translated sentence.
646	Translation string `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
647	// Output only. If `false`, this `StreamingTranslateSpeechResult` represents
648	// an interim result that may change. If `true`, this is the final time the
649	// translation service will return this particular
650	// `StreamingTranslateSpeechResult`, the streaming translator will not
651	// return any further hypotheses for this portion of the transcript and
652	// corresponding audio.
653	IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
654}
655
656func (x *StreamingTranslateSpeechResult_TextTranslationResult) Reset() {
657	*x = StreamingTranslateSpeechResult_TextTranslationResult{}
658	if protoimpl.UnsafeEnabled {
659		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5]
660		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
661		ms.StoreMessageInfo(mi)
662	}
663}
664
665func (x *StreamingTranslateSpeechResult_TextTranslationResult) String() string {
666	return protoimpl.X.MessageStringOf(x)
667}
668
669func (*StreamingTranslateSpeechResult_TextTranslationResult) ProtoMessage() {}
670
671func (x *StreamingTranslateSpeechResult_TextTranslationResult) ProtoReflect() protoreflect.Message {
672	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5]
673	if protoimpl.UnsafeEnabled && x != nil {
674		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
675		if ms.LoadMessageInfo() == nil {
676			ms.StoreMessageInfo(mi)
677		}
678		return ms
679	}
680	return mi.MessageOf(x)
681}
682
683// Deprecated: Use StreamingTranslateSpeechResult_TextTranslationResult.ProtoReflect.Descriptor instead.
684func (*StreamingTranslateSpeechResult_TextTranslationResult) Descriptor() ([]byte, []int) {
685	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3, 0}
686}
687
688func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetTranslation() string {
689	if x != nil {
690		return x.Translation
691	}
692	return ""
693}
694
695func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetIsFinal() bool {
696	if x != nil {
697		return x.IsFinal
698	}
699	return false
700}
701
702// Audio translation result.
703type StreamingTranslateSpeechResult_AudioTranslationResult struct {
704	state         protoimpl.MessageState
705	sizeCache     protoimpl.SizeCache
706	unknownFields protoimpl.UnknownFields
707
708	// Output only. The translated audio.
709	AudioTranslation []byte `protobuf:"bytes,1,opt,name=audio_translation,json=audioTranslation,proto3" json:"audio_translation,omitempty"`
710}
711
712func (x *StreamingTranslateSpeechResult_AudioTranslationResult) Reset() {
713	*x = StreamingTranslateSpeechResult_AudioTranslationResult{}
714	if protoimpl.UnsafeEnabled {
715		mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6]
716		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
717		ms.StoreMessageInfo(mi)
718	}
719}
720
721func (x *StreamingTranslateSpeechResult_AudioTranslationResult) String() string {
722	return protoimpl.X.MessageStringOf(x)
723}
724
725func (*StreamingTranslateSpeechResult_AudioTranslationResult) ProtoMessage() {}
726
727func (x *StreamingTranslateSpeechResult_AudioTranslationResult) ProtoReflect() protoreflect.Message {
728	mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6]
729	if protoimpl.UnsafeEnabled && x != nil {
730		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
731		if ms.LoadMessageInfo() == nil {
732			ms.StoreMessageInfo(mi)
733		}
734		return ms
735	}
736	return mi.MessageOf(x)
737}
738
739// Deprecated: Use StreamingTranslateSpeechResult_AudioTranslationResult.ProtoReflect.Descriptor instead.
740func (*StreamingTranslateSpeechResult_AudioTranslationResult) Descriptor() ([]byte, []int) {
741	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3, 1}
742}
743
744func (x *StreamingTranslateSpeechResult_AudioTranslationResult) GetAudioTranslation() []byte {
745	if x != nil {
746		return x.AudioTranslation
747	}
748	return nil
749}
750
751var File_google_cloud_mediatranslation_v1alpha1_media_translation_proto protoreflect.FileDescriptor
752
753var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc = []byte{
754	0x0a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d,
755	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
756	0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74,
757	0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
758	0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
759	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
760	0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
761	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
762	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
763	0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
764	0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
765	0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x02, 0x0a, 0x15,
766	0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43,
767	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x65,
768	0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
769	0x41, 0x02, 0x52, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
770	0x67, 0x12, 0x35, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67,
771	0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
772	0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67,
773	0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x14, 0x74, 0x61, 0x72, 0x67,
774	0x65, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65,
775	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x74, 0x61, 0x72,
776	0x67, 0x65, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12,
777	0x4e, 0x0a, 0x21, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73,
778	0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63,
779	0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
780	0x1e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x6f, 0x75, 0x72,
781	0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12,
782	0x2f, 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x68,
783	0x65, 0x72, 0x74, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
784	0x0f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x48, 0x65, 0x72, 0x74, 0x7a,
785	0x12, 0x19, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42,
786	0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xc7, 0x02, 0x0a, 0x1e,
787	0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
788	0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x65,
789	0x0a, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
790	0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
791	0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
792	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x72,
793	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e,
794	0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43,
795	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f,
796	0x75, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42,
797	0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x74, 0x74, 0x65,
798	0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
799	0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x73,
800	0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e,
801	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,
802	0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
803	0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61,
804	0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x75,
805	0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x15,
806	0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x52, 0x65,
807	0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x1f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
808	0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65,
809	0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x73, 0x0a, 0x10, 0x73, 0x74, 0x72,
810	0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,
811	0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
812	0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
813	0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72,
814	0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53,
815	0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x73,
816	0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25,
817	0x0a, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
818	0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f,
819	0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x13, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69,
820	0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf9, 0x04, 0x0a, 0x1e, 0x53,
821	0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
822	0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x94, 0x01,
823	0x0a, 0x17, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
824	0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
825	0x5c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
826	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
827	0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69,
828	0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63,
829	0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e,
830	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x15, 0x74,
831	0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
832	0x73, 0x75, 0x6c, 0x74, 0x12, 0x97, 0x01, 0x0a, 0x18, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x74,
833	0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c,
834	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x5d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
835	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e,
836	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
837	0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c,
838	0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e,
839	0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
840	0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x16, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61,
841	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x32,
842	0x0a, 0x12, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65,
843	0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
844	0x11, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75,
845	0x6c, 0x74, 0x12, 0x46, 0x0a, 0x1d, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73,
846	0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63,
847	0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1a,
848	0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61,
849	0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x5e, 0x0a, 0x15, 0x54, 0x65,
850	0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
851	0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
852	0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x74,
853	0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x73,
854	0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
855	0x03, 0x52, 0x07, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x1a, 0x4a, 0x0a, 0x16, 0x41, 0x75,
856	0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
857	0x73, 0x75, 0x6c, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x74, 0x72,
858	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42,
859	0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73,
860	0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x95, 0x03, 0x0a, 0x20, 0x53, 0x74, 0x72, 0x65, 0x61,
861	0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65,
862	0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65,
863	0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
864	0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03,
865	0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x06, 0x72, 0x65,
866	0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f,
867	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74,
868	0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
869	0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61,
870	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75,
871	0x6c, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,
872	0x89, 0x01, 0x0a, 0x11, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74,
873	0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x58, 0x2e, 0x67, 0x6f,
874	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
875	0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c,
876	0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72,
877	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73,
878	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e,
879	0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x73, 0x70, 0x65, 0x65,
880	0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x51, 0x0a, 0x0f, 0x53,
881	0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21,
882	0x0a, 0x1d, 0x53, 0x50, 0x45, 0x45, 0x43, 0x48, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54,
883	0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
884	0x00, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x49, 0x4e, 0x47,
885	0x4c, 0x45, 0x5f, 0x55, 0x54, 0x54, 0x45, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x32, 0xa5,
886	0x02, 0x0a, 0x18, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
887	0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb3, 0x01, 0x0a, 0x18,
888	0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
889	0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
890	0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61,
891	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
892	0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73,
893	0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
894	0x74, 0x1a, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
895	0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f,
896	0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61,
897	0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65,
898	0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30,
899	0x01, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73,
900	0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
901	0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
902	0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
903	0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
904	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x87, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
905	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69,
906	0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61,
907	0x6c, 0x70, 0x68, 0x61, 0x31, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
908	0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
909	0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f,
910	0x75, 0x64, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
911	0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x6d, 0x65, 0x64,
912	0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01,
913	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
914}
915
916var (
917	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescOnce sync.Once
918	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData = file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc
919)
920
921func file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP() []byte {
922	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescOnce.Do(func() {
923		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData)
924	})
925	return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData
926}
927
928var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
929var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
930var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes = []interface{}{
931	(StreamingTranslateSpeechResponse_SpeechEventType)(0),         // 0: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse.SpeechEventType
932	(*TranslateSpeechConfig)(nil),                                 // 1: google.cloud.mediatranslation.v1alpha1.TranslateSpeechConfig
933	(*StreamingTranslateSpeechConfig)(nil),                        // 2: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechConfig
934	(*StreamingTranslateSpeechRequest)(nil),                       // 3: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechRequest
935	(*StreamingTranslateSpeechResult)(nil),                        // 4: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult
936	(*StreamingTranslateSpeechResponse)(nil),                      // 5: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse
937	(*StreamingTranslateSpeechResult_TextTranslationResult)(nil),  // 6: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.TextTranslationResult
938	(*StreamingTranslateSpeechResult_AudioTranslationResult)(nil), // 7: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.AudioTranslationResult
939	(*status.Status)(nil),                                         // 8: google.rpc.Status
940}
941var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs = []int32{
942	1, // 0: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechConfig.audio_config:type_name -> google.cloud.mediatranslation.v1alpha1.TranslateSpeechConfig
943	2, // 1: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechRequest.streaming_config:type_name -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechConfig
944	6, // 2: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.text_translation_result:type_name -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.TextTranslationResult
945	7, // 3: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.audio_translation_result:type_name -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult.AudioTranslationResult
946	8, // 4: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse.error:type_name -> google.rpc.Status
947	4, // 5: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse.result:type_name -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResult
948	0, // 6: google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse.speech_event_type:type_name -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse.SpeechEventType
949	3, // 7: google.cloud.mediatranslation.v1alpha1.SpeechTranslationService.StreamingTranslateSpeech:input_type -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechRequest
950	5, // 8: google.cloud.mediatranslation.v1alpha1.SpeechTranslationService.StreamingTranslateSpeech:output_type -> google.cloud.mediatranslation.v1alpha1.StreamingTranslateSpeechResponse
951	8, // [8:9] is the sub-list for method output_type
952	7, // [7:8] is the sub-list for method input_type
953	7, // [7:7] is the sub-list for extension type_name
954	7, // [7:7] is the sub-list for extension extendee
955	0, // [0:7] is the sub-list for field type_name
956}
957
958func init() { file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_init() }
959func file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_init() {
960	if File_google_cloud_mediatranslation_v1alpha1_media_translation_proto != nil {
961		return
962	}
963	if !protoimpl.UnsafeEnabled {
964		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
965			switch v := v.(*TranslateSpeechConfig); i {
966			case 0:
967				return &v.state
968			case 1:
969				return &v.sizeCache
970			case 2:
971				return &v.unknownFields
972			default:
973				return nil
974			}
975		}
976		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
977			switch v := v.(*StreamingTranslateSpeechConfig); i {
978			case 0:
979				return &v.state
980			case 1:
981				return &v.sizeCache
982			case 2:
983				return &v.unknownFields
984			default:
985				return nil
986			}
987		}
988		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
989			switch v := v.(*StreamingTranslateSpeechRequest); i {
990			case 0:
991				return &v.state
992			case 1:
993				return &v.sizeCache
994			case 2:
995				return &v.unknownFields
996			default:
997				return nil
998			}
999		}
1000		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1001			switch v := v.(*StreamingTranslateSpeechResult); i {
1002			case 0:
1003				return &v.state
1004			case 1:
1005				return &v.sizeCache
1006			case 2:
1007				return &v.unknownFields
1008			default:
1009				return nil
1010			}
1011		}
1012		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1013			switch v := v.(*StreamingTranslateSpeechResponse); i {
1014			case 0:
1015				return &v.state
1016			case 1:
1017				return &v.sizeCache
1018			case 2:
1019				return &v.unknownFields
1020			default:
1021				return nil
1022			}
1023		}
1024		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1025			switch v := v.(*StreamingTranslateSpeechResult_TextTranslationResult); i {
1026			case 0:
1027				return &v.state
1028			case 1:
1029				return &v.sizeCache
1030			case 2:
1031				return &v.unknownFields
1032			default:
1033				return nil
1034			}
1035		}
1036		file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1037			switch v := v.(*StreamingTranslateSpeechResult_AudioTranslationResult); i {
1038			case 0:
1039				return &v.state
1040			case 1:
1041				return &v.sizeCache
1042			case 2:
1043				return &v.unknownFields
1044			default:
1045				return nil
1046			}
1047		}
1048	}
1049	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2].OneofWrappers = []interface{}{
1050		(*StreamingTranslateSpeechRequest_StreamingConfig)(nil),
1051		(*StreamingTranslateSpeechRequest_AudioContent)(nil),
1052	}
1053	type x struct{}
1054	out := protoimpl.TypeBuilder{
1055		File: protoimpl.DescBuilder{
1056			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1057			RawDescriptor: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc,
1058			NumEnums:      1,
1059			NumMessages:   7,
1060			NumExtensions: 0,
1061			NumServices:   1,
1062		},
1063		GoTypes:           file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes,
1064		DependencyIndexes: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs,
1065		EnumInfos:         file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes,
1066		MessageInfos:      file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes,
1067	}.Build()
1068	File_google_cloud_mediatranslation_v1alpha1_media_translation_proto = out.File
1069	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc = nil
1070	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes = nil
1071	file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs = nil
1072}
1073
1074// Reference imports to suppress errors if they are not otherwise used.
1075var _ context.Context
1076var _ grpc.ClientConnInterface
1077
1078// This is a compile-time assertion to ensure that this generated file
1079// is compatible with the grpc package it is being compiled against.
1080const _ = grpc.SupportPackageIsVersion6
1081
1082// SpeechTranslationServiceClient is the client API for SpeechTranslationService service.
1083//
1084// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1085type SpeechTranslationServiceClient interface {
1086	// Performs bidirectional streaming speech translation: receive results while
1087	// sending audio. This method is only available via the gRPC API (not REST).
1088	StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error)
1089}
1090
1091type speechTranslationServiceClient struct {
1092	cc grpc.ClientConnInterface
1093}
1094
1095func NewSpeechTranslationServiceClient(cc grpc.ClientConnInterface) SpeechTranslationServiceClient {
1096	return &speechTranslationServiceClient{cc}
1097}
1098
1099func (c *speechTranslationServiceClient) StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error) {
1100	stream, err := c.cc.NewStream(ctx, &_SpeechTranslationService_serviceDesc.Streams[0], "/google.cloud.mediatranslation.v1alpha1.SpeechTranslationService/StreamingTranslateSpeech", opts...)
1101	if err != nil {
1102		return nil, err
1103	}
1104	x := &speechTranslationServiceStreamingTranslateSpeechClient{stream}
1105	return x, nil
1106}
1107
1108type SpeechTranslationService_StreamingTranslateSpeechClient interface {
1109	Send(*StreamingTranslateSpeechRequest) error
1110	Recv() (*StreamingTranslateSpeechResponse, error)
1111	grpc.ClientStream
1112}
1113
1114type speechTranslationServiceStreamingTranslateSpeechClient struct {
1115	grpc.ClientStream
1116}
1117
1118func (x *speechTranslationServiceStreamingTranslateSpeechClient) Send(m *StreamingTranslateSpeechRequest) error {
1119	return x.ClientStream.SendMsg(m)
1120}
1121
1122func (x *speechTranslationServiceStreamingTranslateSpeechClient) Recv() (*StreamingTranslateSpeechResponse, error) {
1123	m := new(StreamingTranslateSpeechResponse)
1124	if err := x.ClientStream.RecvMsg(m); err != nil {
1125		return nil, err
1126	}
1127	return m, nil
1128}
1129
1130// SpeechTranslationServiceServer is the server API for SpeechTranslationService service.
1131type SpeechTranslationServiceServer interface {
1132	// Performs bidirectional streaming speech translation: receive results while
1133	// sending audio. This method is only available via the gRPC API (not REST).
1134	StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error
1135}
1136
1137// UnimplementedSpeechTranslationServiceServer can be embedded to have forward compatible implementations.
1138type UnimplementedSpeechTranslationServiceServer struct {
1139}
1140
1141func (*UnimplementedSpeechTranslationServiceServer) StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error {
1142	return status1.Errorf(codes.Unimplemented, "method StreamingTranslateSpeech not implemented")
1143}
1144
1145func RegisterSpeechTranslationServiceServer(s *grpc.Server, srv SpeechTranslationServiceServer) {
1146	s.RegisterService(&_SpeechTranslationService_serviceDesc, srv)
1147}
1148
1149func _SpeechTranslationService_StreamingTranslateSpeech_Handler(srv interface{}, stream grpc.ServerStream) error {
1150	return srv.(SpeechTranslationServiceServer).StreamingTranslateSpeech(&speechTranslationServiceStreamingTranslateSpeechServer{stream})
1151}
1152
1153type SpeechTranslationService_StreamingTranslateSpeechServer interface {
1154	Send(*StreamingTranslateSpeechResponse) error
1155	Recv() (*StreamingTranslateSpeechRequest, error)
1156	grpc.ServerStream
1157}
1158
1159type speechTranslationServiceStreamingTranslateSpeechServer struct {
1160	grpc.ServerStream
1161}
1162
1163func (x *speechTranslationServiceStreamingTranslateSpeechServer) Send(m *StreamingTranslateSpeechResponse) error {
1164	return x.ServerStream.SendMsg(m)
1165}
1166
1167func (x *speechTranslationServiceStreamingTranslateSpeechServer) Recv() (*StreamingTranslateSpeechRequest, error) {
1168	m := new(StreamingTranslateSpeechRequest)
1169	if err := x.ServerStream.RecvMsg(m); err != nil {
1170		return nil, err
1171	}
1172	return m, nil
1173}
1174
1175var _SpeechTranslationService_serviceDesc = grpc.ServiceDesc{
1176	ServiceName: "google.cloud.mediatranslation.v1alpha1.SpeechTranslationService",
1177	HandlerType: (*SpeechTranslationServiceServer)(nil),
1178	Methods:     []grpc.MethodDesc{},
1179	Streams: []grpc.StreamDesc{
1180		{
1181			StreamName:    "StreamingTranslateSpeech",
1182			Handler:       _SpeechTranslationService_StreamingTranslateSpeech_Handler,
1183			ServerStreams: true,
1184			ClientStreams: true,
1185		},
1186	},
1187	Metadata: "google/cloud/mediatranslation/v1alpha1/media_translation.proto",
1188}
1189