Class HttpJsonSpeechStub (4.14.0)

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.

Inheritance

java.lang.Object > SpeechStub > HttpJsonSpeechStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSpeechStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSpeechStub
Exceptions
TypeDescription
IOException

create(SpeechStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsSpeechStubSettings
clientContextClientContext

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
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