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

    Modifier and Type
    Method
    Description
    boolean
    Output only.
    Output only.
    com.google.protobuf.ByteString
    Output only.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.