Class WebRiskServiceGrpc.WebRiskServiceFutureStub (2.50.0)

public static final class WebRiskServiceGrpc.WebRiskServiceFutureStub extends AbstractFutureStub<WebRiskServiceGrpc.WebRiskServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service WebRiskService.

Web Risk API defines an interface to detect malicious URLs on your website and in client applications.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > WebRiskServiceGrpc.WebRiskServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected WebRiskServiceGrpc.WebRiskServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
WebRiskServiceGrpc.WebRiskServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeThreatListDiff(ComputeThreatListDiffRequest request)

public ListenableFuture<ComputeThreatListDiffResponse> computeThreatListDiff(ComputeThreatListDiffRequest request)

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.

Parameter
Name Description
request ComputeThreatListDiffRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ComputeThreatListDiffResponse>

createSubmission(CreateSubmissionRequest request)

public ListenableFuture<Submission> createSubmission(CreateSubmissionRequest request)

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.

Parameter
Name Description
request CreateSubmissionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Submission>

searchHashes(SearchHashesRequest request)

public ListenableFuture<SearchHashesResponse> searchHashes(SearchHashesRequest request)

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.

Parameter
Name Description
request SearchHashesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<SearchHashesResponse>

searchUris(SearchUrisRequest request)

public ListenableFuture<SearchUrisResponse> searchUris(SearchUrisRequest request)

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.

Parameter
Name Description
request SearchUrisRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<SearchUrisResponse>

submitUri(SubmitUriRequest request)

public ListenableFuture<Operation> submitUri(SubmitUriRequest request)

Submits a URI suspected of containing malicious content to be reviewed. Returns a google.longrunning.Operation which, once the review is complete, is updated with its result. You can use the Pub/Sub API to receive notifications for the returned Operation. If the result verifies the existence of malicious 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.

Parameter
Name Description
request SubmitUriRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>