Interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingTranslateSpeechResult.TextTranslationResult
,StreamingTranslateSpeechResult.TextTranslationResult.Builder
- Enclosing class:
- StreamingTranslateSpeechResult
public static interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getIsFinal()
Output only.String
getTranslation()
Output only.com.google.protobuf.ByteString
getTranslationBytes()
Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTranslation
String getTranslation()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The translation.
-
getTranslationBytes
com.google.protobuf.ByteString getTranslationBytes()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The bytes for translation.
-
getIsFinal
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];
- Returns:
- The isFinal.
-
-