Class PublisherServiceSettings.Builder (1.12.22)

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

Builder for PublisherServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > PublisherServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(PublisherServiceSettings settings)

protected Builder(PublisherServiceSettings settings)
Parameter
NameDescription
settingsPublisherServiceSettings

Builder(PublisherServiceStubSettings.Builder stubSettings)

protected Builder(PublisherServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsPublisherServiceStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

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

publishSettings()

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

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

Returns
TypeDescription
Builder<PublishRequest,PublishResponse>