public static interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getDetectedSourceLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getDetectedSourceLanguageCodeBytes()
Output only.
|
boolean |
getIsFinal()
Output only.
|
String |
getTranslation()
Output only.
|
com.google.protobuf.ByteString |
getTranslationBytes()
Output only.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getTranslation()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];com.google.protobuf.ByteString getTranslationBytes()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];boolean getIsFinal()
Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];String getDetectedSourceLanguageCode()
Output only. The source language code (BCP-47) detected in the audio. Speech translation result will translate in the most likely language detected including the alternative source languages and main source_language_code.
string detected_source_language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.ByteString getDetectedSourceLanguageCodeBytes()
Output only. The source language code (BCP-47) detected in the audio. Speech translation result will translate in the most likely language detected including the alternative source languages and main source_language_code.
string detected_source_language_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Copyright © 2021 Google LLC. All rights reserved.