| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 34 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 35 |
|
| 36 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 37 |
) |
| 38 |
|
| 39 |
|
| 40 |
type StreamingTranslateSpeechResponse_SpeechEventType int32 |
| 41 |
|
| 42 |
const ( |
| 43 |
|
| 44 |
StreamingTranslateSpeechResponse_SPEECH_EVENT_TYPE_UNSPECIFIED StreamingTranslateSpeechResponse_SpeechEventType = 0 |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
StreamingTranslateSpeechResponse_END_OF_SINGLE_UTTERANCE StreamingTranslateSpeechResponse_SpeechEventType = 1 |
| 56 |
) |
| 57 |
|
| 58 |
|
| 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 |
|
| 93 |
func (StreamingTranslateSpeechResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) { |
| 94 |
return file_google_cloud_mediatranslation_v1beta1_media_translation_proto_rawDescGZIP(), []int{4, 0} |
| 95 |
} |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
type TranslateSpeechConfig struct { |
| 100 |
state protoimpl.MessageState |
| 101 |
sizeCache protoimpl.SizeCache |
| 102 |
unknownFields protoimpl.UnknownFields |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 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 |
AudioEncoding string `protobuf:"bytes,1,opt,name=audio_encoding,json=audioEncoding,proto3" json:"audio_encoding,omitempty"` |
| 141 |
|
| 142 |
SourceLanguageCode string `protobuf:"bytes,2,opt,name=source_language_code,json=sourceLanguageCode,proto3" json:"source_language_code,omitempty"` |
| 143 |
|
| 144 |
TargetLanguageCode string `protobuf:"bytes,3,opt,name=target_language_code,json=targetLanguageCode,proto3" json:"target_language_code,omitempty"` |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
SampleRateHertz int32 `protobuf:"varint,4,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"` |
| 150 |
|
| 151 |
|
| 152 |
|
| 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 |
|
| 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 |
|
| 222 |
type StreamingTranslateSpeechConfig struct { |
| 223 |
state protoimpl.MessageState |
| 224 |
sizeCache protoimpl.SizeCache |
| 225 |
unknownFields protoimpl.UnknownFields |
| 226 |
|
| 227 |
|
| 228 |
AudioConfig *TranslateSpeechConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3" json:"audio_config,omitempty"` |
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 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 |
|
| 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 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
type StreamingTranslateSpeechRequest struct { |
| 296 |
state protoimpl.MessageState |
| 297 |
sizeCache protoimpl.SizeCache |
| 298 |
unknownFields protoimpl.UnknownFields |
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 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 |
|
| 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 |
|
| 366 |
|
| 367 |
|
| 368 |
StreamingConfig *StreamingTranslateSpeechConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"` |
| 369 |
} |
| 370 |
|
| 371 |
type StreamingTranslateSpeechRequest_AudioContent struct { |
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 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 |
|
| 390 |
|
| 391 |
type StreamingTranslateSpeechResult struct { |
| 392 |
state protoimpl.MessageState |
| 393 |
sizeCache protoimpl.SizeCache |
| 394 |
unknownFields protoimpl.UnknownFields |
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 461 |
|
| 462 |
type StreamingTranslateSpeechResponse struct { |
| 463 |
state protoimpl.MessageState |
| 464 |
sizeCache protoimpl.SizeCache |
| 465 |
unknownFields protoimpl.UnknownFields |
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` |
| 470 |
|
| 471 |
|
| 472 |
Result *StreamingTranslateSpeechResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` |
| 473 |
|
| 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 |
|
| 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 |
|
| 529 |
type StreamingTranslateSpeechResult_TextTranslationResult struct { |
| 530 |
state protoimpl.MessageState |
| 531 |
sizeCache protoimpl.SizeCache |
| 532 |
unknownFields protoimpl.UnknownFields |
| 533 |
|
| 534 |
|
| 535 |
Translation string `protobuf:"bytes,1,opt,name=translation,proto3" json:"translation,omitempty"` |
| 536 |
|
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
|
| 541 |
|
| 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 |
|
| 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), |
| 743 |
(*TranslateSpeechConfig)(nil), |
| 744 |
(*StreamingTranslateSpeechConfig)(nil), |
| 745 |
(*StreamingTranslateSpeechRequest)(nil), |
| 746 |
(*StreamingTranslateSpeechResult)(nil), |
| 747 |
(*StreamingTranslateSpeechResponse)(nil), |
| 748 |
(*StreamingTranslateSpeechResult_TextTranslationResult)(nil), |
| 749 |
(*status.Status)(nil), |
| 750 |
} |
| 751 |
var file_google_cloud_mediatranslation_v1beta1_media_translation_proto_depIdxs = []int32{ |
| 752 |
1, |
| 753 |
2, |
| 754 |
6, |
| 755 |
7, |
| 756 |
4, |
| 757 |
0, |
| 758 |
3, |
| 759 |
5, |
| 760 |
7, |
| 761 |
6, |
| 762 |
6, |
| 763 |
6, |
| 764 |
0, |
| 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 |
} |