Class SynonymSetServiceStubSettings.Builder (0.3.0)

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

Builder for SynonymSetServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SynonymSetServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SynonymSetServiceStubSettings settings)

protected Builder(SynonymSetServiceStubSettings settings)
Parameter
NameDescription
settingsSynonymSetServiceStubSettings

Methods

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

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

build()

public SynonymSetServiceStubSettings build()
Returns
TypeDescription
SynonymSetServiceStubSettings
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>

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>

unaryMethodSettingsBuilders()

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

updateSynonymSetSettings()

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

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

Returns
TypeDescription
Builder<UpdateSynonymSetRequest,SynonymSet>