public final ListNetworkPeeringsPagedResponse listNetworkPeerings(String parent) {
    ListNetworkPeeringsRequest request =
        ListNetworkPeeringsRequest.newBuilder().setParent(parent).build();
    return listNetworkPeerings(request);
  }
Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and
location can only be global.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
  String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
  for (NetworkPeering element : vmwareEngineClient.listNetworkPeerings(parent).iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>

@param parent Required. The resource name of the location (global) to query for network
    peerings. Resource names are schemeless URIs that follow the conventions in
    https://cloud.google.com/apis/design/resource_names. For example:
    `projects/my-project/locations/global`
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java