code: @BetaApi
    public final ListLicensesPagedResponse listLicenses(String project) {
      ListLicensesHttpRequest request =
          ListLicensesHttpRequest.newBuilder().setProject(project).build();
      return listLicenses(request);
    }
docs: Retrieves the list of licenses available in the specified project. This method does not get any
  licenses that belong to other projects, including licenses attached to publicly-available
  images, like Debian 9. If you want to get a list of publicly-available licenses, use this
  method to make a request to the respective image project, such as debian-cloud or
  windows-cloud.
  
  <p>Sample code:
  
  <pre><code>
  try (LicenseClient licenseClient = LicenseClient.create()) {
  ProjectName project = ProjectName.of("[PROJECT]");
  for (License element : licenseClient.listLicenses(project.toString()).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param project Project ID for this request.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails