Class WebRiskServiceStubSettings.Builder (2.34.0)

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

Builder for WebRiskServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > WebRiskServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(WebRiskServiceStubSettings settings)

protected Builder(WebRiskServiceStubSettings settings)
Parameter
NameDescription
settingsWebRiskServiceStubSettings

Methods

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

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

build()

public WebRiskServiceStubSettings build()
Returns
TypeDescription
WebRiskServiceStubSettings
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>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

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>

submitUriOperationSettings()

public OperationCallSettings.Builder<SubmitUriRequest,Submission,SubmitUriMetadata> submitUriOperationSettings()

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

Returns
TypeDescription
Builder<SubmitUriRequest,Submission,SubmitUriMetadata>

submitUriSettings()

public UnaryCallSettings.Builder<SubmitUriRequest,Operation> submitUriSettings()

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

Returns
TypeDescription
Builder<SubmitUriRequest,Operation>

unaryMethodSettingsBuilders()

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