/// <summary>Snippet for MatchIntentAsync</summary> public async Task MatchIntentRequestObjectAsync() { // Snippet: MatchIntentAsync(MatchIntentRequest, CallSettings) // Additional: MatchIntentAsync(MatchIntentRequest, CancellationToken) // Create client SessionsClient sessionsClient = await SessionsClient.CreateAsync(); // Initialize request argument(s) MatchIntentRequest request = new MatchIntentRequest { SessionAsSessionName = SessionName.FromProjectLocationAgentSession("[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]"), QueryParams = new QueryParameters(), QueryInput = new QueryInput(), }; // Make the request MatchIntentResponse response = await sessionsClient.MatchIntentAsync(request); // End snippet }