Class SpeechStubSettings.Builder (4.12.0)

public static class SpeechStubSettings.Builder extends StubSettings.Builder<SpeechStubSettings,SpeechStubSettings.Builder>

Builder for SpeechStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SpeechStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SpeechStubSettings settings)

protected Builder(SpeechStubSettings settings)
Parameter
NameDescription
settingsSpeechStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public SpeechStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SpeechStubSettings.Builder

batchRecognizeOperationSettings()

public OperationCallSettings.Builder<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationSettings()

Returns the builder for the settings used for calls to batchRecognize.

Returns
TypeDescription
Builder<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata>

batchRecognizeSettings()

public UnaryCallSettings.Builder<BatchRecognizeRequest,Operation> batchRecognizeSettings()

Returns the builder for the settings used for calls to batchRecognize.

Returns
TypeDescription
Builder<BatchRecognizeRequest,Operation>

build()

public SpeechStubSettings build()
Returns
TypeDescription
SpeechStubSettings
Overrides
Exceptions
TypeDescription
IOException

createCustomClassOperationSettings()

public OperationCallSettings.Builder<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationSettings()

Returns the builder for the settings used for calls to createCustomClass.

Returns
TypeDescription
Builder<CreateCustomClassRequest,CustomClass,OperationMetadata>

createCustomClassSettings()

public UnaryCallSettings.Builder<CreateCustomClassRequest,Operation> createCustomClassSettings()

Returns the builder for the settings used for calls to createCustomClass.

Returns
TypeDescription
Builder<CreateCustomClassRequest,Operation>

createPhraseSetOperationSettings()

public OperationCallSettings.Builder<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationSettings()

Returns the builder for the settings used for calls to createPhraseSet.

Returns
TypeDescription
Builder<CreatePhraseSetRequest,PhraseSet,OperationMetadata>

createPhraseSetSettings()

public UnaryCallSettings.Builder<CreatePhraseSetRequest,Operation> createPhraseSetSettings()

Returns the builder for the settings used for calls to createPhraseSet.

Returns
TypeDescription
Builder<CreatePhraseSetRequest,Operation>

createRecognizerOperationSettings()

public OperationCallSettings.Builder<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationSettings()

Returns the builder for the settings used for calls to createRecognizer.

Returns
TypeDescription
Builder<CreateRecognizerRequest,Recognizer,OperationMetadata>

createRecognizerSettings()

public UnaryCallSettings.Builder<CreateRecognizerRequest,Operation> createRecognizerSettings()

Returns the builder for the settings used for calls to createRecognizer.

Returns
TypeDescription
Builder<CreateRecognizerRequest,Operation>

deleteCustomClassOperationSettings()

public OperationCallSettings.Builder<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationSettings()

Returns the builder for the settings used for calls to deleteCustomClass.

Returns
TypeDescription
Builder<DeleteCustomClassRequest,CustomClass,OperationMetadata>

deleteCustomClassSettings()

public UnaryCallSettings.Builder<DeleteCustomClassRequest,Operation> deleteCustomClassSettings()

Returns the builder for the settings used for calls to deleteCustomClass.

Returns
TypeDescription
Builder<DeleteCustomClassRequest,Operation>

deletePhraseSetOperationSettings()

public OperationCallSettings.Builder<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationSettings()

Returns the builder for the settings used for calls to deletePhraseSet.

Returns
TypeDescription
Builder<DeletePhraseSetRequest,PhraseSet,OperationMetadata>

deletePhraseSetSettings()

public UnaryCallSettings.Builder<DeletePhraseSetRequest,Operation> deletePhraseSetSettings()

Returns the builder for the settings used for calls to deletePhraseSet.

Returns
TypeDescription
Builder<DeletePhraseSetRequest,Operation>

deleteRecognizerOperationSettings()

public OperationCallSettings.Builder<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationSettings()

Returns the builder for the settings used for calls to deleteRecognizer.

Returns
TypeDescription
Builder<DeleteRecognizerRequest,Recognizer,OperationMetadata>

deleteRecognizerSettings()

public UnaryCallSettings.Builder<DeleteRecognizerRequest,Operation> deleteRecognizerSettings()

Returns the builder for the settings used for calls to deleteRecognizer.

Returns
TypeDescription
Builder<DeleteRecognizerRequest,Operation>

getConfigSettings()

public UnaryCallSettings.Builder<GetConfigRequest,Config> getConfigSettings()

Returns the builder for the settings used for calls to getConfig.

Returns
TypeDescription
Builder<GetConfigRequest,Config>

getCustomClassSettings()

public UnaryCallSettings.Builder<GetCustomClassRequest,CustomClass> getCustomClassSettings()

Returns the builder for the settings used for calls to getCustomClass.

Returns
TypeDescription
Builder<GetCustomClassRequest,CustomClass>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

Returns the builder for the settings used for calls to getLocation.

Returns
TypeDescription
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getPhraseSetSettings()

public UnaryCallSettings.Builder<GetPhraseSetRequest,PhraseSet> getPhraseSetSettings()

Returns the builder for the settings used for calls to getPhraseSet.

Returns
TypeDescription
Builder<GetPhraseSetRequest,PhraseSet>

getRecognizerSettings()

public UnaryCallSettings.Builder<GetRecognizerRequest,Recognizer> getRecognizerSettings()

Returns the builder for the settings used for calls to getRecognizer.

Returns
TypeDescription
Builder<GetRecognizerRequest,Recognizer>

listCustomClassesSettings()

public PagedCallSettings.Builder<ListCustomClassesRequest,ListCustomClassesResponse,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesSettings()

Returns the builder for the settings used for calls to listCustomClasses.

Returns
TypeDescription
Builder<ListCustomClassesRequest,ListCustomClassesResponse,ListCustomClassesPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,SpeechClient.ListLocationsPagedResponse> listLocationsSettings()

Returns the builder for the settings used for calls to listLocations.

Returns
TypeDescription
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listPhraseSetsSettings()

public PagedCallSettings.Builder<ListPhraseSetsRequest,ListPhraseSetsResponse,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsSettings()

Returns the builder for the settings used for calls to listPhraseSets.

Returns
TypeDescription
Builder<ListPhraseSetsRequest,ListPhraseSetsResponse,ListPhraseSetsPagedResponse>

listRecognizersSettings()

public PagedCallSettings.Builder<ListRecognizersRequest,ListRecognizersResponse,SpeechClient.ListRecognizersPagedResponse> listRecognizersSettings()

Returns the builder for the settings used for calls to listRecognizers.

Returns
TypeDescription
Builder<ListRecognizersRequest,ListRecognizersResponse,ListRecognizersPagedResponse>

recognizeSettings()

public UnaryCallSettings.Builder<RecognizeRequest,RecognizeResponse> recognizeSettings()

Returns the builder for the settings used for calls to recognize.

Returns
TypeDescription
Builder<RecognizeRequest,RecognizeResponse>

streamingRecognizeSettings()

public StreamingCallSettings.Builder<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeSettings()

Returns the builder for the settings used for calls to streamingRecognize.

Returns
TypeDescription
Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

undeleteCustomClassOperationSettings()

public OperationCallSettings.Builder<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationSettings()

Returns the builder for the settings used for calls to undeleteCustomClass.

Returns
TypeDescription
Builder<UndeleteCustomClassRequest,CustomClass,OperationMetadata>

undeleteCustomClassSettings()

public UnaryCallSettings.Builder<UndeleteCustomClassRequest,Operation> undeleteCustomClassSettings()

Returns the builder for the settings used for calls to undeleteCustomClass.

Returns
TypeDescription
Builder<UndeleteCustomClassRequest,Operation>

undeletePhraseSetOperationSettings()

public OperationCallSettings.Builder<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationSettings()

Returns the builder for the settings used for calls to undeletePhraseSet.

Returns
TypeDescription
Builder<UndeletePhraseSetRequest,PhraseSet,OperationMetadata>

undeletePhraseSetSettings()

public UnaryCallSettings.Builder<UndeletePhraseSetRequest,Operation> undeletePhraseSetSettings()

Returns the builder for the settings used for calls to undeletePhraseSet.

Returns
TypeDescription
Builder<UndeletePhraseSetRequest,Operation>

undeleteRecognizerOperationSettings()

public OperationCallSettings.Builder<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationSettings()

Returns the builder for the settings used for calls to undeleteRecognizer.

Returns
TypeDescription
Builder<UndeleteRecognizerRequest,Recognizer,OperationMetadata>

undeleteRecognizerSettings()

public UnaryCallSettings.Builder<UndeleteRecognizerRequest,Operation> undeleteRecognizerSettings()

Returns the builder for the settings used for calls to undeleteRecognizer.

Returns
TypeDescription
Builder<UndeleteRecognizerRequest,Operation>

updateConfigSettings()

public UnaryCallSettings.Builder<UpdateConfigRequest,Config> updateConfigSettings()

Returns the builder for the settings used for calls to updateConfig.

Returns
TypeDescription
Builder<UpdateConfigRequest,Config>

updateCustomClassOperationSettings()

public OperationCallSettings.Builder<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationSettings()

Returns the builder for the settings used for calls to updateCustomClass.

Returns
TypeDescription
Builder<UpdateCustomClassRequest,CustomClass,OperationMetadata>

updateCustomClassSettings()

public UnaryCallSettings.Builder<UpdateCustomClassRequest,Operation> updateCustomClassSettings()

Returns the builder for the settings used for calls to updateCustomClass.

Returns
TypeDescription
Builder<UpdateCustomClassRequest,Operation>

updatePhraseSetOperationSettings()

public OperationCallSettings.Builder<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationSettings()

Returns the builder for the settings used for calls to updatePhraseSet.

Returns
TypeDescription
Builder<UpdatePhraseSetRequest,PhraseSet,OperationMetadata>

updatePhraseSetSettings()

public UnaryCallSettings.Builder<UpdatePhraseSetRequest,Operation> updatePhraseSetSettings()

Returns the builder for the settings used for calls to updatePhraseSet.

Returns
TypeDescription
Builder<UpdatePhraseSetRequest,Operation>

updateRecognizerOperationSettings()

public OperationCallSettings.Builder<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationSettings()

Returns the builder for the settings used for calls to updateRecognizer.

Returns
TypeDescription
Builder<UpdateRecognizerRequest,Recognizer,OperationMetadata>

updateRecognizerSettings()

public UnaryCallSettings.Builder<UpdateRecognizerRequest,Operation> updateRecognizerSettings()

Returns the builder for the settings used for calls to updateRecognizer.

Returns
TypeDescription
Builder<UpdateRecognizerRequest,Operation>