Class BatchRecognizeResponse (4.12.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.12.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
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  
      
        databyte [] 
     
  
  
  
  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  
      
        keyString  
     
  
  
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   BatchRecognizeResponse   getDefaultInstanceForType ()  
  
  getParserForType() 
  
    
public   Parser<BatchRecognizeResponse>   getParserForType ()  
  
  Overrides 
  
  getResults() 
  
    
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  
      
        keyString  
     
  
  
  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;
getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  
  Overrides 
  
  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 
  
  internalGetMapField(int number) 
  
    
protected   MapField   internalGetMapField ( int   number )  
  
    
      
        Parameter  
      
        Name Description  
      
        numberint  
     
  
  
  Overrides 
  
  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-11 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-11 UTC."],[],[]]