Class GrpcSpeechStub (4.29.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.29.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   class  GrpcSpeechStub   extends   SpeechStub  
  gRPC stub implementation for the Speech service API.
 
This class is for advanced usage and reflects the underlying API directly.
Static Methods
   
  create(ClientContext clientContext) 
  
    
public   static   final   GrpcSpeechStub   create ( ClientContext   clientContext )  
  
  
  
  create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) 
  
    
public   static   final   GrpcSpeechStub   create ( ClientContext   clientContext ,   GrpcStubCallableFactory   callableFactory )  
  
  
  
  create(SpeechStubSettings settings) 
  
    
public   static   final   GrpcSpeechStub   create ( SpeechStubSettings   settings )  
  
  
  
  Constructors
   
  GrpcSpeechStub(SpeechStubSettings settings, ClientContext clientContext) 
  
    
protected   GrpcSpeechStub ( SpeechStubSettings   settings ,   ClientContext   clientContext )  
  Constructs an instance of GrpcSpeechStub, using the given settings. This is protected so that
 it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
GrpcSpeechStub(SpeechStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) 
  
    
protected   GrpcSpeechStub ( SpeechStubSettings   settings ,   ClientContext   clientContext ,   GrpcStubCallableFactory   callableFactory )  
  Constructs an instance of GrpcSpeechStub, using the given settings. This is protected so that
 it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Methods
   
  awaitTermination(long duration, TimeUnit unit) 
  
    
public   boolean   awaitTermination ( long   duration ,   TimeUnit   unit )  
  
  
  
  batchRecognizeCallable() 
  
    
public   UnaryCallable<BatchRecognizeRequest , Operation >  batchRecognizeCallable ()  
  
  Overrides 
  
  batchRecognizeOperationCallable() 
  
    
public   OperationCallable<BatchRecognizeRequest , BatchRecognizeResponse , OperationMetadata >  batchRecognizeOperationCallable ()  
  
  Overrides 
  
  close() 
  
    
public   final   void   close ()  
  Overrides 
  
  createCustomClassCallable() 
  
    
public   UnaryCallable<CreateCustomClassRequest , Operation >  createCustomClassCallable ()  
  
  Overrides 
  
  createCustomClassOperationCallable() 
  
    
public   OperationCallable<CreateCustomClassRequest , CustomClass , OperationMetadata >  createCustomClassOperationCallable ()  
  
  Overrides 
  
  createPhraseSetCallable() 
  
    
public   UnaryCallable<CreatePhraseSetRequest , Operation >  createPhraseSetCallable ()  
  
  Overrides 
  
  createPhraseSetOperationCallable() 
  
    
public   OperationCallable<CreatePhraseSetRequest , PhraseSet , OperationMetadata >  createPhraseSetOperationCallable ()  
  
  Overrides 
  
  createRecognizerCallable() 
  
    
public   UnaryCallable<CreateRecognizerRequest , Operation >  createRecognizerCallable ()  
  
  Overrides 
  
  createRecognizerOperationCallable() 
  
    
public   OperationCallable<CreateRecognizerRequest , Recognizer , OperationMetadata >  createRecognizerOperationCallable ()  
  
  Overrides 
  
  deleteCustomClassCallable() 
  
    
public   UnaryCallable<DeleteCustomClassRequest , Operation >  deleteCustomClassCallable ()  
  
  Overrides 
  
  deleteCustomClassOperationCallable() 
  
    
public   OperationCallable<DeleteCustomClassRequest , CustomClass , OperationMetadata >  deleteCustomClassOperationCallable ()  
  
  Overrides 
  
  deletePhraseSetCallable() 
  
    
public   UnaryCallable<DeletePhraseSetRequest , Operation >  deletePhraseSetCallable ()  
  
  Overrides 
  
  deletePhraseSetOperationCallable() 
  
    
public   OperationCallable<DeletePhraseSetRequest , PhraseSet , OperationMetadata >  deletePhraseSetOperationCallable ()  
  
  Overrides 
  
  deleteRecognizerCallable() 
  
    
public   UnaryCallable<DeleteRecognizerRequest , Operation >  deleteRecognizerCallable ()  
  
  Overrides 
  
  deleteRecognizerOperationCallable() 
  
    
public   OperationCallable<DeleteRecognizerRequest , Recognizer , OperationMetadata >  deleteRecognizerOperationCallable ()  
  
  Overrides 
  
  getConfigCallable() 
  
    
public   UnaryCallable<GetConfigRequest , Config >  getConfigCallable ()  
  
  Overrides 
  
  getCustomClassCallable() 
  
    
public   UnaryCallable<GetCustomClassRequest , CustomClass >  getCustomClassCallable ()  
  
  Overrides 
  
  getLocationCallable() 
  
    
public   UnaryCallable<GetLocationRequest , Location >  getLocationCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location > 
     
  
  Overrides 
  
  getOperationsStub() 
  
    
public   GrpcOperationsStub   getOperationsStub ()  
  
  Overrides 
  
  getPhraseSetCallable() 
  
    
public   UnaryCallable<GetPhraseSetRequest , PhraseSet >  getPhraseSetCallable ()  
  
  Overrides 
  
  getRecognizerCallable() 
  
    
public   UnaryCallable<GetRecognizerRequest , Recognizer >  getRecognizerCallable ()  
  
  Overrides 
  
  isShutdown() 
  
    
public   boolean   isShutdown ()  
  
  isTerminated() 
  
    
public   boolean   isTerminated ()  
  
  listCustomClassesCallable() 
  
    
public   UnaryCallable<ListCustomClassesRequest , ListCustomClassesResponse >  listCustomClassesCallable ()  
  
  Overrides 
  
  listCustomClassesPagedCallable() 
  
    
public   UnaryCallable<ListCustomClassesRequest , SpeechClient . ListCustomClassesPagedResponse >  listCustomClassesPagedCallable ()  
  
  Overrides 
  
  listLocationsCallable() 
  
    
public   UnaryCallable<ListLocationsRequest , ListLocationsResponse >  listLocationsCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.cloud.location.ListLocationsRequest ,com.google.cloud.location.ListLocationsResponse > 
     
  
  Overrides 
  
  listLocationsPagedCallable() 
  
    
public   UnaryCallable<ListLocationsRequest , SpeechClient . ListLocationsPagedResponse >  listLocationsPagedCallable ()  
  
  Overrides 
  
  listPhraseSetsCallable() 
  
    
public   UnaryCallable<ListPhraseSetsRequest , ListPhraseSetsResponse >  listPhraseSetsCallable ()  
  
  Overrides 
  
  listPhraseSetsPagedCallable() 
  
    
public   UnaryCallable<ListPhraseSetsRequest , SpeechClient . ListPhraseSetsPagedResponse >  listPhraseSetsPagedCallable ()  
  
  Overrides 
  
  listRecognizersCallable() 
  
    
public   UnaryCallable<ListRecognizersRequest , ListRecognizersResponse >  listRecognizersCallable ()  
  
  Overrides 
  
  listRecognizersPagedCallable() 
  
    
public   UnaryCallable<ListRecognizersRequest , SpeechClient . ListRecognizersPagedResponse >  listRecognizersPagedCallable ()  
  
  Overrides 
  
  recognizeCallable() 
  
    
public   UnaryCallable<RecognizeRequest , RecognizeResponse >  recognizeCallable ()  
  
  Overrides 
  
  shutdown() 
  
  shutdownNow() 
  
    
public   void   shutdownNow ()  
  streamingRecognizeCallable() 
  
    
public   BidiStreamingCallable<StreamingRecognizeRequest , StreamingRecognizeResponse >  streamingRecognizeCallable ()  
  
  Overrides 
  
  undeleteCustomClassCallable() 
  
    
public   UnaryCallable<UndeleteCustomClassRequest , Operation >  undeleteCustomClassCallable ()  
  
  Overrides 
  
  undeleteCustomClassOperationCallable() 
  
    
public   OperationCallable<UndeleteCustomClassRequest , CustomClass , OperationMetadata >  undeleteCustomClassOperationCallable ()  
  
  Overrides 
  
  undeletePhraseSetCallable() 
  
    
public   UnaryCallable<UndeletePhraseSetRequest , Operation >  undeletePhraseSetCallable ()  
  
  Overrides 
  
  undeletePhraseSetOperationCallable() 
  
    
public   OperationCallable<UndeletePhraseSetRequest , PhraseSet , OperationMetadata >  undeletePhraseSetOperationCallable ()  
  
  Overrides 
  
  undeleteRecognizerCallable() 
  
    
public   UnaryCallable<UndeleteRecognizerRequest , Operation >  undeleteRecognizerCallable ()  
  
  Overrides 
  
  undeleteRecognizerOperationCallable() 
  
    
public   OperationCallable<UndeleteRecognizerRequest , Recognizer , OperationMetadata >  undeleteRecognizerOperationCallable ()  
  
  Overrides 
  
  updateConfigCallable() 
  
    
public   UnaryCallable<UpdateConfigRequest , Config >  updateConfigCallable ()  
  
  Overrides 
  
  updateCustomClassCallable() 
  
    
public   UnaryCallable<UpdateCustomClassRequest , Operation >  updateCustomClassCallable ()  
  
  Overrides 
  
  updateCustomClassOperationCallable() 
  
    
public   OperationCallable<UpdateCustomClassRequest , CustomClass , OperationMetadata >  updateCustomClassOperationCallable ()  
  
  Overrides 
  
  updatePhraseSetCallable() 
  
    
public   UnaryCallable<UpdatePhraseSetRequest , Operation >  updatePhraseSetCallable ()  
  
  Overrides 
  
  updatePhraseSetOperationCallable() 
  
    
public   OperationCallable<UpdatePhraseSetRequest , PhraseSet , OperationMetadata >  updatePhraseSetOperationCallable ()  
  
  Overrides 
  
  updateRecognizerCallable() 
  
    
public   UnaryCallable<UpdateRecognizerRequest , Operation >  updateRecognizerCallable ()  
  
  Overrides 
  
  updateRecognizerOperationCallable() 
  
    
public   OperationCallable<UpdateRecognizerRequest , Recognizer , OperationMetadata >  updateRecognizerOperationCallable ()  
  
  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-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."],[],[]]