Class PublisherServiceStubSettings.Builder (1.8.0)

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

Builder for PublisherServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > PublisherServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(PublisherServiceStubSettings settings)

protected Builder(PublisherServiceStubSettings settings)
Parameter
NameDescription
settingsPublisherServiceStubSettings

Methods

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

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

build()

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

publishSettings()

public StreamingCallSettings.Builder<PublishRequest,PublishResponse> publishSettings()

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

Returns
TypeDescription
Builder<PublishRequest,PublishResponse>

unaryMethodSettingsBuilders()

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