code: public final ListKnowledgeBasesPagedResponse listKnowledgeBases(ProjectName parent) {
      ListKnowledgeBasesRequest request =
          ListKnowledgeBasesRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .build();
      return listKnowledgeBases(request);
    }
docs: Returns the list of all knowledge bases of the specified agent.
  
  <p>Sample code:
  
  <pre><code>
  try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
  ProjectName parent = ProjectName.of("[PROJECT]");
  for (KnowledgeBase element : knowledgeBasesClient.listKnowledgeBases(parent).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param parent Required. The project to list of knowledge bases for. Format:
  `projects/&lt;Project ID&gt;`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails