code: private static AddressClient.ListAddressesPagedResponse listAddresses(AddressClient client) {
      System.out.println("Listing addresses:");
      ProjectRegionName regionName =
          ProjectRegionName.newBuilder().setRegion(REGION).setProject(PROJECT_NAME).build();
      ListAddressesHttpRequest listRequest =
          ListAddressesHttpRequest.newBuilder().setRegion(regionName.toString()).build();
      AddressClient.ListAddressesPagedResponse response = client.listAddresses(listRequest);
      for (Address address : response.iterateAll()) {
        System.out.println("\t - " + address.toString());
      }
      return response;
    }
docs: List Addresses in the under the project PROJECT_NAME and region REGION.