Class NetworkServiceStubSettings.Builder (0.6.0)

public static class NetworkServiceStubSettings.Builder extends StubSettings.Builder<NetworkServiceStubSettings,NetworkServiceStubSettings.Builder>

Builder for NetworkServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > NetworkServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(NetworkServiceStubSettings settings)

protected Builder(NetworkServiceStubSettings settings)
Parameter
Name Description
settings NetworkServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

public NetworkServiceStubSettings build()
Returns
Type Description
NetworkServiceStubSettings
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>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>