Class ApiHubPluginSettings.Builder (0.2.0)

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

Builder for ApiHubPluginSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ApiHubPluginSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ApiHubPluginSettings settings)

protected Builder(ApiHubPluginSettings settings)
Parameter
Name Description
settings ApiHubPluginSettings

Builder(ApiHubPluginStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

disablePluginSettings()

public UnaryCallSettings.Builder<DisablePluginRequest,Plugin> disablePluginSettings()

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

Returns
Type Description
Builder<DisablePluginRequest,Plugin>

enablePluginSettings()

public UnaryCallSettings.Builder<EnablePluginRequest,Plugin> enablePluginSettings()

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

Returns
Type Description
Builder<EnablePluginRequest,Plugin>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getPluginSettings()

public UnaryCallSettings.Builder<GetPluginRequest,Plugin> getPluginSettings()

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

Returns
Type Description
Builder<GetPluginRequest,Plugin>

getStubSettingsBuilder()

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

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,ApiHubPluginClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>