- 4.48.0 (latest)
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonSpeechStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonSpeechStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonSpeechStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(SpeechStubSettings settings)
public static final HttpJsonSpeechStub create(SpeechStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
SpeechStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonSpeechStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
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.
Parameters | |
---|---|
Name | Description |
settings |
SpeechStubSettings |
clientContext |
ClientContext |
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.
Parameters | |
---|---|
Name | Description |
settings |
SpeechStubSettings |
clientContext |
ClientContext |
callableFactory |
HttpJsonStubCallableFactory |
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> |
batchRecognizeOperationCallable()
public OperationCallable<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> |
close()
public final void close()
createCustomClassCallable()
public UnaryCallable<CreateCustomClassRequest,Operation> createCustomClassCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateCustomClassRequest,Operation> |
createCustomClassOperationCallable()
public OperationCallable<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateCustomClassRequest,CustomClass,OperationMetadata> |
createPhraseSetCallable()
public UnaryCallable<CreatePhraseSetRequest,Operation> createPhraseSetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreatePhraseSetRequest,Operation> |
createPhraseSetOperationCallable()
public OperationCallable<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreatePhraseSetRequest,PhraseSet,OperationMetadata> |
createRecognizerCallable()
public UnaryCallable<CreateRecognizerRequest,Operation> createRecognizerCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateRecognizerRequest,Operation> |
createRecognizerOperationCallable()
public OperationCallable<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateRecognizerRequest,Recognizer,OperationMetadata> |
deleteCustomClassCallable()
public UnaryCallable<DeleteCustomClassRequest,Operation> deleteCustomClassCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteCustomClassRequest,Operation> |
deleteCustomClassOperationCallable()
public OperationCallable<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteCustomClassRequest,CustomClass,OperationMetadata> |
deletePhraseSetCallable()
public UnaryCallable<DeletePhraseSetRequest,Operation> deletePhraseSetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeletePhraseSetRequest,Operation> |
deletePhraseSetOperationCallable()
public OperationCallable<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeletePhraseSetRequest,PhraseSet,OperationMetadata> |
deleteRecognizerCallable()
public UnaryCallable<DeleteRecognizerRequest,Operation> deleteRecognizerCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteRecognizerRequest,Operation> |
deleteRecognizerOperationCallable()
public OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata> |
getConfigCallable()
public UnaryCallable<GetConfigRequest,Config> getConfigCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetConfigRequest,Config> |
getCustomClassCallable()
public UnaryCallable<GetCustomClassRequest,CustomClass> getCustomClassCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetCustomClassRequest,CustomClass> |
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns | |
---|---|
Type | Description |
HttpJsonOperationsStub |
getLocationCallable()
public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getPhraseSetCallable()
public UnaryCallable<GetPhraseSetRequest,PhraseSet> getPhraseSetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetPhraseSetRequest,PhraseSet> |
getRecognizerCallable()
public UnaryCallable<GetRecognizerRequest,Recognizer> getRecognizerCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetRecognizerRequest,Recognizer> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listCustomClassesCallable()
public UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> listCustomClassesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse> |
listCustomClassesPagedCallable()
public UnaryCallable<ListCustomClassesRequest,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCustomClassesRequest,ListCustomClassesPagedResponse> |
listLocationsCallable()
public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public UnaryCallable<ListLocationsRequest,SpeechClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
listPhraseSetsCallable()
public UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse> listPhraseSetsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse> |
listPhraseSetsPagedCallable()
public UnaryCallable<ListPhraseSetsRequest,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsPagedResponse> |
listRecognizersCallable()
public UnaryCallable<ListRecognizersRequest,ListRecognizersResponse> listRecognizersCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListRecognizersRequest,ListRecognizersResponse> |
listRecognizersPagedCallable()
public UnaryCallable<ListRecognizersRequest,SpeechClient.ListRecognizersPagedResponse> listRecognizersPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListRecognizersRequest,ListRecognizersPagedResponse> |
recognizeCallable()
public UnaryCallable<RecognizeRequest,RecognizeResponse> recognizeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RecognizeRequest,RecognizeResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
streamingRecognizeCallable()
public BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeCallable()
Returns | |
---|---|
Type | Description |
BidiStreamingCallable<StreamingRecognizeRequest,StreamingRecognizeResponse> |
undeleteCustomClassCallable()
public UnaryCallable<UndeleteCustomClassRequest,Operation> undeleteCustomClassCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UndeleteCustomClassRequest,Operation> |
undeleteCustomClassOperationCallable()
public OperationCallable<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UndeleteCustomClassRequest,CustomClass,OperationMetadata> |
undeletePhraseSetCallable()
public UnaryCallable<UndeletePhraseSetRequest,Operation> undeletePhraseSetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UndeletePhraseSetRequest,Operation> |
undeletePhraseSetOperationCallable()
public OperationCallable<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> |
undeleteRecognizerCallable()
public UnaryCallable<UndeleteRecognizerRequest,Operation> undeleteRecognizerCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UndeleteRecognizerRequest,Operation> |
undeleteRecognizerOperationCallable()
public OperationCallable<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UndeleteRecognizerRequest,Recognizer,OperationMetadata> |
updateConfigCallable()
public UnaryCallable<UpdateConfigRequest,Config> updateConfigCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateConfigRequest,Config> |
updateCustomClassCallable()
public UnaryCallable<UpdateCustomClassRequest,Operation> updateCustomClassCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateCustomClassRequest,Operation> |
updateCustomClassOperationCallable()
public OperationCallable<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateCustomClassRequest,CustomClass,OperationMetadata> |
updatePhraseSetCallable()
public UnaryCallable<UpdatePhraseSetRequest,Operation> updatePhraseSetCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdatePhraseSetRequest,Operation> |
updatePhraseSetOperationCallable()
public OperationCallable<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> |
updateRecognizerCallable()
public UnaryCallable<UpdateRecognizerRequest,Operation> updateRecognizerCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateRecognizerRequest,Operation> |
updateRecognizerOperationCallable()
public OperationCallable<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateRecognizerRequest,Recognizer,OperationMetadata> |