Class SpeechSettings.Builder (4.38.0)

public static class SpeechSettings.Builder extends ClientSettings.Builder<SpeechSettings,SpeechSettings.Builder>

Builder for SpeechSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SpeechSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SpeechSettings settings)

protected Builder(SpeechSettings settings)
Parameter
Name Description
settings SpeechSettings

Builder(SpeechStubSettings.Builder stubSettings)

protected Builder(SpeechStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SpeechStubSettings.Builder

Methods

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

public SpeechSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
SpeechSettings.Builder

batchRecognizeOperationSettings()

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

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

Returns
Type Description
Builder<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata>

batchRecognizeSettings()

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

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

Returns
Type Description
Builder<BatchRecognizeRequest,Operation>

build()

public SpeechSettings build()
Returns
Type Description
SpeechSettings
Overrides
Exceptions
Type Description
IOException

createCustomClassOperationSettings()

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

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

Returns
Type Description
Builder<CreateCustomClassRequest,CustomClass,OperationMetadata>

createCustomClassSettings()

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

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

Returns
Type Description
Builder<CreateCustomClassRequest,Operation>

createPhraseSetOperationSettings()

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

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

Returns
Type Description
Builder<CreatePhraseSetRequest,PhraseSet,OperationMetadata>

createPhraseSetSettings()

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

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

Returns
Type Description
Builder<CreatePhraseSetRequest,Operation>

createRecognizerOperationSettings()

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

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

Returns
Type Description
Builder<CreateRecognizerRequest,Recognizer,OperationMetadata>

createRecognizerSettings()

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

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

Returns
Type Description
Builder<CreateRecognizerRequest,Operation>

deleteCustomClassOperationSettings()

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

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

Returns
Type Description
Builder<DeleteCustomClassRequest,CustomClass,OperationMetadata>

deleteCustomClassSettings()

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

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

Returns
Type Description
Builder<DeleteCustomClassRequest,Operation>

deletePhraseSetOperationSettings()

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

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

Returns
Type Description
Builder<DeletePhraseSetRequest,PhraseSet,OperationMetadata>

deletePhraseSetSettings()

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

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

Returns
Type Description
Builder<DeletePhraseSetRequest,Operation>

deleteRecognizerOperationSettings()

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

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

Returns
Type Description
Builder<DeleteRecognizerRequest,Recognizer,OperationMetadata>

deleteRecognizerSettings()

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

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

Returns
Type Description
Builder<DeleteRecognizerRequest,Operation>

getConfigSettings()

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

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

Returns
Type Description
Builder<GetConfigRequest,Config>

getCustomClassSettings()

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

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

Returns
Type Description
Builder<GetCustomClassRequest,CustomClass>

getLocationSettings()

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

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

Returns
Type Description
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
Type Description
Builder<GetPhraseSetRequest,PhraseSet>

getRecognizerSettings()

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

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

Returns
Type Description
Builder<GetRecognizerRequest,Recognizer>

getStubSettingsBuilder()

public SpeechStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
SpeechStubSettings.Builder

listCustomClassesSettings()

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

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder<ListRecognizersRequest,ListRecognizersResponse,ListRecognizersPagedResponse>

recognizeSettings()

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

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

Returns
Type Description
Builder<RecognizeRequest,RecognizeResponse>

streamingRecognizeSettings()

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

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

Returns
Type Description
Builder<StreamingRecognizeRequest,StreamingRecognizeResponse>

undeleteCustomClassOperationSettings()

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

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

Returns
Type Description
Builder<UndeleteCustomClassRequest,CustomClass,OperationMetadata>

undeleteCustomClassSettings()

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

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

Returns
Type Description
Builder<UndeleteCustomClassRequest,Operation>

undeletePhraseSetOperationSettings()

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

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

Returns
Type Description
Builder<UndeletePhraseSetRequest,PhraseSet,OperationMetadata>

undeletePhraseSetSettings()

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

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

Returns
Type Description
Builder<UndeletePhraseSetRequest,Operation>

undeleteRecognizerOperationSettings()

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

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

Returns
Type Description
Builder<UndeleteRecognizerRequest,Recognizer,OperationMetadata>

undeleteRecognizerSettings()

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

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

Returns
Type Description
Builder<UndeleteRecognizerRequest,Operation>

updateConfigSettings()

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

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

Returns
Type Description
Builder<UpdateConfigRequest,Config>

updateCustomClassOperationSettings()

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

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

Returns
Type Description
Builder<UpdateCustomClassRequest,CustomClass,OperationMetadata>

updateCustomClassSettings()

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

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

Returns
Type Description
Builder<UpdateCustomClassRequest,Operation>

updatePhraseSetOperationSettings()

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

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

Returns
Type Description
Builder<UpdatePhraseSetRequest,PhraseSet,OperationMetadata>

updatePhraseSetSettings()

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

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

Returns
Type Description
Builder<UpdatePhraseSetRequest,Operation>

updateRecognizerOperationSettings()

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

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

Returns
Type Description
Builder<UpdateRecognizerRequest,Recognizer,OperationMetadata>

updateRecognizerSettings()

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

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

Returns
Type Description
Builder<UpdateRecognizerRequest,Operation>