public final ListCryptoKeysPagedResponse listCryptoKeys(KeyRingName parent) {
    ListCryptoKeysRequest request =
        ListCryptoKeysRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .build();
    return listCryptoKeys(request);
  }
public final ListCryptoKeysPagedResponse listCryptoKeys ( KeyRingName parent ) { ListCryptoKeysRequest request = ListCryptoKeysRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . build ( ) ; return listCryptoKeys ( request ) ; }
Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].

<p>Sample code:

<pre><code>
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
KeyRingName parent = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]");
for (CryptoKey element : keyManagementServiceClient.listCryptoKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param parent Required. The resource name of the [KeyRing][google.cloud.kms.v1.KeyRing] to
list, in the format `projects/&#42;/locations/&#42;/keyRings/&#42;`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails