Class ControlServiceStubSettings.Builder (2.39.0)

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

Builder for ControlServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ControlServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ControlServiceStubSettings settings)

protected Builder(ControlServiceStubSettings settings)
Parameter
NameDescription
settingsControlServiceStubSettings

Methods

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

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

build()

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

createControlSettings()

public UnaryCallSettings.Builder<CreateControlRequest,Control> createControlSettings()

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

Returns
TypeDescription
Builder<CreateControlRequest,Control>

deleteControlSettings()

public UnaryCallSettings.Builder<DeleteControlRequest,Empty> deleteControlSettings()

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

Returns
TypeDescription
Builder<DeleteControlRequest,Empty>

getControlSettings()

public UnaryCallSettings.Builder<GetControlRequest,Control> getControlSettings()

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

Returns
TypeDescription
Builder<GetControlRequest,Control>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

listControlsSettings()

public PagedCallSettings.Builder<ListControlsRequest,ListControlsResponse,ControlServiceClient.ListControlsPagedResponse> listControlsSettings()

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

Returns
TypeDescription
Builder<ListControlsRequest,ListControlsResponse,ListControlsPagedResponse>

unaryMethodSettingsBuilders()

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

updateControlSettings()

public UnaryCallSettings.Builder<UpdateControlRequest,Control> updateControlSettings()

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

Returns
TypeDescription
Builder<UpdateControlRequest,Control>