Class PublisherSettings.Builder (0.49.0)

public static class PublisherSettings.Builder extends ClientSettings.Builder<PublisherSettings,PublisherSettings.Builder>

Builder for PublisherSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > PublisherSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(PublisherSettings settings)

protected Builder(PublisherSettings settings)
Parameter
Name Description
settings PublisherSettings

Builder(PublisherStubSettings.Builder stubSettings)

protected Builder(PublisherStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings PublisherStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

public PublisherStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
PublisherStubSettings.Builder

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>