Google Cloud Web Risk v1 API - Class WebRiskService.WebRiskServiceBase (2.1.0)

[BindServiceMethod(typeof(WebRiskService), "BindService")]
public abstract class WebRiskServiceBase

Reference documentation and code samples for the Google Cloud Web Risk v1 API class WebRiskService.WebRiskServiceBase.

Base class for server-side implementations of WebRiskService

Inheritance

Object > WebRiskService.WebRiskServiceBase

Namespace

Google.Cloud.WebRisk.V1

Assembly

Google.Cloud.WebRisk.V1.dll

Methods

ComputeThreatListDiff(ComputeThreatListDiffRequest, ServerCallContext)

public virtual Task<ComputeThreatListDiffResponse> ComputeThreatListDiff(ComputeThreatListDiffRequest request, ServerCallContext context)

Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list.

Parameters
NameDescription
requestComputeThreatListDiffRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ComputeThreatListDiffResponse>

The response to send back to the client (wrapped by a task).

CreateSubmission(CreateSubmissionRequest, ServerCallContext)

public virtual Task<Submission> CreateSubmission(CreateSubmissionRequest request, ServerCallContext context)

Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the result verifies the existence of malicious phishing content, the site will be added to the Google's Social Engineering lists in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.

Parameters
NameDescription
requestCreateSubmissionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Submission>

The response to send back to the client (wrapped by a task).

SearchHashes(SearchHashesRequest, ServerCallContext)

public virtual Task<SearchHashesResponse> SearchHashes(SearchHashesRequest request, ServerCallContext context)

Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat.

Parameters
NameDescription
requestSearchHashesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SearchHashesResponse>

The response to send back to the client (wrapped by a task).

SearchUris(SearchUrisRequest, ServerCallContext)

public virtual Task<SearchUrisResponse> SearchUris(SearchUrisRequest request, ServerCallContext context)

This method is used to check whether a URI is on a given threatList. Multiple threatLists may be searched in a single query. The response will list all requested threatLists the URI was found to match. If the URI is not found on any of the requested ThreatList an empty response will be returned.

Parameters
NameDescription
requestSearchUrisRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SearchUrisResponse>

The response to send back to the client (wrapped by a task).