Esempio n. 1
0
 /// <summary>Snippet for CreateKnowledgeBase</summary>
 public void CreateKnowledgeBase()
 {
     // Snippet: CreateKnowledgeBase(string, KnowledgeBase, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     string        parent        = "projects/[PROJECT]";
     KnowledgeBase knowledgeBase = new KnowledgeBase();
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.CreateKnowledgeBase(parent, knowledgeBase);
     // End snippet
 }
Esempio n. 2
0
 /// <summary>Snippet for CreateKnowledgeBase</summary>
 public void CreateKnowledgeBaseResourceNames2()
 {
     // Snippet: CreateKnowledgeBase(LocationName, KnowledgeBase, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     LocationName  parent        = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
     KnowledgeBase knowledgeBase = new KnowledgeBase();
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.CreateKnowledgeBase(parent, knowledgeBase);
     // End snippet
 }
Esempio n. 3
0
 /// <summary>Snippet for CreateKnowledgeBase</summary>
 public void CreateKnowledgeBaseRequestObject()
 {
     // Snippet: CreateKnowledgeBase(CreateKnowledgeBaseRequest, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     CreateKnowledgeBaseRequest request = new CreateKnowledgeBaseRequest
     {
         ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
         KnowledgeBase       = new KnowledgeBase(),
     };
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.CreateKnowledgeBase(request);
     // End snippet
 }