code: public final KnowledgeBase createKnowledgeBase(ProjectName parent, KnowledgeBase knowledgeBase) {
  
      CreateKnowledgeBaseRequest request =
          CreateKnowledgeBaseRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setKnowledgeBase(knowledgeBase)
              .build();
      return createKnowledgeBase(request);
    }
docs: Creates a knowledge base.
  
  <p>Sample code:
  
  <pre><code>
  try (KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.create()) {
  ProjectName parent = ProjectName.of("[PROJECT]");
  KnowledgeBase knowledgeBase = KnowledgeBase.newBuilder().build();
  KnowledgeBase response = knowledgeBasesClient.createKnowledgeBase(parent, knowledgeBase);
  }
  </code></pre>
  
  @param parent Required. The project to create a knowledge base for. Format:
  `projects/&lt;Project ID&gt;`.
  @param knowledgeBase Required. The knowledge base to create.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails