Class PublisherSettings.Builder (0.37.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
NameDescription
clientContextClientContext

Builder(PublisherSettings settings)

protected Builder(PublisherSettings settings)
Parameter
NameDescription
settingsPublisherSettings

Builder(PublisherStubSettings.Builder stubSettings)

protected Builder(PublisherStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsPublisherStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
PublisherSettings.Builder

build()

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

getStubSettingsBuilder()

public PublisherStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
PublisherStubSettings.Builder

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>