Class StreamingTranslateSpeechResult.TextTranslationResult (0.14.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.14.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  StreamingTranslateSpeechResult . TextTranslationResult   extends   GeneratedMessageV3   implements   StreamingTranslateSpeechResult . TextTranslationResultOrBuilder  
   
   Text translation result.
 Protobuf type 
 google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult
 
  
  
  
  Static Fields
   
  IS_FINAL_FIELD_NUMBER 
  
    
public   static   final   int   IS_FINAL_FIELD_NUMBER  
   
  Field Value 
  
  TRANSLATION_FIELD_NUMBER 
  
    
public   static   final   int   TRANSLATION_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(StreamingTranslateSpeechResult.TextTranslationResult prototype) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult . Builder   newBuilder ( StreamingTranslateSpeechResult . TextTranslationResult   prototype )  
   
  Parameter 
  
  Returns 
  
   
  parseDelimitedFrom(InputStream input) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   StreamingTranslateSpeechResult . TextTranslationResult   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<StreamingTranslateSpeechResult . TextTranslationResult >  parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   StreamingTranslateSpeechResult . TextTranslationResult   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getIsFinal() 
  
    
public   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 
  
    
      
        Type  
        Description  
       
      
        boolean  
        The isFinal.
 
       
     
  
   
  getParserForType() 
  
    
public   Parser<StreamingTranslateSpeechResult . TextTranslationResult >  getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getTranslation() 
  
    
public   String   getTranslation ()  
   
   Output only. The translated sentence.
 string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The translation.
 
       
     
  
   
  getTranslationBytes() 
  
    
public   ByteString   getTranslationBytes ()  
   
   Output only. The translated sentence.
 string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for translation.
 
       
     
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   StreamingTranslateSpeechResult . TextTranslationResult . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   StreamingTranslateSpeechResult . TextTranslationResult . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   StreamingTranslateSpeechResult . TextTranslationResult . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]