public final ComputeThreatListDiffResponse computeThreatListDiff(
      ThreatType threatType,
      ByteString versionToken,
      ComputeThreatListDiffRequest.Constraints constraints) {
    ComputeThreatListDiffRequest request =
        ComputeThreatListDiffRequest.newBuilder()
            .setThreatType(threatType)
            .setVersionToken(versionToken)
            .setConstraints(constraints)
            .build();
    return computeThreatListDiff(request);
  }
Gets the most recent threat list diffs.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
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);
}
}</pre>

@param threatType The ThreatList to update.
@param versionToken The current version token of the client for the requested list (the client
    version that was received from the last successful diff).
@param constraints Required. The constraints associated with this request.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java