Class SubscriberServiceSettings.Builder (1.14.7)

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

Builder for SubscriberServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SubscriberServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SubscriberServiceSettings settings)

protected Builder(SubscriberServiceSettings settings)
Parameter
Name Description
settings SubscriberServiceSettings

Builder(SubscriberServiceStubSettings.Builder stubSettings)

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

Methods

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

public SubscriberServiceSettings.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<?,?>,Void>
Returns
Type Description
SubscriberServiceSettings.Builder

build()

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

getStubSettingsBuilder()

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

subscribeSettings()

public StreamingCallSettings.Builder<SubscribeRequest,SubscribeResponse> subscribeSettings()

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

Returns
Type Description
Builder<SubscribeRequest,SubscribeResponse>