code: public final CryptoKeyVersion updateCryptoKeyVersion(
        CryptoKeyVersion cryptoKeyVersion, FieldMask updateMask) {
  
      UpdateCryptoKeyVersionRequest request =
          UpdateCryptoKeyVersionRequest.newBuilder()
              .setCryptoKeyVersion(cryptoKeyVersion)
              .setUpdateMask(updateMask)
              .build();
      return updateCryptoKeyVersion(request);
    }
docs: Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata.
  
  <p>[state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between
  [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and
  [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] using this
  method. See
  [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and
  [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to
  move between other states.
  
  <p>Sample code:
  
  <pre><code>
  try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
  CryptoKeyVersion cryptoKeyVersion = CryptoKeyVersion.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  CryptoKeyVersion response = keyManagementServiceClient.updateCryptoKeyVersion(cryptoKeyVersion, updateMask);
  }
  </code></pre>
  
  @param cryptoKeyVersion [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with updated
  values.
  @param updateMask Required list of fields to be updated in this request.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails