Class GrpcSpeechStub (4.53.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSpeechStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSpeechStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcSpeechStub
Exceptions
Type Description
IOException

create(SpeechStubSettings settings)

public static final GrpcSpeechStub create(SpeechStubSettings settings)
Parameter
Name Description
settings SpeechStubSettings
Returns
Type Description
GrpcSpeechStub
Exceptions
Type Description
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
Name Description
settings SpeechStubSettings
clientContext ClientContext

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
Name Description
settings SpeechStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchRecognizeCallable()

public UnaryCallable<BatchRecognizeRequest,Operation> batchRecognizeCallable()
Returns
Type Description
UnaryCallable<BatchRecognizeRequest,Operation>
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()
Returns
Type Description
UnaryCallable<CreatePhraseSetRequest,Operation>
Overrides

createPhraseSetOperationCallable()

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

createRecognizerCallable()

public UnaryCallable<CreateRecognizerRequest,Operation> createRecognizerCallable()
Returns
Type Description
UnaryCallable<CreateRecognizerRequest,Operation>
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()
Returns
Type Description
UnaryCallable<DeletePhraseSetRequest,Operation>
Overrides

deletePhraseSetOperationCallable()

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

deleteRecognizerCallable()

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

deleteRecognizerOperationCallable()

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

getConfigCallable()

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

getCustomClassCallable()

public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Returns
Type Description
UnaryCallable<GetCustomClassRequest,CustomClass>
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()
Returns
Type Description
GrpcOperationsStub
Overrides

getPhraseSetCallable()

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

getRecognizerCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

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()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
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()

public void 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()
Returns
Type Description
UnaryCallable<UpdateConfigRequest,Config>
Overrides

updateCustomClassCallable()

public UnaryCallable<UpdateCustomClassRequest,Operation> updateCustomClassCallable()
Overrides

updateCustomClassOperationCallable()

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

updatePhraseSetCallable()

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

updatePhraseSetOperationCallable()

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

updateRecognizerCallable()

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

updateRecognizerOperationCallable()

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