Interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilder (0.26.0)

public static interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIsFinal()

public abstract 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
TypeDescription
boolean

The isFinal.

getTranslation()

public abstract String getTranslation()

Output only. The translated sentence.

string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The translation.

getTranslationBytes()

public abstract ByteString getTranslationBytes()

Output only. The translated sentence.

string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for translation.