Class StreamingTranslateSpeechConfig (0.12.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.12.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  StreamingTranslateSpeechConfig   extends   GeneratedMessageV3   implements   StreamingTranslateSpeechConfigOrBuilder  
   Config used for streaming translation.
 Protobuf type google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig
Static Fields
   
  
  
    
public   static   final   int   AUDIO_CONFIG_FIELD_NUMBER  
  Field Value 
  
  
  
    
public   static   final   int   SINGLE_UTTERANCE_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  
    
public   static   StreamingTranslateSpeechConfig   getDefaultInstance ()  
  Returns 
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  
    
public   static   StreamingTranslateSpeechConfig . Builder   newBuilder ()  
  Returns 
  
  
    
public   static   StreamingTranslateSpeechConfig . Builder   newBuilder ( StreamingTranslateSpeechConfig   prototype )  
  Parameter 
  
  Returns 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseDelimitedFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( byte []   data )  
  Parameter 
  
    
      
        Name Description  
      
        data byte [] 
     
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( ByteString   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( CodedInputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( ByteBuffer   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   StreamingTranslateSpeechConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Parser<StreamingTranslateSpeechConfig>   parser ()  
  Returns 
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   TranslateSpeechConfig   getAudioConfig ()  
   Required. The common config for all the following audio contents.
 
 .google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig audio_config = 1 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
  
    
public   TranslateSpeechConfigOrBuilder   getAudioConfigOrBuilder ()  
   Required. The common config for all the following audio contents.
 
 .google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig audio_config = 1 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
  
    
public   StreamingTranslateSpeechConfig   getDefaultInstanceForType ()  
  Returns 
  
  
    
public   Parser<StreamingTranslateSpeechConfig>   getParserForType ()  
  Returns 
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  
    
public   boolean   getSingleUtterance ()  
   Optional. If false or omitted, the system performs
 continuous translation (continuing to wait for and process audio even if
 the user pauses speaking) until the client closes the input stream (gRPC
 API) or until the maximum time limit has been reached. May return multiple
 StreamingTranslateSpeechResults with the is_final flag set to true.
 If true, the speech translator will detect a single spoken utterance.
 When it detects that the user has paused or stopped speaking, it will
 return an END_OF_SINGLE_UTTERANCE event and cease translation.
 When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should
 stop sending the requests. However, clients should keep receiving remaining
 responses until the stream is terminated. To construct the complete
 sentence in a streaming way, one should override (if 'is_final' of previous
 response is false), or append (if 'is_final' of previous response is true).
 bool single_utterance = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns 
  
    
      
        Type Description  
      
        boolean The singleUtterance.
 
     
  
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  
    
public   boolean   hasAudioConfig ()  
   Required. The common config for all the following audio contents.
 
 .google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig audio_config = 1 [(.google.api.field_behavior) = REQUIRED];
 
Returns 
  
    
      
        Type Description  
      
        boolean Whether the audioConfig field is set.
 
     
  
  Returns 
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  
    
public   StreamingTranslateSpeechConfig . Builder   newBuilderForType ()  
  Returns 
  
  
    
protected   StreamingTranslateSpeechConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   StreamingTranslateSpeechConfig . Builder   toBuilder ()  
  Returns 
  
  
    
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-29 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-29 UTC."],[],[]]