public final ListKeyRingsPagedResponse listKeyRings(LocationName parent) {
    ListKeyRingsRequest request =
        ListKeyRingsRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .build();
    return listKeyRings(request);
  }
public final ListKeyRingsPagedResponse listKeyRings ( LocationName parent ) { ListKeyRingsRequest request = ListKeyRingsRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . build ( ) ; return listKeyRings ( request ) ; }
Lists [KeyRings][google.cloud.kms.v1.KeyRing].

<p>Sample code:

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

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