public static class NetworkServiceStubSettings.Builder extends StubSettings.Builder<NetworkServiceStubSettings,NetworkServiceStubSettings.Builder>
Builder for NetworkServiceStubSettings.
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 |
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> |
listNetworksSettings()
public UnaryCallSettings.Builder<ListNetworksRequest,ListNetworksResponse> listNetworksSettings()
Returns the builder for the settings used for calls to listNetworks.
Returns | |
---|---|
Type | Description |
Builder<ListNetworksRequest,ListNetworksResponse> |
unaryMethodSettingsBuilders()
public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns | |
---|---|
Type | Description |
com.google.common.collect.ImmutableList<Builder<?,?>> |