Class BatchRecognizeResponse (4.54.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 4.54.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   final   class  BatchRecognizeResponse   extends   GeneratedMessageV3   implements   BatchRecognizeResponseOrBuilder  
   
   Response message for
 BatchRecognize  that is
 packaged into a longrunning Operation .
 Protobuf type google.cloud.speech.v2.BatchRecognizeResponse
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  RESULTS_FIELD_NUMBER 
  
    
public   static   final   int   RESULTS_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  TOTAL_BILLED_DURATION_FIELD_NUMBER 
  
    
public   static   final   int   TOTAL_BILLED_DURATION_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   BatchRecognizeResponse   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   BatchRecognizeResponse . Builder   newBuilder ()  
   
  
   
  newBuilder(BatchRecognizeResponse prototype) 
  
    
public   static   BatchRecognizeResponse . Builder   newBuilder ( BatchRecognizeResponse   prototype )  
   
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   BatchRecognizeResponse   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   BatchRecognizeResponse   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<BatchRecognizeResponse>   parser ()  
   
  
  Methods
   
   
  containsResults(String key) 
  
    
public   boolean   containsResults ( String   key )  
   
   Map from filename to the final result for that file.
 map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        key 
        String  
       
     
  
  
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   BatchRecognizeResponse   getDefaultInstanceForType ()  
   
  
   
  getParserForType() 
  
    
public   Parser<BatchRecognizeResponse>   getParserForType ()  
   
  
  Overrides 
  
   
  getResults() (deprecated) 
  
    
public   Map<String , BatchRecognizeFileResult >  getResults ()  
   
  
  
   
  getResultsCount() 
  
    
public   int   getResultsCount ()  
   
   Map from filename to the final result for that file.
 map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
   
  getResultsMap() 
  
    
public   Map<String , BatchRecognizeFileResult >  getResultsMap ()  
   
   Map from filename to the final result for that file.
 map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
 
  
   
  getResultsOrDefault(String key, BatchRecognizeFileResult defaultValue) 
  
    
public   BatchRecognizeFileResult   getResultsOrDefault ( String   key ,   BatchRecognizeFileResult   defaultValue )  
   
   Map from filename to the final result for that file.
 map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
 
  
  
   
  getResultsOrThrow(String key) 
  
    
public   BatchRecognizeFileResult   getResultsOrThrow ( String   key )  
   
   Map from filename to the final result for that file.
 map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        key 
        String  
       
     
  
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getTotalBilledDuration() 
  
    
public   Duration   getTotalBilledDuration ()  
   
   When available, billed audio seconds for the corresponding request.
 .google.protobuf.Duration total_billed_duration = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Duration  
        The totalBilledDuration.
 
       
     
  
   
  getTotalBilledDurationOrBuilder() 
  
    
public   DurationOrBuilder   getTotalBilledDurationOrBuilder ()  
   
   When available, billed audio seconds for the corresponding request.
 .google.protobuf.Duration total_billed_duration = 2;
 
  
   
  hasTotalBilledDuration() 
  
    
public   boolean   hasTotalBilledDuration ()  
   
   When available, billed audio seconds for the corresponding request.
 .google.protobuf.Duration total_billed_duration = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        boolean  
        Whether the totalBilledDuration field is set.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  internalGetMapFieldReflection(int number) 
  
    
protected   MapFieldReflectionAccessor   internalGetMapFieldReflection ( int   number )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        number 
        int  
       
     
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        com.google.protobuf.MapFieldReflectionAccessor  
         
       
     
  
  Overrides 
  com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   BatchRecognizeResponse . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   BatchRecognizeResponse . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   BatchRecognizeResponse . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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."],[],[]]