public static final class SpeechGrpc.SpeechFutureStub extends AbstractFutureStub<SpeechGrpc.SpeechFutureStub>
Enables speech transcription and resource management.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractFutureStub >
SpeechGrpc.SpeechFutureStub
Inherited Members
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
batchRecognize(BatchRecognizeRequest request)
public ListenableFuture<Operation> batchRecognize(BatchRecognizeRequest request)
Performs batch asynchronous speech recognition: send a request with N
audio files and receive a long running operation that can be polled to see
when the transcriptions are finished.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
build(Channel channel, CallOptions callOptions)
protected SpeechGrpc.SpeechFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createCustomClass(CreateCustomClassRequest request)
public ListenableFuture<Operation> createCustomClass(CreateCustomClassRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
createPhraseSet(CreatePhraseSetRequest request)
public ListenableFuture<Operation> createPhraseSet(CreatePhraseSetRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
createRecognizer(CreateRecognizerRequest request)
public ListenableFuture<Operation> createRecognizer(CreateRecognizerRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
deleteCustomClass(DeleteCustomClassRequest request)
public ListenableFuture<Operation> deleteCustomClass(DeleteCustomClassRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
deletePhraseSet(DeletePhraseSetRequest request)
public ListenableFuture<Operation> deletePhraseSet(DeletePhraseSetRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
deleteRecognizer(DeleteRecognizerRequest request)
public ListenableFuture<Operation> deleteRecognizer(DeleteRecognizerRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
getConfig(GetConfigRequest request)
public ListenableFuture<Config> getConfig(GetConfigRequest request)
Returns the requested Config.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Config> | |
getCustomClass(GetCustomClassRequest request)
public ListenableFuture<CustomClass> getCustomClass(GetCustomClassRequest request)
Returns the requested
CustomClass.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<CustomClass> | |
getPhraseSet(GetPhraseSetRequest request)
public ListenableFuture<PhraseSet> getPhraseSet(GetPhraseSetRequest request)
Returns the requested
PhraseSet.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<PhraseSet> | |
getRecognizer(GetRecognizerRequest request)
public ListenableFuture<Recognizer> getRecognizer(GetRecognizerRequest request)
Returns the requested
Recognizer. Fails with
NOT_FOUND if the requested recognizer doesn't
exist.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Recognizer> | |
listCustomClasses(ListCustomClassesRequest request)
public ListenableFuture<ListCustomClassesResponse> listCustomClasses(ListCustomClassesRequest request)
Parameter
Returns
listPhraseSets(ListPhraseSetsRequest request)
public ListenableFuture<ListPhraseSetsResponse> listPhraseSets(ListPhraseSetsRequest request)
Parameter
Returns
listRecognizers(ListRecognizersRequest request)
public ListenableFuture<ListRecognizersResponse> listRecognizers(ListRecognizersRequest request)
Parameter
Returns
recognize(RecognizeRequest request)
public ListenableFuture<RecognizeResponse> recognize(RecognizeRequest request)
Performs synchronous Speech recognition: receive results after all audio
has been sent and processed.
Parameter
Returns
undeleteCustomClass(UndeleteCustomClassRequest request)
public ListenableFuture<Operation> undeleteCustomClass(UndeleteCustomClassRequest request)
Undeletes the CustomClass.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
undeletePhraseSet(UndeletePhraseSetRequest request)
public ListenableFuture<Operation> undeletePhraseSet(UndeletePhraseSetRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
undeleteRecognizer(UndeleteRecognizerRequest request)
public ListenableFuture<Operation> undeleteRecognizer(UndeleteRecognizerRequest request)
Undeletes the Recognizer.
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
updateConfig(UpdateConfigRequest request)
public ListenableFuture<Config> updateConfig(UpdateConfigRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Config> | |
updateCustomClass(UpdateCustomClassRequest request)
public ListenableFuture<Operation> updateCustomClass(UpdateCustomClassRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
updatePhraseSet(UpdatePhraseSetRequest request)
public ListenableFuture<Operation> updatePhraseSet(UpdatePhraseSetRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |
updateRecognizer(UpdateRecognizerRequest request)
public ListenableFuture<Operation> updateRecognizer(UpdateRecognizerRequest request)
Parameter
Returns
Type | Description |
com.google.common.util.concurrent.ListenableFuture<Operation> | |