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