Class ServiceControllerSettings.Builder (1.18.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
NameDescription
clientContextClientContext

Builder(ServiceControllerSettings settings)

protected Builder(ServiceControllerSettings settings)
Parameter
NameDescription
settingsServiceControllerSettings

Builder(ServiceControllerStubSettings.Builder stubSettings)

protected Builder(ServiceControllerStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsServiceControllerStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
ServiceControllerSettings.Builder

build()

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

checkSettings()

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

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

Returns
TypeDescription
Builder<CheckRequest,CheckResponse>

getStubSettingsBuilder()

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

reportSettings()

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

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

Returns
TypeDescription
Builder<ReportRequest,ReportResponse>