/// <summary>Snippet for MarkRecommendationSucceededAsync</summary> public async Task MarkRecommendationSucceededAsync() { // Snippet: MarkRecommendationSucceededAsync(string, IDictionary<string,string>, string, CallSettings) // Additional: MarkRecommendationSucceededAsync(string, IDictionary<string,string>, string, CancellationToken) // Create client RecommenderClient recommenderClient = await RecommenderClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/recommenders/[RECOMMENDER]/recommendations/[RECOMMENDATION]"; IDictionary <string, string> stateMetadata = new Dictionary <string, string> { { "", "" }, }; string etag = ""; // Make the request Recommendation response = await recommenderClient.MarkRecommendationSucceededAsync(name, stateMetadata, etag); // End snippet }
/// <summary>Snippet for MarkRecommendationSucceededAsync</summary> public async Task MarkRecommendationSucceededAsync_ResourceNames() { // Snippet: MarkRecommendationSucceededAsync(RecommendationName, IDictionary<string,string>, string, CallSettings) // Additional: MarkRecommendationSucceededAsync(RecommendationName, IDictionary<string,string>, string, CancellationToken) // Create client RecommenderClient recommenderClient = await RecommenderClient.CreateAsync(); // Initialize request argument(s) RecommendationName name = new RecommendationName("[PROJECT]", "[LOCATION]", "[RECOMMENDER]", "[RECOMMENDATION]"); IDictionary <string, string> stateMetadata = new Dictionary <string, string> { { "", "" }, }; string etag = ""; // Make the request Recommendation response = await recommenderClient.MarkRecommendationSucceededAsync(name, stateMetadata, etag); // End snippet }
/// <summary>Snippet for MarkRecommendationSucceededAsync</summary> public async Task MarkRecommendationSucceededAsync_RequestObject() { // Snippet: MarkRecommendationSucceededAsync(MarkRecommendationSucceededRequest, CallSettings) // Additional: MarkRecommendationSucceededAsync(MarkRecommendationSucceededRequest, CancellationToken) // Create client RecommenderClient recommenderClient = await RecommenderClient.CreateAsync(); // Initialize request argument(s) MarkRecommendationSucceededRequest request = new MarkRecommendationSucceededRequest { RecommendationName = new RecommendationName("[PROJECT]", "[LOCATION]", "[RECOMMENDER]", "[RECOMMENDATION]"), StateMetadata = { { "", "" }, }, Etag = "", }; // Make the request Recommendation response = await recommenderClient.MarkRecommendationSucceededAsync(request); // End snippet }