/// <summary>Snippet for CreateWebhook</summary>
 public void CreateWebhook()
 {
     // Snippet: CreateWebhook(string, Webhook, CallSettings)
     // Create client
     WebhooksClient webhooksClient = WebhooksClient.Create();
     // Initialize request argument(s)
     string  parent  = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]";
     Webhook webhook = new Webhook();
     // Make the request
     Webhook response = webhooksClient.CreateWebhook(parent, webhook);
     // End snippet
 }
 /// <summary>Snippet for CreateWebhook</summary>
 public void CreateWebhookResourceNames()
 {
     // Snippet: CreateWebhook(AgentName, Webhook, CallSettings)
     // Create client
     WebhooksClient webhooksClient = WebhooksClient.Create();
     // Initialize request argument(s)
     AgentName parent  = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
     Webhook   webhook = new Webhook();
     // Make the request
     Webhook response = webhooksClient.CreateWebhook(parent, webhook);
     // End snippet
 }
 /// <summary>Snippet for CreateWebhook</summary>
 public void CreateWebhookRequestObject()
 {
     // Snippet: CreateWebhook(CreateWebhookRequest, CallSettings)
     // Create client
     WebhooksClient webhooksClient = WebhooksClient.Create();
     // Initialize request argument(s)
     CreateWebhookRequest request = new CreateWebhookRequest
     {
         ParentAsAgentName = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
         Webhook           = new Webhook(),
     };
     // Make the request
     Webhook response = webhooksClient.CreateWebhook(request);
     // End snippet
 }