public class HttpJsonSpeechStub extends SpeechStub
REST 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 HttpJsonSpeechStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonSpeechStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
create(SpeechStubSettings settings)
public static final HttpJsonSpeechStub create(SpeechStubSettings settings)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext)
protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonSpeechStub, 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.
HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonSpeechStub, 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
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Overrides
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
|
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