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)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(SpeechStubSettings settings)
public static final GrpcSpeechStub create(SpeechStubSettings settings)
Parameter
Returns
Exceptions
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.
Parameters
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.
Parameters
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
batchRecognizeCallable()
public UnaryCallable<BatchRecognizeRequest,Operation> batchRecognizeCallable()
Returns
Overrides
batchRecognizeOperationCallable()
public OperationCallable<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationCallable()
Returns
Overrides
close()
public final void close()
Overrides
createCustomClassCallable()
public UnaryCallable<CreateCustomClassRequest,Operation> createCustomClassCallable()
Returns
Overrides
createCustomClassOperationCallable()
public OperationCallable<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationCallable()
Returns
Overrides
createPhraseSetCallable()
public UnaryCallable<CreatePhraseSetRequest,Operation> createPhraseSetCallable()
Returns
Overrides
createPhraseSetOperationCallable()
public OperationCallable<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationCallable()
Returns
Overrides
createRecognizerCallable()
public UnaryCallable<CreateRecognizerRequest,Operation> createRecognizerCallable()
Returns
Overrides
createRecognizerOperationCallable()
public OperationCallable<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationCallable()
Returns
Overrides
deleteCustomClassCallable()
public UnaryCallable<DeleteCustomClassRequest,Operation> deleteCustomClassCallable()
Returns
Overrides
deleteCustomClassOperationCallable()
public OperationCallable<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationCallable()
Returns
Overrides
deletePhraseSetCallable()
public UnaryCallable<DeletePhraseSetRequest,Operation> deletePhraseSetCallable()
Returns
Overrides
deletePhraseSetOperationCallable()
public OperationCallable<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationCallable()
Returns
Overrides
deleteRecognizerCallable()
public UnaryCallable<DeleteRecognizerRequest,Operation> deleteRecognizerCallable()
Returns
Overrides
deleteRecognizerOperationCallable()
public OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationCallable()
Returns
Overrides
getConfigCallable()
public UnaryCallable<GetConfigRequest,Config> getConfigCallable()
Returns
Overrides
getCustomClassCallable()
public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Returns
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
Overrides
getPhraseSetCallable()
public UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
Returns
Overrides
getRecognizerCallable()
public UnaryCallable<GetRecognizerRequest,Recognizer> getRecognizerCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listCustomClassesCallable()
public UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
Returns
Overrides
listCustomClassesPagedCallable()
public UnaryCallable<ListCustomClassesRequest,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Returns
Overrides
listPhraseSetsCallable()
public UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse> listPhraseSetsCallable()
Returns
Overrides
listPhraseSetsPagedCallable()
public UnaryCallable<ListPhraseSetsRequest,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsPagedCallable()
Returns
Overrides
listRecognizersCallable()
public UnaryCallable<ListRecognizersRequest,ListRecognizersResponse> listRecognizersCallable()
Returns
Overrides
listRecognizersPagedCallable()
public UnaryCallable<ListRecognizersRequest,SpeechClient.ListRecognizersPagedResponse> listRecognizersPagedCallable()
Returns
Overrides
recognizeCallable()
public UnaryCallable<RecognizeRequest,RecognizeResponse> recognizeCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
streamingRecognizeCallable()
public BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeCallable()
Returns
Overrides
undeleteCustomClassCallable()
public UnaryCallable<UndeleteCustomClassRequest,Operation> undeleteCustomClassCallable()
Returns
Overrides
undeleteCustomClassOperationCallable()
public OperationCallable<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationCallable()
Returns
Overrides
undeletePhraseSetCallable()
public UnaryCallable<UndeletePhraseSetRequest,Operation> undeletePhraseSetCallable()
Returns
Overrides
undeletePhraseSetOperationCallable()
public OperationCallable<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationCallable()
Returns
Overrides
undeleteRecognizerCallable()
public UnaryCallable<UndeleteRecognizerRequest,Operation> undeleteRecognizerCallable()
Returns
Overrides
undeleteRecognizerOperationCallable()
public OperationCallable<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationCallable()
Returns
Overrides
updateConfigCallable()
public UnaryCallable<UpdateConfigRequest,Config> updateConfigCallable()
Returns
Overrides
updateCustomClassCallable()
public UnaryCallable<UpdateCustomClassRequest,Operation> updateCustomClassCallable()
Returns
Overrides
updateCustomClassOperationCallable()
public OperationCallable<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationCallable()
Returns
Overrides
updatePhraseSetCallable()
public UnaryCallable<UpdatePhraseSetRequest,Operation> updatePhraseSetCallable()
Returns
Overrides
updatePhraseSetOperationCallable()
public OperationCallable<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationCallable()
Returns
Overrides
updateRecognizerCallable()
public UnaryCallable<UpdateRecognizerRequest,Operation> updateRecognizerCallable()
Returns
Overrides
updateRecognizerOperationCallable()
public OperationCallable<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationCallable()
Returns
Overrides