google-cloud-webrisk overview

com.google.cloud.webrisk.v1

The interfaces provided are listed below, along with usage samples.

WebRiskServiceClient

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

Sample for WebRiskServiceClient:


 try (WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.create()) {
   ThreatType threatType = ThreatType.forNumber(0);
   ByteString versionToken = ByteString.EMPTY;
   ComputeThreatListDiffRequest.Constraints constraints =
       ComputeThreatListDiffRequest.Constraints.newBuilder().build();
   ComputeThreatListDiffResponse response =
       webRiskServiceClient.computeThreatListDiff(threatType, versionToken, constraints);
 }
 

com.google.cloud.webrisk.v1.stub

com.google.cloud.webrisk.v1beta1

The interfaces provided are listed below, along with usage samples.

WebRiskServiceV1Beta1Client

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

Sample for WebRiskServiceV1Beta1Client:


 try (WebRiskServiceV1Beta1Client webRiskServiceV1Beta1Client =
     WebRiskServiceV1Beta1Client.create()) {
   ThreatType threatType = ThreatType.forNumber(0);
   ByteString versionToken = ByteString.EMPTY;
   ComputeThreatListDiffRequest.Constraints constraints =
       ComputeThreatListDiffRequest.Constraints.newBuilder().build();
   ComputeThreatListDiffResponse response =
       webRiskServiceV1Beta1Client.computeThreatListDiff(threatType, versionToken, constraints);
 }
 

com.google.cloud.webrisk.v1beta1.stub

com.google.webrisk.v1

com.google.webrisk.v1beta1