public static class NetworkServiceSettings.Builder extends ClientSettings.Builder<NetworkServiceSettings,NetworkServiceSettings.Builder>
Builder for NetworkServiceSettings.
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 |
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 |
listNetworksSettings()
public UnaryCallSettings.Builder<ListNetworksRequest,ListNetworksResponse> listNetworksSettings()
Returns the builder for the settings used for calls to listNetworks.
Returns | |
---|---|
Type | Description |
Builder<ListNetworksRequest,ListNetworksResponse> |