public final ListFieldsPagedResponse listFields(ParentName parent) {
    ListFieldsRequest request =
        ListFieldsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
    return listFields(request);
  }
public final ListFieldsPagedResponse listFields ( ParentName parent ) { ListFieldsRequest request = ListFieldsRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . build ( ) ; return listFields ( request ) ; }
Lists the field configuration and metadata for this database.

<p>Currently, [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
only supports listing fields that have been explicitly overridden. To issue this query, call
[FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields] with the
filter set to `indexConfig.usesAncestorConfig:false`.

<p>Sample code:

<pre><code>
try (FirestoreAdminClient firestoreAdminClient = FirestoreAdminClient.create()) {
ParentName parent = ParentName.of("[PROJECT]", "[DATABASE]", "[COLLECTION_ID]");
for (Field element : firestoreAdminClient.listFields(parent).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param parent A parent name of the form
`projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
@throws com.google.api.gax.rpc.ApiException if the remote call fails