code: public final CryptoKeyVersion destroyCryptoKeyVersion(CryptoKeyVersionName name) {
  
      DestroyCryptoKeyVersionRequest request =
          DestroyCryptoKeyVersionRequest.newBuilder()
              .setName(name == null ? null : name.toString())
              .build();
      return destroyCryptoKeyVersion(request);
    }
docs: Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction.
  
  <p>Upon calling this method,
  [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to
  [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED]
  and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be set to a time 24
  hours in the future, at which point the [state][google.cloud.kms.v1.CryptoKeyVersion.state]
  will be changed to
  [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED], and the key
  material will be irrevocably destroyed.
  
  <p>Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached,
  [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may
  be called to reverse the process.
  
  <p>Sample code:
  
  <pre><code>
  try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
  CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
  CryptoKeyVersion response = keyManagementServiceClient.destroyCryptoKeyVersion(name);
  }
  </code></pre>
  
  @param name The resource name of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
  to destroy.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails