Class HostsStubSettings.Builder (1.109.0)

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

Builder for HostsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > HostsStubSettings.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(HostsStubSettings settings)

protected Builder(HostsStubSettings settings)
Parameter
Name Description
settings HostsStubSettings

Methods

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

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

build()

public HostsStubSettings build()
Returns
Type Description
HostsStubSettings
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>

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>

unaryMethodSettingsBuilders()

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