Class WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub (2.40.0)

public static final class WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub extends AbstractFutureStub<WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub>

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

Web Risk v1beta1 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 > WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1FutureStub
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.

Parameter
NameDescription
requestComputeThreatListDiffRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ComputeThreatListDiffResponse>

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
NameDescription
requestSearchHashesRequest
Returns
TypeDescription
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.

Parameter
NameDescription
requestSearchUrisRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<SearchUrisResponse>