/// <summary>Snippet for MarkRecommendationFailedAsync</summary> public async Task MarkRecommendationFailedAsync() { // Snippet: MarkRecommendationFailedAsync(string, IDictionary<string,string>, string, CallSettings) // Additional: MarkRecommendationFailedAsync(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.MarkRecommendationFailedAsync(name, stateMetadata, etag); // End snippet }
/// <summary>Snippet for MarkRecommendationFailedAsync</summary> public async Task MarkRecommendationFailedAsync_ResourceNames() { // Snippet: MarkRecommendationFailedAsync(RecommendationName, IDictionary<string,string>, string, CallSettings) // Additional: MarkRecommendationFailedAsync(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.MarkRecommendationFailedAsync(name, stateMetadata, etag); // End snippet }
/// <summary>Snippet for MarkRecommendationFailedAsync</summary> public async Task MarkRecommendationFailedAsync_RequestObject() { // Snippet: MarkRecommendationFailedAsync(MarkRecommendationFailedRequest, CallSettings) // Additional: MarkRecommendationFailedAsync(MarkRecommendationFailedRequest, CancellationToken) // Create client RecommenderClient recommenderClient = await RecommenderClient.CreateAsync(); // Initialize request argument(s) MarkRecommendationFailedRequest request = new MarkRecommendationFailedRequest { RecommendationName = new RecommendationName("[PROJECT]", "[LOCATION]", "[RECOMMENDER]", "[RECOMMENDATION]"), StateMetadata = { { "", "" }, }, Etag = "", }; // Make the request Recommendation response = await recommenderClient.MarkRecommendationFailedAsync(request); // End snippet }