Class WebRiskServiceConnection (2.17.0)

This interface defines virtual methods for each of the user-facing overload sets in WebRiskServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type WebRiskServiceClient.

To create a concrete instance, see MakeWebRiskServiceConnection().

For mocking, see webrisk_v1_mocks::MockWebRiskServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ComputeThreatListDiff(google::cloud::webrisk::v1::ComputeThreatListDiffRequest const &)

Parameter
Name Description
request google::cloud::webrisk::v1::ComputeThreatListDiffRequest const &
Returns
Type Description
StatusOr< google::cloud::webrisk::v1::ComputeThreatListDiffResponse >

virtual SearchUris(google::cloud::webrisk::v1::SearchUrisRequest const &)

Parameter
Name Description
request google::cloud::webrisk::v1::SearchUrisRequest const &
Returns
Type Description
StatusOr< google::cloud::webrisk::v1::SearchUrisResponse >

virtual SearchHashes(google::cloud::webrisk::v1::SearchHashesRequest const &)

Parameter
Name Description
request google::cloud::webrisk::v1::SearchHashesRequest const &
Returns
Type Description
StatusOr< google::cloud::webrisk::v1::SearchHashesResponse >

virtual CreateSubmission(google::cloud::webrisk::v1::CreateSubmissionRequest const &)

Parameter
Name Description
request google::cloud::webrisk::v1::CreateSubmissionRequest const &
Returns
Type Description
StatusOr< google::cloud::webrisk::v1::Submission >

virtual SubmitUri(google::cloud::webrisk::v1::SubmitUriRequest const &)

Parameter
Name Description
request google::cloud::webrisk::v1::SubmitUriRequest const &
Returns
Type Description
future< StatusOr< google::cloud::webrisk::v1::Submission > >