code: public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
      ListSnapshotsRequest request =
          ListSnapshotsRequest.newBuilder()
              .setProject(project == null ? null : project.toString())
              .build();
      return listSnapshots(request);
    }
docs: Lists the existing snapshots. Snapshots are used in &lt;a
  href="https://cloud.google.com/pubsub/docs/replay-overview"&gt;Seek&lt;/a&gt; operations, which
  allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment
  state of messages in an existing subscription to the state captured by a
  snapshot.&lt;br&gt;&lt;br&gt; &lt;b&gt;BETA:&lt;/b&gt; This feature is part of a beta release.
  This API might be changed in backward-incompatible ways and is not recommended for production
  use. It is not subject to any SLA or deprecation policy.
  
  <p>Sample code:
  
  <pre><code>
  try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  ProjectName project = ProjectName.of("[PROJECT]");
  for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param project The name of the project in which to list snapshots. Format is
  `projects/{project-id}`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails