Debian Codegraph @

mediatranslation/apiv1beta1/mediatranslationpb/media_translation.pb.go

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