1// Copyright 2021 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.26.0
18// 	protoc        v3.12.2
19// source: google/cloud/mediatranslation/v1beta1/media_translation.proto
20
21package mediatranslation
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	_ "google.golang.org/genproto/googleapis/api/annotations"
29	status "google.golang.org/genproto/googleapis/rpc/status"
30	grpc "google.golang.org/grpc"
31	codes "google.golang.org/grpc/codes"
32	status1 "google.golang.org/grpc/status"
33	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35)
36
37const (
38	// Verify that this generated code is sufficiently up-to-date.
39	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40	// Verify that runtime/protoimpl is sufficiently up-to-date.
41	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42)
43
44// Indicates the type of speech event.
45type StreamingTranslateSpeechResponse_SpeechEventType int32
46
47const (
48	// No speech event specified.
49	StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED StreamingTranslateSpeechResponse_SpeechEventType = 0
50	// This event indicates that the server has detected the end of the user's
51	// speech utterance and expects no additional speech. Therefore, the server
52	// will not process additional audio (although it may subsequently return
53	// additional results). When the client receives 'END_OF_SINGLE_UTTERANCE'
54	// event, the client should stop sending the requests. However, clients
55	// should keep receiving remaining responses until the stream is terminated.
56	// To construct the complete sentence in a streaming way, one should
57	// override (if 'is_final' of previous response is false), or append (if
58	// 'is_final' of previous response is true). This event is only sent if
59	// `single_utterance` was set to `true`, and is not used otherwise.
60	StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE StreamingTranslateSpeechResponse_SpeechEventType = 1
61)
62
63// Enum value maps for StreamingTranslateSpeechResponse_SpeechEventType.
64var (
65	StreamingTranslateSpeechResponse_SpeechEventType_name = map[int32]string{
66		0: "SPEECH_EVENT_TYPE_UNSPECIFIED",
67		1: "END_OF_SINGLE_UTTERANCE",
68	}
69	StreamingTranslateSpeechResponse_SpeechEventType_value = map[string]int32{
70		"SPEECH_EVENT_TYPE_UNSPECIFIED": 0,
71		"END_OF_SINGLE_UTTERANCE":       1,
72	}
73)
74
75func (x StreamingTranslateSpeechResponse_SpeechEventType) Enum() *StreamingTranslateSpeechResponse_SpeechEventType {
76	p := new(StreamingTranslateSpeechResponse_SpeechEventType)
77	*p = x
78	return p
79}
80
81func (x StreamingTranslateSpeechResponse_SpeechEventType) String() string {
82	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
83}
84
85func (StreamingTranslateSpeechResponse_SpeechEventType) Descriptor() protoreflect.EnumDescriptor {
86	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_enumTypes[0].Descriptor()
87}
88
89func (StreamingTranslateSpeechResponse_SpeechEventType) Type() protoreflect.EnumType {
90	return &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_enumTypes[0]
91}
92
93func (x StreamingTranslateSpeechResponse_SpeechEventType) Number() protoreflect.EnumNumber {
94	return protoreflect.EnumNumber(x)
95}
96
97// Deprecated: Use StreamingTranslateSpeechResponse_SpeechEventType.Descriptor instead.
98func (StreamingTranslateSpeechResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) {
99	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{4, 0}
100}
101
102// Provides information to the speech translation that specifies how to process
103// the request.
104type TranslateSpeechConfig struct {
105	state         protoimpl.MessageState
106	sizeCache     protoimpl.SizeCache
107	unknownFields protoimpl.UnknownFields
108
109	// Required. Encoding of audio data.
110	// Supported formats:
111	//
112	// - `linear16`
113	//
114	//   Uncompressed 16-bit signed little-endian samples (Linear PCM).
115	//
116	// - `flac`
117	//
118	//   `flac` (Free Lossless Audio Codec) is the recommended encoding
119	//   because it is lossless--therefore recognition is not compromised--and
120	//   requires only about half the bandwidth of `linear16`.
121	//
122	// - `mulaw`
123	//
124	//   8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
125	//
126	// - `amr`
127	//
128	//   Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
129	//
130	// - `amr-wb`
131	//
132	//   Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
133	//
134	// - `ogg-opus`
135	//
136	//   Opus encoded audio frames in [Ogg](https://wikipedia.org/wiki/Ogg)
137	//   container. `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000,
138	//   or 48000.
139	//
140	// - `mp3`
141	//
142	//   MP3 audio. Support all standard MP3 bitrates (which range from 32-320
143	//   kbps). When using this encoding, `sample_rate_hertz` has to match the
144	//   sample rate of the file being used.
145	AudioEncoding string `protobuf:"bytes,1,opt,name=audio_encoding,json=audioEncoding,proto3" json:"audio_encoding,omitempty"`
146	// Required. Source language code (BCP-47) of the input audio.
147	SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
148	// Required. Target language code (BCP-47) of the output.
149	TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
150	// Optional. Sample rate in Hertz of the audio data. Valid values are:
151	// 8000-48000. 16000 is optimal. For best results, set the sampling rate of
152	// the audio source to 16000 Hz. If that's not possible, use the native sample
153	// rate of the audio source (instead of re-sampling).
154	SampleRateHertz int32 `protobuf:"varint,4,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
155	// Optional. `google-provided-model/video` and
156	// `google-provided-model/enhanced-phone-call` are premium models.
157	// `google-provided-model/phone-call` is not premium model.
158	Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
159}
160
161func (x *TranslateSpeechConfig) Reset() {
162	*x = TranslateSpeechConfig{}
163	if protoimpl.UnsafeEnabled {
164		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[0]
165		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
166		ms.StoreMessageInfo(mi)
167	}
168}
169
170func (x *TranslateSpeechConfig) String() string {
171	return protoimpl.X.MessageStringOf(x)
172}
173
174func (*TranslateSpeechConfig) ProtoMessage() {}
175
176func (x *TranslateSpeechConfig) ProtoReflect() protoreflect.Message {
177	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[0]
178	if protoimpl.UnsafeEnabled && x != nil {
179		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
180		if ms.LoadMessageInfo() == nil {
181			ms.StoreMessageInfo(mi)
182		}
183		return ms
184	}
185	return mi.MessageOf(x)
186}
187
188// Deprecated: Use TranslateSpeechConfig.ProtoReflect.Descriptor instead.
189func (*TranslateSpeechConfig) Descriptor() ([]byte, []int) {
190	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{0}
191}
192
193func (x *TranslateSpeechConfig) GetAudioEncoding() string {
194	if x != nil {
195		return x.AudioEncoding
196	}
197	return ""
198}
199
200func (x *TranslateSpeechConfig) GetSourceLanguageCode() string {
201	if x != nil {
202		return x.SourceLanguageCode
203	}
204	return ""
205}
206
207func (x *TranslateSpeechConfig) GetTargetLanguageCode() string {
208	if x != nil {
209		return x.TargetLanguageCode
210	}
211	return ""
212}
213
214func (x *TranslateSpeechConfig) GetSampleRateHertz() int32 {
215	if x != nil {
216		return x.SampleRateHertz
217	}
218	return 0
219}
220
221func (x *TranslateSpeechConfig) GetModel() string {
222	if x != nil {
223		return x.Model
224	}
225	return ""
226}
227
228// Config used for streaming translation.
229type StreamingTranslateSpeechConfig struct {
230	state         protoimpl.MessageState
231	sizeCache     protoimpl.SizeCache
232	unknownFields protoimpl.UnknownFields
233
234	// Required. The common config for all the following audio contents.
235	AudioConfig *TranslateSpeechConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
236	// Optional. If `false` or omitted, the system performs
237	// continuous translation (continuing to wait for and process audio even if
238	// the user pauses speaking) until the client closes the input stream (gRPC
239	// API) or until the maximum time limit has been reached. May return multiple
240	// `StreamingTranslateSpeechResult`s with the `is_final` flag set to `true`.
241	//
242	// If `true`, the speech translator will detect a single spoken utterance.
243	// When it detects that the user has paused or stopped speaking, it will
244	// return an `END_OF_SINGLE_UTTERANCE` event and cease translation.
245	// When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should
246	// stop sending the requests. However, clients should keep receiving remaining
247	// responses until the stream is terminated. To construct the complete
248	// sentence in a streaming way, one should override (if 'is_final' of previous
249	// response is false), or append (if 'is_final' of previous response is true).
250	SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
251}
252
253func (x *StreamingTranslateSpeechConfig) Reset() {
254	*x = StreamingTranslateSpeechConfig{}
255	if protoimpl.UnsafeEnabled {
256		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[1]
257		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
258		ms.StoreMessageInfo(mi)
259	}
260}
261
262func (x *StreamingTranslateSpeechConfig) String() string {
263	return protoimpl.X.MessageStringOf(x)
264}
265
266func (*StreamingTranslateSpeechConfig) ProtoMessage() {}
267
268func (x *StreamingTranslateSpeechConfig) ProtoReflect() protoreflect.Message {
269	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[1]
270	if protoimpl.UnsafeEnabled && x != nil {
271		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
272		if ms.LoadMessageInfo() == nil {
273			ms.StoreMessageInfo(mi)
274		}
275		return ms
276	}
277	return mi.MessageOf(x)
278}
279
280// Deprecated: Use StreamingTranslateSpeechConfig.ProtoReflect.Descriptor instead.
281func (*StreamingTranslateSpeechConfig) Descriptor() ([]byte, []int) {
282	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{1}
283}
284
285func (x *StreamingTranslateSpeechConfig) GetAudioConfig() *TranslateSpeechConfig {
286	if x != nil {
287		return x.AudioConfig
288	}
289	return nil
290}
291
292func (x *StreamingTranslateSpeechConfig) GetSingleUtterance() bool {
293	if x != nil {
294		return x.SingleUtterance
295	}
296	return false
297}
298
299// The top-level message sent by the client for the `StreamingTranslateSpeech`
300// method. Multiple `StreamingTranslateSpeechRequest` messages are sent. The
301// first message must contain a `streaming_config` message and must not contain
302// `audio_content` data. All subsequent messages must contain `audio_content`
303// data and must not contain a `streaming_config` message.
304type StreamingTranslateSpeechRequest struct {
305	state         protoimpl.MessageState
306	sizeCache     protoimpl.SizeCache
307	unknownFields protoimpl.UnknownFields
308
309	// The streaming request, which is either a streaming config or content.
310	//
311	// Types that are assignable to StreamingRequest:
312	//	*StreamingTranslateSpeechRequest_StreamingConfig
313	//	*StreamingTranslateSpeechRequest_AudioContent
314	StreamingRequest isStreamingTranslateSpeechRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
315}
316
317func (x *StreamingTranslateSpeechRequest) Reset() {
318	*x = StreamingTranslateSpeechRequest{}
319	if protoimpl.UnsafeEnabled {
320		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[2]
321		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
322		ms.StoreMessageInfo(mi)
323	}
324}
325
326func (x *StreamingTranslateSpeechRequest) String() string {
327	return protoimpl.X.MessageStringOf(x)
328}
329
330func (*StreamingTranslateSpeechRequest) ProtoMessage() {}
331
332func (x *StreamingTranslateSpeechRequest) ProtoReflect() protoreflect.Message {
333	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[2]
334	if protoimpl.UnsafeEnabled && x != nil {
335		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
336		if ms.LoadMessageInfo() == nil {
337			ms.StoreMessageInfo(mi)
338		}
339		return ms
340	}
341	return mi.MessageOf(x)
342}
343
344// Deprecated: Use StreamingTranslateSpeechRequest.ProtoReflect.Descriptor instead.
345func (*StreamingTranslateSpeechRequest) Descriptor() ([]byte, []int) {
346	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{2}
347}
348
349func (m *StreamingTranslateSpeechRequest) GetStreamingRequest() isStreamingTranslateSpeechRequest_StreamingRequest {
350	if m != nil {
351		return m.StreamingRequest
352	}
353	return nil
354}
355
356func (x *StreamingTranslateSpeechRequest) GetStreamingConfig() *StreamingTranslateSpeechConfig {
357	if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_StreamingConfig); ok {
358		return x.StreamingConfig
359	}
360	return nil
361}
362
363func (x *StreamingTranslateSpeechRequest) GetAudioContent() []byte {
364	if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_AudioContent); ok {
365		return x.AudioContent
366	}
367	return nil
368}
369
370type isStreamingTranslateSpeechRequest_StreamingRequest interface {
371	isStreamingTranslateSpeechRequest_StreamingRequest()
372}
373
374type StreamingTranslateSpeechRequest_StreamingConfig struct {
375	// Provides information to the recognizer that specifies how to process the
376	// request. The first `StreamingTranslateSpeechRequest` message must contain
377	// a `streaming_config` message.
378	StreamingConfig *StreamingTranslateSpeechConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
379}
380
381type StreamingTranslateSpeechRequest_AudioContent struct {
382	// The audio data to be translated. Sequential chunks of audio data are sent
383	// in sequential `StreamingTranslateSpeechRequest` messages. The first
384	// `StreamingTranslateSpeechRequest` message must not contain
385	// `audio_content` data and all subsequent `StreamingTranslateSpeechRequest`
386	// messages must contain `audio_content` data. The audio bytes must be
387	// encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with
388	// all bytes fields, protobuffers use a pure binary representation (not
389	// base64).
390	AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
391}
392
393func (*StreamingTranslateSpeechRequest_StreamingConfig) isStreamingTranslateSpeechRequest_StreamingRequest() {
394}
395
396func (*StreamingTranslateSpeechRequest_AudioContent) isStreamingTranslateSpeechRequest_StreamingRequest() {
397}
398
399// A streaming speech translation result corresponding to a portion of the audio
400// that is currently being processed.
401type StreamingTranslateSpeechResult struct {
402	state         protoimpl.MessageState
403	sizeCache     protoimpl.SizeCache
404	unknownFields protoimpl.UnknownFields
405
406	// Translation result.
407	//
408	// Types that are assignable to Result:
409	//	*StreamingTranslateSpeechResult_TextTranslationResult_
410	Result isStreamingTranslateSpeechResult_Result `protobuf_oneof:"result"`
411}
412
413func (x *StreamingTranslateSpeechResult) Reset() {
414	*x = StreamingTranslateSpeechResult{}
415	if protoimpl.UnsafeEnabled {
416		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[3]
417		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
418		ms.StoreMessageInfo(mi)
419	}
420}
421
422func (x *StreamingTranslateSpeechResult) String() string {
423	return protoimpl.X.MessageStringOf(x)
424}
425
426func (*StreamingTranslateSpeechResult) ProtoMessage() {}
427
428func (x *StreamingTranslateSpeechResult) ProtoReflect() protoreflect.Message {
429	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[3]
430	if protoimpl.UnsafeEnabled && x != nil {
431		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
432		if ms.LoadMessageInfo() == nil {
433			ms.StoreMessageInfo(mi)
434		}
435		return ms
436	}
437	return mi.MessageOf(x)
438}
439
440// Deprecated: Use StreamingTranslateSpeechResult.ProtoReflect.Descriptor instead.
441func (*StreamingTranslateSpeechResult) Descriptor() ([]byte, []int) {
442	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{3}
443}
444
445func (m *StreamingTranslateSpeechResult) GetResult() isStreamingTranslateSpeechResult_Result {
446	if m != nil {
447		return m.Result
448	}
449	return nil
450}
451
452func (x *StreamingTranslateSpeechResult) GetTextTranslationResult() *StreamingTranslateSpeechResult_TextTranslationResult {
453	if x, ok := x.GetResult().(*StreamingTranslateSpeechResult_TextTranslationResult_); ok {
454		return x.TextTranslationResult
455	}
456	return nil
457}
458
459type isStreamingTranslateSpeechResult_Result interface {
460	isStreamingTranslateSpeechResult_Result()
461}
462
463type StreamingTranslateSpeechResult_TextTranslationResult_ struct {
464	// Text translation result.
465	TextTranslationResult *StreamingTranslateSpeechResult_TextTranslationResult `protobuf:"bytes,1,opt,name=text_translation_result,json=textTranslationResult,proto3,oneof"`
466}
467
468func (*StreamingTranslateSpeechResult_TextTranslationResult_) isStreamingTranslateSpeechResult_Result() {
469}
470
471// A streaming speech translation response corresponding to a portion of
472// the audio currently processed.
473type StreamingTranslateSpeechResponse struct {
474	state         protoimpl.MessageState
475	sizeCache     protoimpl.SizeCache
476	unknownFields protoimpl.UnknownFields
477
478	// Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
479	// specifies the error for the operation.
480	Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
481	// Output only. The translation result that is currently being processed (is_final could be
482	// true or false).
483	Result *StreamingTranslateSpeechResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
484	// Output only. Indicates the type of speech event.
485	SpeechEventType StreamingTranslateSpeechResponse_SpeechEventType `protobuf:"varint,3,opt,name=speech_event_type,json=speechEventType,proto3,enum=google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse_SpeechEventType" json:"speech_event_type,omitempty"`
486}
487
488func (x *StreamingTranslateSpeechResponse) Reset() {
489	*x = StreamingTranslateSpeechResponse{}
490	if protoimpl.UnsafeEnabled {
491		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[4]
492		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
493		ms.StoreMessageInfo(mi)
494	}
495}
496
497func (x *StreamingTranslateSpeechResponse) String() string {
498	return protoimpl.X.MessageStringOf(x)
499}
500
501func (*StreamingTranslateSpeechResponse) ProtoMessage() {}
502
503func (x *StreamingTranslateSpeechResponse) ProtoReflect() protoreflect.Message {
504	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[4]
505	if protoimpl.UnsafeEnabled && x != nil {
506		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
507		if ms.LoadMessageInfo() == nil {
508			ms.StoreMessageInfo(mi)
509		}
510		return ms
511	}
512	return mi.MessageOf(x)
513}
514
515// Deprecated: Use StreamingTranslateSpeechResponse.ProtoReflect.Descriptor instead.
516func (*StreamingTranslateSpeechResponse) Descriptor() ([]byte, []int) {
517	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{4}
518}
519
520func (x *StreamingTranslateSpeechResponse) GetError() *status.Status {
521	if x != nil {
522		return x.Error
523	}
524	return nil
525}
526
527func (x *StreamingTranslateSpeechResponse) GetResult() *StreamingTranslateSpeechResult {
528	if x != nil {
529		return x.Result
530	}
531	return nil
532}
533
534func (x *StreamingTranslateSpeechResponse) GetSpeechEventType() StreamingTranslateSpeechResponse_SpeechEventType {
535	if x != nil {
536		return x.SpeechEventType
537	}
538	return StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
539}
540
541// Text translation result.
542type StreamingTranslateSpeechResult_TextTranslationResult struct {
543	state         protoimpl.MessageState
544	sizeCache     protoimpl.SizeCache
545	unknownFields protoimpl.UnknownFields
546
547	// Output only. The translated sentence.
548	Translation string `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
549	// Output only. If `false`, this `StreamingTranslateSpeechResult` represents
550	// an interim result that may change. If `true`, this is the final time the
551	// translation service will return this particular
552	// `StreamingTranslateSpeechResult`, the streaming translator will not
553	// return any further hypotheses for this portion of the transcript and
554	// corresponding audio.
555	IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
556}
557
558func (x *StreamingTranslateSpeechResult_TextTranslationResult) Reset() {
559	*x = StreamingTranslateSpeechResult_TextTranslationResult{}
560	if protoimpl.UnsafeEnabled {
561		mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[5]
562		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
563		ms.StoreMessageInfo(mi)
564	}
565}
566
567func (x *StreamingTranslateSpeechResult_TextTranslationResult) String() string {
568	return protoimpl.X.MessageStringOf(x)
569}
570
571func (*StreamingTranslateSpeechResult_TextTranslationResult) ProtoMessage() {}
572
573func (x *StreamingTranslateSpeechResult_TextTranslationResult) ProtoReflect() protoreflect.Message {
574	mi := &file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[5]
575	if protoimpl.UnsafeEnabled && x != nil {
576		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
577		if ms.LoadMessageInfo() == nil {
578			ms.StoreMessageInfo(mi)
579		}
580		return ms
581	}
582	return mi.MessageOf(x)
583}
584
585// Deprecated: Use StreamingTranslateSpeechResult_TextTranslationResult.ProtoReflect.Descriptor instead.
586func (*StreamingTranslateSpeechResult_TextTranslationResult) Descriptor() ([]byte, []int) {
587	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{3, 0}
588}
589
590func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetTranslation() string {
591	if x != nil {
592		return x.Translation
593	}
594	return ""
595}
596
597func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetIsFinal() bool {
598	if x != nil {
599		return x.IsFinal
600	}
601	return false
602}
603
604var File_google_cloud_mediatranslation_v1beta1_media_translation_proto protoreflect.FileDescriptor
605
606var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDesc = []byte{
607	0x0a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d,
608	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
609	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x72,
610	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
611	0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65,
612	0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76,
613	0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
614	0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
615	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
616	0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
617	0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69,
618	0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfd, 0x01, 0x0a, 0x15, 0x54, 0x72,
619	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e,
620	0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x65, 0x6e, 0x63,
621	0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
622	0x52, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12,
623	0x35, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61,
624	0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
625	0x41, 0x02, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61,
626	0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x14, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
627	0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03,
628	0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x74, 0x61, 0x72, 0x67, 0x65,
629	0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2f, 0x0a,
630	0x11, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x65, 0x72,
631	0x74, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x73,
632	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x48, 0x65, 0x72, 0x74, 0x7a, 0x12, 0x19,
633	0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
634	0x41, 0x01, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xb6, 0x01, 0x0a, 0x1e, 0x53, 0x74,
635	0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65,
636	0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x64, 0x0a, 0x0c,
637	0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01,
638	0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
639	0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
640	0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73,
641	0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
642	0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x66,
643	0x69, 0x67, 0x12, 0x2e, 0x0a, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x75, 0x74, 0x74,
644	0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
645	0x01, 0x52, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e,
646	0x63, 0x65, 0x22, 0xd1, 0x01, 0x0a, 0x1f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67,
647	0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52,
648	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x72, 0x0a, 0x10, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
649	0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
650	0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
651	0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
652	0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69,
653	0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63,
654	0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x74, 0x72, 0x65, 0x61,
655	0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x61, 0x75,
656	0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
657	0x0c, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
658	0x74, 0x42, 0x13, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x72,
659	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa2, 0x02, 0x0a, 0x1e, 0x53, 0x74, 0x72, 0x65, 0x61,
660	0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65,
661	0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x95, 0x01, 0x0a, 0x17, 0x74, 0x65,
662	0x78, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72,
663	0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x5b, 0x2e, 0x67, 0x6f,
664	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
665	0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65,
666	0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61,
667	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75,
668	0x6c, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
669	0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x15, 0x74, 0x65, 0x78, 0x74,
670	0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c,
671	0x74, 0x1a, 0x5e, 0x0a, 0x15, 0x54, 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
672	0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0b, 0x74, 0x72,
673	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
674	0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f,
675	0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20,
676	0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x61,
677	0x6c, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x93, 0x03, 0x0a, 0x20,
678	0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
679	0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
680	0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
681	0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61,
682	0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12,
683	0x62, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
684	0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
685	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
686	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e,
687	0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68,
688	0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x72, 0x65, 0x73,
689	0x75, 0x6c, 0x74, 0x12, 0x88, 0x01, 0x0a, 0x11, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x5f, 0x65,
690	0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
691	0x57, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
692	0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
693	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e,
694	0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68,
695	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x45,
696	0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x73,
697	0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x51,
698	0x0a, 0x0f, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
699	0x65, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x50, 0x45, 0x45, 0x43, 0x48, 0x5f, 0x45, 0x56, 0x45, 0x4e,
700	0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
701	0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x46, 0x5f, 0x53,
702	0x49, 0x4e, 0x47, 0x4c, 0x45, 0x5f, 0x55, 0x54, 0x54, 0x45, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10,
703	0x01, 0x32, 0xa3, 0x02, 0x0a, 0x18, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e,
704	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb1,
705	0x01, 0x0a, 0x18, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e,
706	0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0x46, 0x2e, 0x67, 0x6f,
707	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
708	0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65,
709	0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61,
710	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
711	0x65, 0x73, 0x74, 0x1a, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
712	0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
713	0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65,
714	0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70,
715	0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01,
716	0x30, 0x01, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e,
717	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
718	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f,
719	0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
720	0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70,
721	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x99, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e,
722	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64,
723	0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
724	0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x15, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x72, 0x61, 0x6e,
725	0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x55,
726	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
727	0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
728	0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x65, 0x64, 0x69,
729	0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x62,
730	0x65, 0x74, 0x61, 0x31, 0x3b, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c,
731	0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
732	0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x72, 0x61,
733	0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31,
734	0xca, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
735	0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
736	0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
737	0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54,
738	0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65,
739	0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
740}
741
742var (
743	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescOnce sync.Once
744	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescData = file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDesc
745)
746
747func file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP() []byte {
748	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescOnce.Do(func() {
749		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescData)
750	})
751	return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescData
752}
753
754var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
755var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
756var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_goTypes = []interface{}{
757	(StreamingTranslateSpeechResponse_SpeechEventType)(0),        // 0: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType
758	(*TranslateSpeechConfig)(nil),                                // 1: google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig
759	(*StreamingTranslateSpeechConfig)(nil),                       // 2: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig
760	(*StreamingTranslateSpeechRequest)(nil),                      // 3: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest
761	(*StreamingTranslateSpeechResult)(nil),                       // 4: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
762	(*StreamingTranslateSpeechResponse)(nil),                     // 5: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse
763	(*StreamingTranslateSpeechResult_TextTranslationResult)(nil), // 6: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult
764	(*status.Status)(nil),                                        // 7: google.rpc.Status
765}
766var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_depIdxs = []int32{
767	1, // 0: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig.audio_config:type_name -> google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig
768	2, // 1: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest.streaming_config:type_name -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig
769	6, // 2: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.text_translation_result:type_name -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult
770	7, // 3: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.error:type_name -> google.rpc.Status
771	4, // 4: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.result:type_name -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
772	0, // 5: google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.speech_event_type:type_name -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType
773	3, // 6: google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech:input_type -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest
774	5, // 7: google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech:output_type -> google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse
775	7, // [7:8] is the sub-list for method output_type
776	6, // [6:7] is the sub-list for method input_type
777	6, // [6:6] is the sub-list for extension type_name
778	6, // [6:6] is the sub-list for extension extendee
779	0, // [0:6] is the sub-list for field type_name
780}
781
782func init() { file_google_cloud_mediatranslation_v1beta1_media_translation_proto_init() }
783func file_google_cloud_mediatranslation_v1beta1_media_translation_proto_init() {
784	if File_google_cloud_mediatranslation_v1beta1_media_translation_proto != nil {
785		return
786	}
787	if !protoimpl.UnsafeEnabled {
788		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
789			switch v := v.(*TranslateSpeechConfig); i {
790			case 0:
791				return &v.state
792			case 1:
793				return &v.sizeCache
794			case 2:
795				return &v.unknownFields
796			default:
797				return nil
798			}
799		}
800		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
801			switch v := v.(*StreamingTranslateSpeechConfig); i {
802			case 0:
803				return &v.state
804			case 1:
805				return &v.sizeCache
806			case 2:
807				return &v.unknownFields
808			default:
809				return nil
810			}
811		}
812		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
813			switch v := v.(*StreamingTranslateSpeechRequest); i {
814			case 0:
815				return &v.state
816			case 1:
817				return &v.sizeCache
818			case 2:
819				return &v.unknownFields
820			default:
821				return nil
822			}
823		}
824		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
825			switch v := v.(*StreamingTranslateSpeechResult); i {
826			case 0:
827				return &v.state
828			case 1:
829				return &v.sizeCache
830			case 2:
831				return &v.unknownFields
832			default:
833				return nil
834			}
835		}
836		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
837			switch v := v.(*StreamingTranslateSpeechResponse); i {
838			case 0:
839				return &v.state
840			case 1:
841				return &v.sizeCache
842			case 2:
843				return &v.unknownFields
844			default:
845				return nil
846			}
847		}
848		file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
849			switch v := v.(*StreamingTranslateSpeechResult_TextTranslationResult); i {
850			case 0:
851				return &v.state
852			case 1:
853				return &v.sizeCache
854			case 2:
855				return &v.unknownFields
856			default:
857				return nil
858			}
859		}
860	}
861	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[2].OneofWrappers = []interface{}{
862		(*StreamingTranslateSpeechRequest_StreamingConfig)(nil),
863		(*StreamingTranslateSpeechRequest_AudioContent)(nil),
864	}
865	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes[3].OneofWrappers = []interface{}{
866		(*StreamingTranslateSpeechResult_TextTranslationResult_)(nil),
867	}
868	type x struct{}
869	out := protoimpl.TypeBuilder{
870		File: protoimpl.DescBuilder{
871			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
872			RawDescriptor: file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDesc,
873			NumEnums:      1,
874			NumMessages:   6,
875			NumExtensions: 0,
876			NumServices:   1,
877		},
878		GoTypes:           file_google_cloud_mediatranslation_v1beta1_media_translation_proto_goTypes,
879		DependencyIndexes: file_google_cloud_mediatranslation_v1beta1_media_translation_proto_depIdxs,
880		EnumInfos:         file_google_cloud_mediatranslation_v1beta1_media_translation_proto_enumTypes,
881		MessageInfos:      file_google_cloud_mediatranslation_v1beta1_media_translation_proto_msgTypes,
882	}.Build()
883	File_google_cloud_mediatranslation_v1beta1_media_translation_proto = out.File
884	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDesc = nil
885	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_goTypes = nil
886	file_google_cloud_mediatranslation_v1beta1_media_translation_proto_depIdxs = nil
887}
888
889// Reference imports to suppress errors if they are not otherwise used.
890var _ context.Context
891var _ grpc.ClientConnInterface
892
893// This is a compile-time assertion to ensure that this generated file
894// is compatible with the grpc package it is being compiled against.
895const _ = grpc.SupportPackageIsVersion6
896
897// SpeechTranslationServiceClient is the client API for SpeechTranslationService service.
898//
899// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
900type SpeechTranslationServiceClient interface {
901	// Performs bidirectional streaming speech translation: receive results while
902	// sending audio. This method is only available via the gRPC API (not REST).
903	StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error)
904}
905
906type speechTranslationServiceClient struct {
907	cc grpc.ClientConnInterface
908}
909
910func NewSpeechTranslationServiceClient(cc grpc.ClientConnInterface) SpeechTranslationServiceClient {
911	return &speechTranslationServiceClient{cc}
912}
913
914func (c *speechTranslationServiceClient) StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error) {
915	stream, err := c.cc.NewStream(ctx, &_SpeechTranslationService_serviceDesc.Streams[0], "/google.cloud.mediatranslation.v1beta1.SpeechTranslationService/StreamingTranslateSpeech", opts...)
916	if err != nil {
917		return nil, err
918	}
919	x := &speechTranslationServiceStreamingTranslateSpeechClient{stream}
920	return x, nil
921}
922
923type SpeechTranslationService_StreamingTranslateSpeechClient interface {
924	Send(*StreamingTranslateSpeechRequest) error
925	Recv() (*StreamingTranslateSpeechResponse, error)
926	grpc.ClientStream
927}
928
929type speechTranslationServiceStreamingTranslateSpeechClient struct {
930	grpc.ClientStream
931}
932
933func (x *speechTranslationServiceStreamingTranslateSpeechClient) Send(m *StreamingTranslateSpeechRequest) error {
934	return x.ClientStream.SendMsg(m)
935}
936
937func (x *speechTranslationServiceStreamingTranslateSpeechClient) Recv() (*StreamingTranslateSpeechResponse, error) {
938	m := new(StreamingTranslateSpeechResponse)
939	if err := x.ClientStream.RecvMsg(m); err != nil {
940		return nil, err
941	}
942	return m, nil
943}
944
945// SpeechTranslationServiceServer is the server API for SpeechTranslationService service.
946type SpeechTranslationServiceServer interface {
947	// Performs bidirectional streaming speech translation: receive results while
948	// sending audio. This method is only available via the gRPC API (not REST).
949	StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error
950}
951
952// UnimplementedSpeechTranslationServiceServer can be embedded to have forward compatible implementations.
953type UnimplementedSpeechTranslationServiceServer struct {
954}
955
956func (*UnimplementedSpeechTranslationServiceServer) StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error {
957	return status1.Errorf(codes.Unimplemented, "method StreamingTranslateSpeech not implemented")
958}
959
960func RegisterSpeechTranslationServiceServer(s *grpc.Server, srv SpeechTranslationServiceServer) {
961	s.RegisterService(&_SpeechTranslationService_serviceDesc, srv)
962}
963
964func _SpeechTranslationService_StreamingTranslateSpeech_Handler(srv interface{}, stream grpc.ServerStream) error {
965	return srv.(SpeechTranslationServiceServer).StreamingTranslateSpeech(&speechTranslationServiceStreamingTranslateSpeechServer{stream})
966}
967
968type SpeechTranslationService_StreamingTranslateSpeechServer interface {
969	Send(*StreamingTranslateSpeechResponse) error
970	Recv() (*StreamingTranslateSpeechRequest, error)
971	grpc.ServerStream
972}
973
974type speechTranslationServiceStreamingTranslateSpeechServer struct {
975	grpc.ServerStream
976}
977
978func (x *speechTranslationServiceStreamingTranslateSpeechServer) Send(m *StreamingTranslateSpeechResponse) error {
979	return x.ServerStream.SendMsg(m)
980}
981
982func (x *speechTranslationServiceStreamingTranslateSpeechServer) Recv() (*StreamingTranslateSpeechRequest, error) {
983	m := new(StreamingTranslateSpeechRequest)
984	if err := x.ServerStream.RecvMsg(m); err != nil {
985		return nil, err
986	}
987	return m, nil
988}
989
990var _SpeechTranslationService_serviceDesc = grpc.ServiceDesc{
991	ServiceName: "google.cloud.mediatranslation.v1beta1.SpeechTranslationService",
992	HandlerType: (*SpeechTranslationServiceServer)(nil),
993	Methods:     []grpc.MethodDesc{},
994	Streams: []grpc.StreamDesc{
995		{
996			StreamName:    "StreamingTranslateSpeech",
997			Handler:       _SpeechTranslationService_StreamingTranslateSpeech_Handler,
998			ServerStreams: true,
999			ClientStreams: true,
1000		},
1001	},
1002	Metadata: "google/cloud/mediatranslation/v1beta1/media_translation.proto",
1003}
1004