Class HttpJsonSpeechStub (4.39.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
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>
Overrides

batchRecognizeOperationCallable()

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

close()

public final void close()
Overrides

createCustomClassCallable()

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

createCustomClassOperationCallable()

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

createPhraseSetCallable()

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

createPhraseSetOperationCallable()

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

createRecognizerCallable()

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

createRecognizerOperationCallable()

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

deleteCustomClassCallable()

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

deleteCustomClassOperationCallable()

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

deletePhraseSetCallable()

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

deletePhraseSetOperationCallable()

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

deleteRecognizerCallable()

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

deleteRecognizerOperationCallable()

public OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationCallable()
Returns
Type Description
OperationCallable<DeleteRecognizerRequest,Recognizer,OperationMetadata>
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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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()
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()
Returns
Type Description
UnaryCallable<ListCustomClassesRequest,ListCustomClassesResponse>
Overrides

listCustomClassesPagedCallable()

public UnaryCallable<ListCustomClassesRequest,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesPagedCallable()
Returns
Type Description
UnaryCallable<ListCustomClassesRequest,ListCustomClassesPagedResponse>
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()
Returns
Type Description
UnaryCallable<ListPhraseSetsRequest,ListPhraseSetsResponse>
Overrides

listPhraseSetsPagedCallable()

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

listRecognizersCallable()

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

listRecognizersPagedCallable()

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

recognizeCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingRecognizeCallable()

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

undeleteCustomClassCallable()

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

undeleteCustomClassOperationCallable()

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

undeletePhraseSetCallable()

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

undeletePhraseSetOperationCallable()

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

undeleteRecognizerCallable()

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

undeleteRecognizerOperationCallable()

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

updateConfigCallable()

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

updateCustomClassCallable()

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

updateCustomClassOperationCallable()

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

updatePhraseSetCallable()

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

updatePhraseSetOperationCallable()

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

updateRecognizerCallable()

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

updateRecognizerOperationCallable()

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