code: public final ListIntentsPagedResponse listIntents(String parent) {
      ListIntentsRequest request = ListIntentsRequest.newBuilder().setParent(parent).build();
      return listIntents(request);
    }
docs: Returns the list of all intents in the specified agent.
  
  <p>Sample code:
  
  <pre><code>
  try (IntentsClient intentsClient = IntentsClient.create()) {
  ProjectAgentName parent = ProjectAgentName.of("[PROJECT]");
  for (Intent element : intentsClient.listIntents(parent.toString()).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param parent Required. The agent to list all intents from. Format: `projects/&lt;Project
  ID&gt;/agent`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails