public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) {
    UpdateScanConfigRequest request =
        UpdateScanConfigRequest.newBuilder()
            .setScanConfig(scanConfig)
            .setUpdateMask(updateMask)
            .build();
    return updateScanConfig(request);
  }
Updates a ScanConfig. This method support partial update of a ScanConfig.

<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 (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
  ScanConfig scanConfig = ScanConfig.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  ScanConfig response = webSecurityScannerClient.updateScanConfig(scanConfig, updateMask);
}
}</pre>

@param scanConfig Required. The ScanConfig to be updated. The name field must be set to
    identify the resource to be updated. The values of fields not covered by the mask will be
    ignored.
@param updateMask Required. The update mask applies to the resource. For the `FieldMask`
    definition, see
    https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java