Class WebRiskServiceSettings.Builder (2.5.0)

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

Builder for WebRiskServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > WebRiskServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(WebRiskServiceSettings settings)

protected Builder(WebRiskServiceSettings settings)
Parameter
NameDescription
settingsWebRiskServiceSettings

Builder(WebRiskServiceStubSettings.Builder stubSettings)

protected Builder(WebRiskServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsWebRiskServiceStubSettings.Builder

Methods

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

public WebRiskServiceSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
WebRiskServiceSettings.Builder

build()

public WebRiskServiceSettings build()
Returns
TypeDescription
WebRiskServiceSettings
Overrides Exceptions
TypeDescription
IOException

computeThreatListDiffSettings()

public UnaryCallSettings.Builder<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse> computeThreatListDiffSettings()

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

Returns
TypeDescription
Builder<ComputeThreatListDiffRequest,ComputeThreatListDiffResponse>

createSubmissionSettings()

public UnaryCallSettings.Builder<CreateSubmissionRequest,Submission> createSubmissionSettings()

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

Returns
TypeDescription
Builder<CreateSubmissionRequest,Submission>

getStubSettingsBuilder()

public WebRiskServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
WebRiskServiceStubSettings.Builder

searchHashesSettings()

public UnaryCallSettings.Builder<SearchHashesRequest,SearchHashesResponse> searchHashesSettings()

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

Returns
TypeDescription
Builder<SearchHashesRequest,SearchHashesResponse>

searchUrisSettings()

public UnaryCallSettings.Builder<SearchUrisRequest,SearchUrisResponse> searchUrisSettings()

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

Returns
TypeDescription
Builder<SearchUrisRequest,SearchUrisResponse>