Class PublisherServiceSettings.Builder (1.14.7)

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
Name Description
clientContext ClientContext

Builder(PublisherServiceSettings settings)

protected Builder(PublisherServiceSettings settings)
Parameter
Name Description
settings PublisherServiceSettings

Builder(PublisherServiceStubSettings.Builder stubSettings)

protected Builder(PublisherServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings PublisherServiceStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,Void>
Returns
Type Description
PublisherServiceSettings.Builder

build()

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

getStubSettingsBuilder()

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

publishSettings()

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

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

Returns
Type Description
Builder<PublishRequest,PublishResponse>