code: @BetaApi
    public final ListXpnHostsProjectsPagedResponse listXpnHostsProjects(
        ProjectName project, ProjectsListXpnHostsRequest projectsListXpnHostsRequestResource) {
      ListXpnHostsProjectsHttpRequest request =
          ListXpnHostsProjectsHttpRequest.newBuilder()
              .setProject(project == null ? null : project.toString())
              .setProjectsListXpnHostsRequestResource(projectsListXpnHostsRequestResource)
              .build();
      return listXpnHostsProjects(request);
    }
docs: Lists all shared VPC host projects visible to the user in an organization.
  
  <p>Sample code:
  
  <pre><code>
  try (ProjectClient projectClient = ProjectClient.create()) {
  ProjectName project = ProjectName.of("[PROJECT]");
  ProjectsListXpnHostsRequest projectsListXpnHostsRequestResource = ProjectsListXpnHostsRequest.newBuilder().build();
  for (Project element : projectClient.listXpnHostsProjects(project, projectsListXpnHostsRequestResource).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param project Project ID for this request.
  @param projectsListXpnHostsRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails