code: @BetaApi
    public final Subnetwork getSubnetwork(String subnetwork) {
  
      GetSubnetworkHttpRequest request =
          GetSubnetworkHttpRequest.newBuilder().setSubnetwork(subnetwork).build();
      return getSubnetwork(request);
    }
docs: Returns the specified subnetwork. Gets a list of available subnetworks list() request.
  
  <p>Sample code:
  
  <pre><code>
  try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
  ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
  Subnetwork response = subnetworkClient.getSubnetwork(subnetwork.toString());
  }
  </code></pre>
  
  @param subnetwork Name of the Subnetwork resource to return.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails