Class SubscriberServiceSettings.Builder (1.7.0)

Stay organized with collections Save and categorize content based on your preferences.
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
NameDescription
clientContextClientContext

Builder(SubscriberServiceSettings settings)

protected Builder(SubscriberServiceSettings settings)
Parameter
NameDescription
settingsSubscriberServiceSettings

Builder(SubscriberServiceStubSettings.Builder stubSettings)

protected Builder(SubscriberServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSubscriberServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
SubscriberServiceSettings.Builder

build()

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

getStubSettingsBuilder()

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

subscribeSettings()

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

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

Returns
TypeDescription
Builder<SubscribeRequest,SubscribeResponse>