Class SubscriberServiceStubSettings.Builder (1.13.0)

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

Builder for SubscriberServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SubscriberServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SubscriberServiceStubSettings settings)

protected Builder(SubscriberServiceStubSettings settings)
Parameter
NameDescription
settingsSubscriberServiceStubSettings

Methods

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

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

build()

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

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

subscribeSettings()

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

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

Returns
TypeDescription
Builder<SubscribeRequest,SubscribeResponse>

unaryMethodSettingsBuilders()

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