Class HostsSettings.Builder (1.109.0)

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

Builder for HostsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > HostsSettings.Builder

Constructors

Builder()

protected Builder()

Builder(@Nullable ClientContext clientContext)

protected Builder(@Nullable ClientContext clientContext)
Parameter
Name Description
clientContext @org.jspecify.annotations.Nullable com.google.api.gax.rpc.ClientContext

Builder(HostsSettings settings)

protected Builder(HostsSettings settings)
Parameter
Name Description
settings HostsSettings

Builder(HostsStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getSettings()

public UnaryCallSettings.Builder<GetHostRequest,Host> getSettings()

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

Returns
Type Description
Builder<GetHostRequest,Host>

getStubSettingsBuilder()

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

getVersionOperationSettings()

public OperationCallSettings.Builder<GetVersionHostRequest,Operation,Operation> getVersionOperationSettings()

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

Returns
Type Description
Builder<GetVersionHostRequest,Operation,Operation>

getVersionSettings()

public UnaryCallSettings.Builder<GetVersionHostRequest,Operation> getVersionSettings()

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

Returns
Type Description
Builder<GetVersionHostRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListHostsRequest,HostsListResponse,HostsClient.ListPagedResponse> listSettings()

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

Returns
Type Description
Builder<ListHostsRequest,HostsListResponse,ListPagedResponse>