1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package mediatranslation
22
23 import (
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
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45 type StreamingTranslateSpeechResponse_SpeechEventType int32
46
47 const (
48
49 StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED StreamingTranslateSpeechResponse_SpeechEventType = 0
50
51
52
53
54
55
56
57
58
59
60 StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE StreamingTranslateSpeechResponse_SpeechEventType = 1
61 )
62
63
64 var (
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
75 func (x StreamingTranslateSpeechResponse_SpeechEventType) Enum() *StreamingTranslateSpeechResponse_SpeechEventType {
76 p := new(StreamingTranslateSpeechResponse_SpeechEventType)
77 *p = x
78 return p
79 }
80
81 func (x StreamingTranslateSpeechResponse_SpeechEventType) String() string {
82 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
83 }
84
85 func (StreamingTranslateSpeechResponse_SpeechEventType) Descriptor() protoreflect.EnumDescriptor {
86 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes[0].Descriptor()
87 }
88
89 func (StreamingTranslateSpeechResponse_SpeechEventType) Type() protoreflect.EnumType {
90 return &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes[0]
91 }
92
93 func (x StreamingTranslateSpeechResponse_SpeechEventType) Number() protoreflect.EnumNumber {
94 return protoreflect.EnumNumber(x)
95 }
96
97
98 func (StreamingTranslateSpeechResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) {
99 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{4, 0}
100 }
101
102
103
104 type TranslateSpeechConfig struct {
105 state protoimpl.MessageState
106 sizeCache protoimpl.SizeCache
107 unknownFields protoimpl.UnknownFields
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147 AudioEncoding string `protobuf:"bytes,1,opt,name=audio_encoding,json=audioEncoding,proto3" json:"audio_encoding,omitempty"`
148
149 SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"`
150
151 TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"`
152
153
154
155
156
157
158
159
160
161
162
163
164
165 AlternativeSourceLanguageCodes []string `protobuf:"bytes,6,rep,name=alternative_source_language_codes,json=alternativeSourceLanguageCodes,proto3" json:"alternative_source_language_codes,omitempty"`
166
167
168
169
170
171 SampleRateHertz int32 `protobuf:"varint,4,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
172
173 Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
174 }
175
176 func (x *TranslateSpeechConfig) Reset() {
177 *x = TranslateSpeechConfig{}
178 if protoimpl.UnsafeEnabled {
179 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0]
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 ms.StoreMessageInfo(mi)
182 }
183 }
184
185 func (x *TranslateSpeechConfig) String() string {
186 return protoimpl.X.MessageStringOf(x)
187 }
188
189 func (*TranslateSpeechConfig) ProtoMessage() {}
190
191 func (x *TranslateSpeechConfig) ProtoReflect() protoreflect.Message {
192 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0]
193 if protoimpl.UnsafeEnabled && x != nil {
194 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
195 if ms.LoadMessageInfo() == nil {
196 ms.StoreMessageInfo(mi)
197 }
198 return ms
199 }
200 return mi.MessageOf(x)
201 }
202
203
204 func (*TranslateSpeechConfig) Descriptor() ([]byte, []int) {
205 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{0}
206 }
207
208 func (x *TranslateSpeechConfig) GetAudioEncoding() string {
209 if x != nil {
210 return x.AudioEncoding
211 }
212 return ""
213 }
214
215 func (x *TranslateSpeechConfig) GetSourceLanguageCode() string {
216 if x != nil {
217 return x.SourceLanguageCode
218 }
219 return ""
220 }
221
222 func (x *TranslateSpeechConfig) GetTargetLanguageCode() string {
223 if x != nil {
224 return x.TargetLanguageCode
225 }
226 return ""
227 }
228
229 func (x *TranslateSpeechConfig) GetAlternativeSourceLanguageCodes() []string {
230 if x != nil {
231 return x.AlternativeSourceLanguageCodes
232 }
233 return nil
234 }
235
236 func (x *TranslateSpeechConfig) GetSampleRateHertz() int32 {
237 if x != nil {
238 return x.SampleRateHertz
239 }
240 return 0
241 }
242
243 func (x *TranslateSpeechConfig) GetModel() string {
244 if x != nil {
245 return x.Model
246 }
247 return ""
248 }
249
250
251 type StreamingTranslateSpeechConfig struct {
252 state protoimpl.MessageState
253 sizeCache protoimpl.SizeCache
254 unknownFields protoimpl.UnknownFields
255
256
257 AudioConfig *TranslateSpeechConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"`
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272 SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292 Stability string `protobuf:"bytes,3,opt,name=stability,proto3" json:"stability,omitempty"`
293
294
295
296
297
298
299
300
301
302
303
304
305
306 TranslationMode string `protobuf:"bytes,4,opt,name=translation_mode,json=translationMode,proto3" json:"translation_mode,omitempty"`
307
308
309
310
311 DisableInterimResults bool `protobuf:"varint,5,opt,name=disable_interim_results,json=disableInterimResults,proto3" json:"disable_interim_results,omitempty"`
312 }
313
314 func (x *StreamingTranslateSpeechConfig) Reset() {
315 *x = StreamingTranslateSpeechConfig{}
316 if protoimpl.UnsafeEnabled {
317 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1]
318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
319 ms.StoreMessageInfo(mi)
320 }
321 }
322
323 func (x *StreamingTranslateSpeechConfig) String() string {
324 return protoimpl.X.MessageStringOf(x)
325 }
326
327 func (*StreamingTranslateSpeechConfig) ProtoMessage() {}
328
329 func (x *StreamingTranslateSpeechConfig) ProtoReflect() protoreflect.Message {
330 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1]
331 if protoimpl.UnsafeEnabled && x != nil {
332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
333 if ms.LoadMessageInfo() == nil {
334 ms.StoreMessageInfo(mi)
335 }
336 return ms
337 }
338 return mi.MessageOf(x)
339 }
340
341
342 func (*StreamingTranslateSpeechConfig) Descriptor() ([]byte, []int) {
343 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{1}
344 }
345
346 func (x *StreamingTranslateSpeechConfig) GetAudioConfig() *TranslateSpeechConfig {
347 if x != nil {
348 return x.AudioConfig
349 }
350 return nil
351 }
352
353 func (x *StreamingTranslateSpeechConfig) GetSingleUtterance() bool {
354 if x != nil {
355 return x.SingleUtterance
356 }
357 return false
358 }
359
360 func (x *StreamingTranslateSpeechConfig) GetStability() string {
361 if x != nil {
362 return x.Stability
363 }
364 return ""
365 }
366
367 func (x *StreamingTranslateSpeechConfig) GetTranslationMode() string {
368 if x != nil {
369 return x.TranslationMode
370 }
371 return ""
372 }
373
374 func (x *StreamingTranslateSpeechConfig) GetDisableInterimResults() bool {
375 if x != nil {
376 return x.DisableInterimResults
377 }
378 return false
379 }
380
381
382
383
384
385
386 type StreamingTranslateSpeechRequest struct {
387 state protoimpl.MessageState
388 sizeCache protoimpl.SizeCache
389 unknownFields protoimpl.UnknownFields
390
391
392
393
394
395
396 StreamingRequest isStreamingTranslateSpeechRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
397 }
398
399 func (x *StreamingTranslateSpeechRequest) Reset() {
400 *x = StreamingTranslateSpeechRequest{}
401 if protoimpl.UnsafeEnabled {
402 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2]
403 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
404 ms.StoreMessageInfo(mi)
405 }
406 }
407
408 func (x *StreamingTranslateSpeechRequest) String() string {
409 return protoimpl.X.MessageStringOf(x)
410 }
411
412 func (*StreamingTranslateSpeechRequest) ProtoMessage() {}
413
414 func (x *StreamingTranslateSpeechRequest) ProtoReflect() protoreflect.Message {
415 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2]
416 if protoimpl.UnsafeEnabled && x != nil {
417 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
418 if ms.LoadMessageInfo() == nil {
419 ms.StoreMessageInfo(mi)
420 }
421 return ms
422 }
423 return mi.MessageOf(x)
424 }
425
426
427 func (*StreamingTranslateSpeechRequest) Descriptor() ([]byte, []int) {
428 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{2}
429 }
430
431 func (m *StreamingTranslateSpeechRequest) GetStreamingRequest() isStreamingTranslateSpeechRequest_StreamingRequest {
432 if m != nil {
433 return m.StreamingRequest
434 }
435 return nil
436 }
437
438 func (x *StreamingTranslateSpeechRequest) GetStreamingConfig() *StreamingTranslateSpeechConfig {
439 if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_StreamingConfig); ok {
440 return x.StreamingConfig
441 }
442 return nil
443 }
444
445 func (x *StreamingTranslateSpeechRequest) GetAudioContent() []byte {
446 if x, ok := x.GetStreamingRequest().(*StreamingTranslateSpeechRequest_AudioContent); ok {
447 return x.AudioContent
448 }
449 return nil
450 }
451
452 type isStreamingTranslateSpeechRequest_StreamingRequest interface {
453 isStreamingTranslateSpeechRequest_StreamingRequest()
454 }
455
456 type StreamingTranslateSpeechRequest_StreamingConfig struct {
457
458
459
460 StreamingConfig *StreamingTranslateSpeechConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
461 }
462
463 type StreamingTranslateSpeechRequest_AudioContent struct {
464
465
466
467
468
469
470
471
472 AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
473 }
474
475 func (*StreamingTranslateSpeechRequest_StreamingConfig) isStreamingTranslateSpeechRequest_StreamingRequest() {
476 }
477
478 func (*StreamingTranslateSpeechRequest_AudioContent) isStreamingTranslateSpeechRequest_StreamingRequest() {
479 }
480
481
482
483 type StreamingTranslateSpeechResult struct {
484 state protoimpl.MessageState
485 sizeCache protoimpl.SizeCache
486 unknownFields protoimpl.UnknownFields
487
488
489 TextTranslationResult *StreamingTranslateSpeechResult_TextTranslationResult `protobuf:"bytes,1,opt,name=text_translation_result,json=textTranslationResult,proto3" json:"text_translation_result,omitempty"`
490
491 AudioTranslationResult *StreamingTranslateSpeechResult_AudioTranslationResult `protobuf:"bytes,2,opt,name=audio_translation_result,json=audioTranslationResult,proto3" json:"audio_translation_result,omitempty"`
492
493
494
495 RecognitionResult string `protobuf:"bytes,3,opt,name=recognition_result,json=recognitionResult,proto3" json:"recognition_result,omitempty"`
496
497 DetectedSourceLanguageCode string `protobuf:"bytes,4,opt,name=detected_source_language_code,json=detectedSourceLanguageCode,proto3" json:"detected_source_language_code,omitempty"`
498 }
499
500 func (x *StreamingTranslateSpeechResult) Reset() {
501 *x = StreamingTranslateSpeechResult{}
502 if protoimpl.UnsafeEnabled {
503 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3]
504 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
505 ms.StoreMessageInfo(mi)
506 }
507 }
508
509 func (x *StreamingTranslateSpeechResult) String() string {
510 return protoimpl.X.MessageStringOf(x)
511 }
512
513 func (*StreamingTranslateSpeechResult) ProtoMessage() {}
514
515 func (x *StreamingTranslateSpeechResult) ProtoReflect() protoreflect.Message {
516 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3]
517 if protoimpl.UnsafeEnabled && x != nil {
518 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
519 if ms.LoadMessageInfo() == nil {
520 ms.StoreMessageInfo(mi)
521 }
522 return ms
523 }
524 return mi.MessageOf(x)
525 }
526
527
528 func (*StreamingTranslateSpeechResult) Descriptor() ([]byte, []int) {
529 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3}
530 }
531
532 func (x *StreamingTranslateSpeechResult) GetTextTranslationResult() *StreamingTranslateSpeechResult_TextTranslationResult {
533 if x != nil {
534 return x.TextTranslationResult
535 }
536 return nil
537 }
538
539 func (x *StreamingTranslateSpeechResult) GetAudioTranslationResult() *StreamingTranslateSpeechResult_AudioTranslationResult {
540 if x != nil {
541 return x.AudioTranslationResult
542 }
543 return nil
544 }
545
546 func (x *StreamingTranslateSpeechResult) GetRecognitionResult() string {
547 if x != nil {
548 return x.RecognitionResult
549 }
550 return ""
551 }
552
553 func (x *StreamingTranslateSpeechResult) GetDetectedSourceLanguageCode() string {
554 if x != nil {
555 return x.DetectedSourceLanguageCode
556 }
557 return ""
558 }
559
560
561
562 type StreamingTranslateSpeechResponse struct {
563 state protoimpl.MessageState
564 sizeCache protoimpl.SizeCache
565 unknownFields protoimpl.UnknownFields
566
567
568
569 Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
570
571
572
573
574
575
576 Result *StreamingTranslateSpeechResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
577
578 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"`
579 }
580
581 func (x *StreamingTranslateSpeechResponse) Reset() {
582 *x = StreamingTranslateSpeechResponse{}
583 if protoimpl.UnsafeEnabled {
584 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4]
585 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
586 ms.StoreMessageInfo(mi)
587 }
588 }
589
590 func (x *StreamingTranslateSpeechResponse) String() string {
591 return protoimpl.X.MessageStringOf(x)
592 }
593
594 func (*StreamingTranslateSpeechResponse) ProtoMessage() {}
595
596 func (x *StreamingTranslateSpeechResponse) ProtoReflect() protoreflect.Message {
597 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4]
598 if protoimpl.UnsafeEnabled && x != nil {
599 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
600 if ms.LoadMessageInfo() == nil {
601 ms.StoreMessageInfo(mi)
602 }
603 return ms
604 }
605 return mi.MessageOf(x)
606 }
607
608
609 func (*StreamingTranslateSpeechResponse) Descriptor() ([]byte, []int) {
610 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{4}
611 }
612
613 func (x *StreamingTranslateSpeechResponse) GetError() *status.Status {
614 if x != nil {
615 return x.Error
616 }
617 return nil
618 }
619
620 func (x *StreamingTranslateSpeechResponse) GetResult() *StreamingTranslateSpeechResult {
621 if x != nil {
622 return x.Result
623 }
624 return nil
625 }
626
627 func (x *StreamingTranslateSpeechResponse) GetSpeechEventType() StreamingTranslateSpeechResponse_SpeechEventType {
628 if x != nil {
629 return x.SpeechEventType
630 }
631 return StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED
632 }
633
634
635 type StreamingTranslateSpeechResult_TextTranslationResult struct {
636 state protoimpl.MessageState
637 sizeCache protoimpl.SizeCache
638 unknownFields protoimpl.UnknownFields
639
640
641 Translation string `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"`
642
643
644
645
646
647
648 IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
649 }
650
651 func (x *StreamingTranslateSpeechResult_TextTranslationResult) Reset() {
652 *x = StreamingTranslateSpeechResult_TextTranslationResult{}
653 if protoimpl.UnsafeEnabled {
654 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5]
655 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
656 ms.StoreMessageInfo(mi)
657 }
658 }
659
660 func (x *StreamingTranslateSpeechResult_TextTranslationResult) String() string {
661 return protoimpl.X.MessageStringOf(x)
662 }
663
664 func (*StreamingTranslateSpeechResult_TextTranslationResult) ProtoMessage() {}
665
666 func (x *StreamingTranslateSpeechResult_TextTranslationResult) ProtoReflect() protoreflect.Message {
667 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5]
668 if protoimpl.UnsafeEnabled && x != nil {
669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
670 if ms.LoadMessageInfo() == nil {
671 ms.StoreMessageInfo(mi)
672 }
673 return ms
674 }
675 return mi.MessageOf(x)
676 }
677
678
679 func (*StreamingTranslateSpeechResult_TextTranslationResult) Descriptor() ([]byte, []int) {
680 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3, 0}
681 }
682
683 func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetTranslation() string {
684 if x != nil {
685 return x.Translation
686 }
687 return ""
688 }
689
690 func (x *StreamingTranslateSpeechResult_TextTranslationResult) GetIsFinal() bool {
691 if x != nil {
692 return x.IsFinal
693 }
694 return false
695 }
696
697
698 type StreamingTranslateSpeechResult_AudioTranslationResult struct {
699 state protoimpl.MessageState
700 sizeCache protoimpl.SizeCache
701 unknownFields protoimpl.UnknownFields
702
703
704 AudioTranslation []byte `protobuf:"bytes,1,opt,name=audio_translation,json=audioTranslation,proto3" json:"audio_translation,omitempty"`
705 }
706
707 func (x *StreamingTranslateSpeechResult_AudioTranslationResult) Reset() {
708 *x = StreamingTranslateSpeechResult_AudioTranslationResult{}
709 if protoimpl.UnsafeEnabled {
710 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6]
711 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
712 ms.StoreMessageInfo(mi)
713 }
714 }
715
716 func (x *StreamingTranslateSpeechResult_AudioTranslationResult) String() string {
717 return protoimpl.X.MessageStringOf(x)
718 }
719
720 func (*StreamingTranslateSpeechResult_AudioTranslationResult) ProtoMessage() {}
721
722 func (x *StreamingTranslateSpeechResult_AudioTranslationResult) ProtoReflect() protoreflect.Message {
723 mi := &file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6]
724 if protoimpl.UnsafeEnabled && x != nil {
725 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
726 if ms.LoadMessageInfo() == nil {
727 ms.StoreMessageInfo(mi)
728 }
729 return ms
730 }
731 return mi.MessageOf(x)
732 }
733
734
735 func (*StreamingTranslateSpeechResult_AudioTranslationResult) Descriptor() ([]byte, []int) {
736 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP(), []int{3, 1}
737 }
738
739 func (x *StreamingTranslateSpeechResult_AudioTranslationResult) GetAudioTranslation() []byte {
740 if x != nil {
741 return x.AudioTranslation
742 }
743 return nil
744 }
745
746 var File_google_cloud_mediatranslation_v1alpha1_media_translation_proto protoreflect.FileDescriptor
747
748 var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc = []byte{
749 0x0a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d,
750 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
751 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74,
752 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
753 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
754 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
755 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
756 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
757 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
758 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
759 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
760 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x02, 0x0a, 0x15,
761 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43,
762 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x65,
763 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
764 0x41, 0x02, 0x52, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
765 0x67, 0x12, 0x35, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67,
766 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
767 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67,
768 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x14, 0x74, 0x61, 0x72, 0x67,
769 0x65, 0x74, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65,
770 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x74, 0x61, 0x72,
771 0x67, 0x65, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12,
772 0x4e, 0x0a, 0x21, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73,
773 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63,
774 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
775 0x1e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x6f, 0x75, 0x72,
776 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12,
777 0x2f, 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x68,
778 0x65, 0x72, 0x74, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
779 0x0f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x48, 0x65, 0x72, 0x74, 0x7a,
780 0x12, 0x19, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42,
781 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xc7, 0x02, 0x0a, 0x1e,
782 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
783 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x65,
784 0x0a, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
785 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
786 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
787 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x72,
788 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e,
789 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43,
790 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x10, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f,
791 0x75, 0x74, 0x74, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42,
792 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x55, 0x74, 0x74, 0x65,
793 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
794 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x73,
795 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e,
796 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,
797 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
798 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61,
799 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x75,
800 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x15,
801 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x52, 0x65,
802 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x1f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d,
803 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65,
804 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x73, 0x0a, 0x10, 0x73, 0x74, 0x72,
805 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20,
806 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
807 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
808 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72,
809 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53,
810 0x70, 0x65, 0x65, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x73,
811 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25,
812 0x0a, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
813 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x43, 0x6f,
814 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x13, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69,
815 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xf9, 0x04, 0x0a, 0x1e, 0x53,
816 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
817 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x94, 0x01,
818 0x0a, 0x17, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
819 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
820 0x5c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
821 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
822 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69,
823 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63,
824 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e,
825 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x15, 0x74,
826 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
827 0x73, 0x75, 0x6c, 0x74, 0x12, 0x97, 0x01, 0x0a, 0x18, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x74,
828 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c,
829 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x5d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
830 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e,
831 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31,
832 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c,
833 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e,
834 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
835 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x16, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61,
836 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x32,
837 0x0a, 0x12, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65,
838 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
839 0x11, 0x72, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75,
840 0x6c, 0x74, 0x12, 0x46, 0x0a, 0x1d, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73,
841 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63,
842 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1a,
843 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61,
844 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0x5e, 0x0a, 0x15, 0x54, 0x65,
845 0x78, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
846 0x75, 0x6c, 0x74, 0x12, 0x25, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69,
847 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x74,
848 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x69, 0x73,
849 0x5f, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
850 0x03, 0x52, 0x07, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x1a, 0x4a, 0x0a, 0x16, 0x41, 0x75,
851 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
852 0x73, 0x75, 0x6c, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x74, 0x72,
853 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42,
854 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x72, 0x61, 0x6e, 0x73,
855 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x95, 0x03, 0x0a, 0x20, 0x53, 0x74, 0x72, 0x65, 0x61,
856 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65,
857 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65,
858 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f,
859 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03,
860 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x06, 0x72, 0x65,
861 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f,
862 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74,
863 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
864 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61,
865 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75,
866 0x6c, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,
867 0x89, 0x01, 0x0a, 0x11, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74,
868 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x58, 0x2e, 0x67, 0x6f,
869 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61,
870 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c,
871 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72,
872 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73,
873 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e,
874 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x73, 0x70, 0x65, 0x65,
875 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x51, 0x0a, 0x0f, 0x53,
876 0x70, 0x65, 0x65, 0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21,
877 0x0a, 0x1d, 0x53, 0x50, 0x45, 0x45, 0x43, 0x48, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54,
878 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
879 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x49, 0x4e, 0x47,
880 0x4c, 0x45, 0x5f, 0x55, 0x54, 0x54, 0x45, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x32, 0xa5,
881 0x02, 0x0a, 0x18, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
882 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb3, 0x01, 0x0a, 0x18,
883 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61,
884 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x12, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
885 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61,
886 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
887 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73,
888 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
889 0x74, 0x1a, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
890 0x2e, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f,
891 0x6e, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61,
892 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x70, 0x65,
893 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30,
894 0x01, 0x1a, 0x53, 0xca, 0x41, 0x1f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73,
895 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
896 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f,
897 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
898 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c,
899 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x87, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
900 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x65, 0x64, 0x69,
901 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x61,
902 0x6c, 0x70, 0x68, 0x61, 0x31, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
903 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
904 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f,
905 0x75, 0x64, 0x2f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74,
906 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x6d, 0x65, 0x64,
907 0x69, 0x61, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01,
908 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
909 }
910
911 var (
912 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescOnce sync.Once
913 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData = file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc
914 )
915
916 func file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescGZIP() []byte {
917 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescOnce.Do(func() {
918 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData)
919 })
920 return file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDescData
921 }
922
923 var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
924 var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
925 var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes = []interface{}{
926 (StreamingTranslateSpeechResponse_SpeechEventType)(0),
927 (*TranslateSpeechConfig)(nil),
928 (*StreamingTranslateSpeechConfig)(nil),
929 (*StreamingTranslateSpeechRequest)(nil),
930 (*StreamingTranslateSpeechResult)(nil),
931 (*StreamingTranslateSpeechResponse)(nil),
932 (*StreamingTranslateSpeechResult_TextTranslationResult)(nil),
933 (*StreamingTranslateSpeechResult_AudioTranslationResult)(nil),
934 (*status.Status)(nil),
935 }
936 var file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs = []int32{
937 1,
938 2,
939 6,
940 7,
941 8,
942 4,
943 0,
944 3,
945 5,
946 8,
947 7,
948 7,
949 7,
950 0,
951 }
952
953 func init() { file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_init() }
954 func file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_init() {
955 if File_google_cloud_mediatranslation_v1alpha1_media_translation_proto != nil {
956 return
957 }
958 if !protoimpl.UnsafeEnabled {
959 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
960 switch v := v.(*TranslateSpeechConfig); i {
961 case 0:
962 return &v.state
963 case 1:
964 return &v.sizeCache
965 case 2:
966 return &v.unknownFields
967 default:
968 return nil
969 }
970 }
971 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
972 switch v := v.(*StreamingTranslateSpeechConfig); i {
973 case 0:
974 return &v.state
975 case 1:
976 return &v.sizeCache
977 case 2:
978 return &v.unknownFields
979 default:
980 return nil
981 }
982 }
983 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
984 switch v := v.(*StreamingTranslateSpeechRequest); i {
985 case 0:
986 return &v.state
987 case 1:
988 return &v.sizeCache
989 case 2:
990 return &v.unknownFields
991 default:
992 return nil
993 }
994 }
995 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
996 switch v := v.(*StreamingTranslateSpeechResult); i {
997 case 0:
998 return &v.state
999 case 1:
1000 return &v.sizeCache
1001 case 2:
1002 return &v.unknownFields
1003 default:
1004 return nil
1005 }
1006 }
1007 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1008 switch v := v.(*StreamingTranslateSpeechResponse); i {
1009 case 0:
1010 return &v.state
1011 case 1:
1012 return &v.sizeCache
1013 case 2:
1014 return &v.unknownFields
1015 default:
1016 return nil
1017 }
1018 }
1019 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1020 switch v := v.(*StreamingTranslateSpeechResult_TextTranslationResult); i {
1021 case 0:
1022 return &v.state
1023 case 1:
1024 return &v.sizeCache
1025 case 2:
1026 return &v.unknownFields
1027 default:
1028 return nil
1029 }
1030 }
1031 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1032 switch v := v.(*StreamingTranslateSpeechResult_AudioTranslationResult); i {
1033 case 0:
1034 return &v.state
1035 case 1:
1036 return &v.sizeCache
1037 case 2:
1038 return &v.unknownFields
1039 default:
1040 return nil
1041 }
1042 }
1043 }
1044 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes[2].OneofWrappers = []interface{}{
1045 (*StreamingTranslateSpeechRequest_StreamingConfig)(nil),
1046 (*StreamingTranslateSpeechRequest_AudioContent)(nil),
1047 }
1048 type x struct{}
1049 out := protoimpl.TypeBuilder{
1050 File: protoimpl.DescBuilder{
1051 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1052 RawDescriptor: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc,
1053 NumEnums: 1,
1054 NumMessages: 7,
1055 NumExtensions: 0,
1056 NumServices: 1,
1057 },
1058 GoTypes: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes,
1059 DependencyIndexes: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs,
1060 EnumInfos: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_enumTypes,
1061 MessageInfos: file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_msgTypes,
1062 }.Build()
1063 File_google_cloud_mediatranslation_v1alpha1_media_translation_proto = out.File
1064 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_rawDesc = nil
1065 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_goTypes = nil
1066 file_google_cloud_mediatranslation_v1alpha1_media_translation_proto_depIdxs = nil
1067 }
1068
1069
1070 var _ context.Context
1071 var _ grpc.ClientConnInterface
1072
1073
1074
1075 const _ = grpc.SupportPackageIsVersion6
1076
1077
1078
1079
1080 type SpeechTranslationServiceClient interface {
1081
1082
1083 StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error)
1084 }
1085
1086 type speechTranslationServiceClient struct {
1087 cc grpc.ClientConnInterface
1088 }
1089
1090 func NewSpeechTranslationServiceClient(cc grpc.ClientConnInterface) SpeechTranslationServiceClient {
1091 return &speechTranslationServiceClient{cc}
1092 }
1093
1094 func (c *speechTranslationServiceClient) StreamingTranslateSpeech(ctx context.Context, opts ...grpc.CallOption) (SpeechTranslationService_StreamingTranslateSpeechClient, error) {
1095 stream, err := c.cc.NewStream(ctx, &_SpeechTranslationService_serviceDesc.Streams[0], "/google.cloud.mediatranslation.v1alpha1.SpeechTranslationService/StreamingTranslateSpeech", opts...)
1096 if err != nil {
1097 return nil, err
1098 }
1099 x := &speechTranslationServiceStreamingTranslateSpeechClient{stream}
1100 return x, nil
1101 }
1102
1103 type SpeechTranslationService_StreamingTranslateSpeechClient interface {
1104 Send(*StreamingTranslateSpeechRequest) error
1105 Recv() (*StreamingTranslateSpeechResponse, error)
1106 grpc.ClientStream
1107 }
1108
1109 type speechTranslationServiceStreamingTranslateSpeechClient struct {
1110 grpc.ClientStream
1111 }
1112
1113 func (x *speechTranslationServiceStreamingTranslateSpeechClient) Send(m *StreamingTranslateSpeechRequest) error {
1114 return x.ClientStream.SendMsg(m)
1115 }
1116
1117 func (x *speechTranslationServiceStreamingTranslateSpeechClient) Recv() (*StreamingTranslateSpeechResponse, error) {
1118 m := new(StreamingTranslateSpeechResponse)
1119 if err := x.ClientStream.RecvMsg(m); err != nil {
1120 return nil, err
1121 }
1122 return m, nil
1123 }
1124
1125
1126 type SpeechTranslationServiceServer interface {
1127
1128
1129 StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error
1130 }
1131
1132
1133 type UnimplementedSpeechTranslationServiceServer struct {
1134 }
1135
1136 func (*UnimplementedSpeechTranslationServiceServer) StreamingTranslateSpeech(SpeechTranslationService_StreamingTranslateSpeechServer) error {
1137 return status1.Errorf(codes.Unimplemented, "method StreamingTranslateSpeech not implemented")
1138 }
1139
1140 func RegisterSpeechTranslationServiceServer(s *grpc.Server, srv SpeechTranslationServiceServer) {
1141 s.RegisterService(&_SpeechTranslationService_serviceDesc, srv)
1142 }
1143
1144 func _SpeechTranslationService_StreamingTranslateSpeech_Handler(srv interface{}, stream grpc.ServerStream) error {
1145 return srv.(SpeechTranslationServiceServer).StreamingTranslateSpeech(&speechTranslationServiceStreamingTranslateSpeechServer{stream})
1146 }
1147
1148 type SpeechTranslationService_StreamingTranslateSpeechServer interface {
1149 Send(*StreamingTranslateSpeechResponse) error
1150 Recv() (*StreamingTranslateSpeechRequest, error)
1151 grpc.ServerStream
1152 }
1153
1154 type speechTranslationServiceStreamingTranslateSpeechServer struct {
1155 grpc.ServerStream
1156 }
1157
1158 func (x *speechTranslationServiceStreamingTranslateSpeechServer) Send(m *StreamingTranslateSpeechResponse) error {
1159 return x.ServerStream.SendMsg(m)
1160 }
1161
1162 func (x *speechTranslationServiceStreamingTranslateSpeechServer) Recv() (*StreamingTranslateSpeechRequest, error) {
1163 m := new(StreamingTranslateSpeechRequest)
1164 if err := x.ServerStream.RecvMsg(m); err != nil {
1165 return nil, err
1166 }
1167 return m, nil
1168 }
1169
1170 var _SpeechTranslationService_serviceDesc = grpc.ServiceDesc{
1171 ServiceName: "google.cloud.mediatranslation.v1alpha1.SpeechTranslationService",
1172 HandlerType: (*SpeechTranslationServiceServer)(nil),
1173 Methods: []grpc.MethodDesc{},
1174 Streams: []grpc.StreamDesc{
1175 {
1176 StreamName: "StreamingTranslateSpeech",
1177 Handler: _SpeechTranslationService_StreamingTranslateSpeech_Handler,
1178 ServerStreams: true,
1179 ClientStreams: true,
1180 },
1181 },
1182 Metadata: "google/cloud/mediatranslation/v1alpha1/media_translation.proto",
1183 }
1184
View as plain text