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