code: static ImmutableList<ListAssetsResult> listAssetsAsOfYesterday(
        OrganizationName organizationName, Instant asOf) {
      try (SecurityCenterClient client = SecurityCenterClient.create()) {
        // Start setting up a request for to search for all assets in an organization.
        // OrganizationName organizationName = OrganizationName.of(/*organizationId=*/"123234324");
  
        // Initialize the builder with the organization and filter
        ListAssetsRequest.Builder request =
            ListAssetsRequest.newBuilder()
                .setParent(organizationName.toString())
                .setFilter(
                    "security_center_properties.resource_type=\"google.cloud.resourcemanager.Project\"");
  
        // Set read time to either the instant passed in or one day ago.
        asOf = MoreObjects.firstNonNull(asOf, Instant.now().minus(Duration.ofDays(1)));
        request.getReadTimeBuilder().setSeconds(asOf.getEpochSecond()).setNanos(asOf.getNano());
  
        // Call the API.
        ListAssetsPagedResponse response = client.listAssets(request.build());
  
        // This creates one list for all assets.  If your organization has a large number of assets
        // this can cause out of memory issues.  You can process them incrementally by returning
        // the Iterable returned response.iterateAll() directly.
        ImmutableList<ListAssetsResult> results = ImmutableList.copyOf(response.iterateAll());
        System.out.println("Projects:");
        System.out.println(results);
        return results;
      } catch (IOException e) {
        throw new RuntimeException("Couldn't create client.", e);
      }
    }
docs: [START list_assets_as_of_time]