public final ScanConfig updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) {

    UpdateScanConfigRequest request =
        UpdateScanConfigRequest.newBuilder()
            .setScanConfig(scanConfig)
            .setUpdateMask(updateMask)
            .build();
    return updateScanConfig(request);
  }
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>
try (WebSecurityScannerClient webSecurityScannerClient = WebSecurityScannerClient.create()) {
ScanConfig scanConfig = ScanConfig.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
ScanConfig response = webSecurityScannerClient.updateScanConfig(scanConfig, updateMask);
}
</code></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