Class PublisherStubSettings.Builder (0.43.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
Name Description
clientContext ClientContext

Builder(PublisherStubSettings settings)

protected Builder(PublisherStubSettings settings)
Parameter
Name Description
settings PublisherStubSettings

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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
PublisherStubSettings.Builder

build()

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

publishChannelConnectionEventsSettings()

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

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

Returns
Type Description
Builder<PublishChannelConnectionEventsRequest,PublishChannelConnectionEventsResponse>

publishEventsSettings()

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

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

Returns
Type Description
Builder<PublishEventsRequest,PublishEventsResponse>

unaryMethodSettingsBuilders()

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