Class PublisherStubSettings.Builder (0.20.0)

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

Builder for PublisherStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > PublisherStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(PublisherStubSettings settings)

protected Builder(PublisherStubSettings settings)
Parameter
NameDescription
settingsPublisherStubSettings

Methods

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

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

build()

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

publishChannelConnectionEventsSettings()

public UnaryCallSettings.Builder<PublishChannelConnectionEventsRequest,PublishChannelConnectionEventsResponse> publishChannelConnectionEventsSettings()

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

Returns
TypeDescription
Builder<PublishChannelConnectionEventsRequest,PublishChannelConnectionEventsResponse>

publishEventsSettings()

public UnaryCallSettings.Builder<PublishEventsRequest,PublishEventsResponse> publishEventsSettings()

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

Returns
TypeDescription
Builder<PublishEventsRequest,PublishEventsResponse>

unaryMethodSettingsBuilders()

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