Class WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1Stub (2.47.0)

public static final class WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1Stub extends AbstractAsyncStub<WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1Stub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > WebRiskServiceV1Beta1Grpc.WebRiskServiceV1Beta1Stub

Methods

build(Channel channel, CallOptions callOptions)

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

computeThreatListDiff(ComputeThreatListDiffRequest request, StreamObserver<ComputeThreatListDiffResponse> responseObserver)

public void computeThreatListDiff(ComputeThreatListDiffRequest request, StreamObserver<ComputeThreatListDiffResponse> responseObserver)

Gets the most recent threat list diffs.

Parameters
Name Description
request ComputeThreatListDiffRequest
responseObserver io.grpc.stub.StreamObserver<ComputeThreatListDiffResponse>

searchHashes(SearchHashesRequest request, StreamObserver<SearchHashesResponse> responseObserver)

public void searchHashes(SearchHashesRequest request, StreamObserver<SearchHashesResponse> responseObserver)

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
Name Description
request SearchHashesRequest
responseObserver io.grpc.stub.StreamObserver<SearchHashesResponse>

searchUris(SearchUrisRequest request, StreamObserver<SearchUrisResponse> responseObserver)

public void searchUris(SearchUrisRequest request, StreamObserver<SearchUrisResponse> responseObserver)

This method is used to check whether a URI is on a given threatList.

Parameters
Name Description
request SearchUrisRequest
responseObserver io.grpc.stub.StreamObserver<SearchUrisResponse>