Class ServiceControllerSettings.Builder (1.54.0)

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

Builder for ServiceControllerSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ServiceControllerSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ServiceControllerSettings settings)

protected Builder(ServiceControllerSettings settings)
Parameter
Name Description
settings ServiceControllerSettings

Builder(ServiceControllerStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

checkSettings()

public UnaryCallSettings.Builder<CheckRequest,CheckResponse> checkSettings()

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

Returns
Type Description
Builder<CheckRequest,CheckResponse>

getStubSettingsBuilder()

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

reportSettings()

public UnaryCallSettings.Builder<ReportRequest,ReportResponse> reportSettings()

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

Returns
Type Description
Builder<ReportRequest,ReportResponse>