예제 #1
0
 /// <summary>Snippet for GetKnowledgeBase</summary>
 public void GetKnowledgeBase()
 {
     // Snippet: GetKnowledgeBase(string, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/knowledgeBases/[KNOWLEDGE_BASE]";
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.GetKnowledgeBase(name);
     // End snippet
 }
예제 #2
0
 /// <summary>Snippet for GetKnowledgeBase</summary>
 public void GetKnowledgeBaseResourceNames()
 {
     // Snippet: GetKnowledgeBase(KnowledgeBaseName, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     KnowledgeBaseName name = KnowledgeBaseName.FromProjectKnowledgeBase("[PROJECT]", "[KNOWLEDGE_BASE]");
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.GetKnowledgeBase(name);
     // End snippet
 }
예제 #3
0
 /// <summary>Snippet for GetKnowledgeBase</summary>
 public void GetKnowledgeBaseRequestObject()
 {
     // Snippet: GetKnowledgeBase(GetKnowledgeBaseRequest, CallSettings)
     // Create client
     KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
     // Initialize request argument(s)
     GetKnowledgeBaseRequest request = new GetKnowledgeBaseRequest
     {
         KnowledgeBaseName = KnowledgeBaseName.FromProjectKnowledgeBase("[PROJECT]", "[KNOWLEDGE_BASE]"),
     };
     // Make the request
     KnowledgeBase response = knowledgeBasesClient.GetKnowledgeBase(request);
     // End snippet
 }