/// <summary>Snippet for GetIntent</summary> public void GetIntent1() { // Snippet: GetIntent(IntentName,CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) IntentName name = new IntentName("[PROJECT]", "[INTENT]"); // Make the request Intent response = intentsClient.GetIntent(name); // End snippet }
/// <summary>Snippet for GetIntent</summary> public void GetIntent() { // Snippet: GetIntent(string, CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/intents/[INTENT]"; // Make the request Intent response = intentsClient.GetIntent(name); // End snippet }
/// <summary>Snippet for GetIntent</summary> public void GetIntentResourceNames() { // Snippet: GetIntent(IntentName, CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) IntentName name = IntentName.FromProjectLocationAgentIntent("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]"); // Make the request Intent response = intentsClient.GetIntent(name); // End snippet }
/// <summary>Snippet for GetIntent</summary> public void GetIntent_RequestObject() { // Snippet: GetIntent(GetIntentRequest,CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) GetIntentRequest request = new GetIntentRequest { IntentName = new IntentName("[PROJECT]", "[INTENT]"), }; // Make the request Intent response = intentsClient.GetIntent(request); // End snippet }
/// <summary>Snippet for GetIntent</summary> public void GetIntentRequestObject() { // Snippet: GetIntent(GetIntentRequest, CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) GetIntentRequest request = new GetIntentRequest { IntentName = IntentName.FromProjectLocationAgentIntent("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]"), LanguageCode = "", }; // Make the request Intent response = intentsClient.GetIntent(request); // End snippet }