Class GrpcSpeechStub (4.29.0)

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.

Inheritance

java.lang.Object > SpeechStub > GrpcSpeechStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSpeechStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSpeechStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSpeechStub
Exceptions
TypeDescription
IOException

create(SpeechStubSettings settings)

public static final GrpcSpeechStub create(SpeechStubSettings settings)
Parameter
NameDescription
settingsSpeechStubSettings
Returns
TypeDescription
GrpcSpeechStub
Exceptions
TypeDescription
IOException

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
NameDescription
settingsSpeechStubSettings
clientContextClientContext

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
NameDescription
settingsSpeechStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchRecognizeCallable()

public UnaryCallable<BatchRecognizeRequest,Operation> batchRecognizeCallable()
Returns
TypeDescription
UnaryCallable<BatchRecognizeRequest,Operation>
Overrides

batchRecognizeOperationCallable()

public OperationCallable<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationCallable()
Returns
TypeDescription
OperationCallable<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata>
Overrides

close()

public final void close()
Overrides

createCustomClassCallable()

public UnaryCallable<CreateCustomClassRequest,Operation> createCustomClassCallable()
Returns
TypeDescription
UnaryCallable<CreateCustomClassRequest,Operation>
Overrides

createCustomClassOperationCallable()

public OperationCallable<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationCallable()
Returns
TypeDescription
OperationCallable<CreateCustomClassRequest,CustomClass,OperationMetadata>
Overrides

createPhraseSetCallable()

public UnaryCallable<CreatePhraseSetRequest,Operation> createPhraseSetCallable()
Returns
TypeDescription
UnaryCallable<CreatePhraseSetRequest,Operation>
Overrides

createPhraseSetOperationCallable()

public OperationCallable<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationCallable()
Returns
TypeDescription
OperationCallable<CreatePhraseSetRequest,PhraseSet,OperationMetadata>
Overrides

createRecognizerCallable()

public UnaryCallable<CreateRecognizerRequest,Operation> createRecognizerCallable()
Returns
TypeDescription
UnaryCallable<CreateRecognizerRequest,Operation>
Overrides

createRecognizerOperationCallable()

public OperationCallable<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationCallable()
Returns
TypeDescription
OperationCallable<CreateRecognizerRequest,Recognizer,OperationMetadata>
Overrides

deleteCustomClassCallable()

public UnaryCallable<DeleteCustomClassRequest,Operation> deleteCustomClassCallable()
Returns
TypeDescription
UnaryCallable<DeleteCustomClassRequest,Operation>
Overrides

deleteCustomClassOperationCallable()

public OperationCallable<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteCustomClassRequest,CustomClass,OperationMetadata>
Overrides

deletePhraseSetCallable()

public UnaryCallable<DeletePhraseSetRequest,Operation> deletePhraseSetCallable()
Returns
TypeDescription
UnaryCallable<DeletePhraseSetRequest,Operation>
Overrides

deletePhraseSetOperationCallable()

public OperationCallable<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationCallable()
Returns
TypeDescription
OperationCallable<DeletePhraseSetRequest,PhraseSet,OperationMetadata>
Overrides

deleteRecognizerCallable()

public UnaryCallable<DeleteRecognizerRequest,Operation> deleteRecognizerCallable()
Returns
TypeDescription
UnaryCallable<DeleteRecognizerRequest,Operation>
Overrides

deleteRecognizerOperationCallable()

public OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata>
Overrides

getConfigCallable()

public UnaryCallable<GetConfigRequest,Config> getConfigCallable()
Returns
TypeDescription
UnaryCallable<GetConfigRequest,Config>
Overrides

getCustomClassCallable()

public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Returns
TypeDescription
UnaryCallable<GetCustomClassRequest,CustomClass>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getPhraseSetCallable()

public UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
Returns
TypeDescription
UnaryCallable<GetPhraseSetRequest,PhraseSet>
Overrides

getRecognizerCallable()

public UnaryCallable<GetRecognizerRequest,Recognizer> getRecognizerCallable()
Returns
TypeDescription
UnaryCallable<GetRecognizerRequest,Recognizer>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCustomClassesCallable()

public UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
Returns
TypeDescription
UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse>
Overrides

listCustomClassesPagedCallable()

public UnaryCallable<ListCustomClassesRequest,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCustomClassesRequest,ListCustomClassesPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,SpeechClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listPhraseSetsCallable()

public UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse> listPhraseSetsCallable()
Returns
TypeDescription
UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse>
Overrides

listPhraseSetsPagedCallable()

public UnaryCallable<ListPhraseSetsRequest,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsPagedResponse>
Overrides

listRecognizersCallable()

public UnaryCallable<ListRecognizersRequest,ListRecognizersResponse> listRecognizersCallable()
Returns
TypeDescription
UnaryCallable<ListRecognizersRequest,ListRecognizersResponse>
Overrides

listRecognizersPagedCallable()

public UnaryCallable<ListRecognizersRequest,SpeechClient.ListRecognizersPagedResponse> listRecognizersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRecognizersRequest,ListRecognizersPagedResponse>
Overrides

recognizeCallable()

public UnaryCallable<RecognizeRequest,RecognizeResponse> recognizeCallable()
Returns
TypeDescription
UnaryCallable<RecognizeRequest,RecognizeResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingRecognizeCallable()

public BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeCallable()
Returns
TypeDescription
BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse>
Overrides

undeleteCustomClassCallable()

public UnaryCallable<UndeleteCustomClassRequest,Operation> undeleteCustomClassCallable()
Returns
TypeDescription
UnaryCallable<UndeleteCustomClassRequest,Operation>
Overrides

undeleteCustomClassOperationCallable()

public OperationCallable<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationCallable()
Returns
TypeDescription
OperationCallable<UndeleteCustomClassRequest,CustomClass,OperationMetadata>
Overrides

undeletePhraseSetCallable()

public UnaryCallable<UndeletePhraseSetRequest,Operation> undeletePhraseSetCallable()
Returns
TypeDescription
UnaryCallable<UndeletePhraseSetRequest,Operation>
Overrides

undeletePhraseSetOperationCallable()

public OperationCallable<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationCallable()
Returns
TypeDescription
OperationCallable<UndeletePhraseSetRequest,PhraseSet,OperationMetadata>
Overrides

undeleteRecognizerCallable()

public UnaryCallable<UndeleteRecognizerRequest,Operation> undeleteRecognizerCallable()
Returns
TypeDescription
UnaryCallable<UndeleteRecognizerRequest,Operation>
Overrides

undeleteRecognizerOperationCallable()

public OperationCallable<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationCallable()
Returns
TypeDescription
OperationCallable<UndeleteRecognizerRequest,Recognizer,OperationMetadata>
Overrides

updateConfigCallable()

public UnaryCallable<UpdateConfigRequest,Config> updateConfigCallable()
Returns
TypeDescription
UnaryCallable<UpdateConfigRequest,Config>
Overrides

updateCustomClassCallable()

public UnaryCallable<UpdateCustomClassRequest,Operation> updateCustomClassCallable()
Returns
TypeDescription
UnaryCallable<UpdateCustomClassRequest,Operation>
Overrides

updateCustomClassOperationCallable()

public OperationCallable<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateCustomClassRequest,CustomClass,OperationMetadata>
Overrides

updatePhraseSetCallable()

public UnaryCallable<UpdatePhraseSetRequest,Operation> updatePhraseSetCallable()
Returns
TypeDescription
UnaryCallable<UpdatePhraseSetRequest,Operation>
Overrides

updatePhraseSetOperationCallable()

public OperationCallable<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationCallable()
Returns
TypeDescription
OperationCallable<UpdatePhraseSetRequest,PhraseSet,OperationMetadata>
Overrides

updateRecognizerCallable()

public UnaryCallable<UpdateRecognizerRequest,Operation> updateRecognizerCallable()
Returns
TypeDescription
UnaryCallable<UpdateRecognizerRequest,Operation>
Overrides

updateRecognizerOperationCallable()

public OperationCallable<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRecognizerRequest,Recognizer,OperationMetadata>
Overrides