public final UnaryCallable<GetNetworkPeeringRequest, NetworkPeering> getNetworkPeeringCallable() {
    return stub.getNetworkPeeringCallable();
  }
Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of
the network peering, such as peered networks, import and export custom route configurations,
and peering state. 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()) {
  GetNetworkPeeringRequest request =
      GetNetworkPeeringRequest.newBuilder()
          .setName(
              NetworkPeeringName.of("[PROJECT]", "[LOCATION]", "[NETWORK_PEERING]").toString())
          .build();
  ApiFuture<NetworkPeering> future =
      vmwareEngineClient.getNetworkPeeringCallable().futureCall(request);
  // Do something.
  NetworkPeering response = future.get();
}
}</pre>
java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java