code: static SecurityMarks deleteAndUpdateMarks(String assetName) {
      // String assetName = "organizations/123123342/assets/12312321";
      try (SecurityCenterClient client = SecurityCenterClient.create()) {
        // Start setting up a request to clear and update security marks for an asset.
        // Create security mark and field mask for clearing security marks.
        SecurityMarks securityMarks =
            SecurityMarks.newBuilder()
                .setName(assetName + "/securityMarks")
                .putMarks("key_a", "new_value_for_a")
                .build();
        FieldMask updateMask =
            FieldMask.newBuilder().addPaths("marks.key_a").addPaths("marks.key_b").build();
  
        UpdateSecurityMarksRequest request =
            UpdateSecurityMarksRequest.newBuilder()
                .setSecurityMarks(securityMarks)
                .setUpdateMask(updateMask)
                .build();
  
        // Call the API.
        SecurityMarks response = client.updateSecurityMarks(request);
  
        System.out.println("Security Marks updated and cleared:");
        System.out.println(response);
        return response;
      } catch (IOException e) {
        throw new RuntimeException("Couldn't create client.", e);
      }
    }
docs: [START delete_and_update_marks]