Class NetworkServiceSettings.Builder (0.4.0)

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

Builder for NetworkServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > NetworkServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(NetworkServiceSettings settings)

protected Builder(NetworkServiceSettings settings)
Parameter
Name Description
settings NetworkServiceSettings

Builder(NetworkServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getNetworkSettings()

public UnaryCallSettings.Builder<GetNetworkRequest,Network> getNetworkSettings()

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

Returns
Type Description
Builder<GetNetworkRequest,Network>

getStubSettingsBuilder()

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