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