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. 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.

<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 (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);
}
}</pre>

@param threatType Required. The threat list to update. Only a single ThreatType should be
    specified per request. If you want to handle multiple ThreatTypes, you must make one
    request per ThreatType.
@param versionToken The current version token of the client for the requested list (the client
    version that was received from the last successful diff). If the client does not have a
    version token (this is the first time calling ComputeThreatListDiff), this may be left
    empty and a full database snapshot will be returned.
@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/v1/WebRiskServiceClient.java