Class SynonymSetServiceSettings.Builder (0.26.0)

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

Builder for SynonymSetServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SynonymSetServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SynonymSetServiceSettings settings)

protected Builder(SynonymSetServiceSettings settings)
Parameter
NameDescription
settingsSynonymSetServiceSettings

Builder(SynonymSetServiceStubSettings.Builder stubSettings)

protected Builder(SynonymSetServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSynonymSetServiceStubSettings.Builder

Methods

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

public SynonymSetServiceSettings.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
SynonymSetServiceSettings.Builder

build()

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

createSynonymSetSettings()

public UnaryCallSettings.Builder<CreateSynonymSetRequest,SynonymSet> createSynonymSetSettings()

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

Returns
TypeDescription
Builder<CreateSynonymSetRequest,SynonymSet>

deleteSynonymSetSettings()

public UnaryCallSettings.Builder<DeleteSynonymSetRequest,Empty> deleteSynonymSetSettings()

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

Returns
TypeDescription
Builder<DeleteSynonymSetRequest,Empty>

getStubSettingsBuilder()

public SynonymSetServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
SynonymSetServiceStubSettings.Builder

getSynonymSetSettings()

public UnaryCallSettings.Builder<GetSynonymSetRequest,SynonymSet> getSynonymSetSettings()

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

Returns
TypeDescription
Builder<GetSynonymSetRequest,SynonymSet>

listSynonymSetsSettings()

public PagedCallSettings.Builder<ListSynonymSetsRequest,ListSynonymSetsResponse,SynonymSetServiceClient.ListSynonymSetsPagedResponse> listSynonymSetsSettings()

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

Returns
TypeDescription
Builder<ListSynonymSetsRequest,ListSynonymSetsResponse,ListSynonymSetsPagedResponse>

updateSynonymSetSettings()

public UnaryCallSettings.Builder<UpdateSynonymSetRequest,SynonymSet> updateSynonymSetSettings()

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

Returns
TypeDescription
Builder<UpdateSynonymSetRequest,SynonymSet>