/// <summary>Snippet for GetRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetRecommendationResourceNames()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     RecommendationName resourceName = RecommendationName.FromCustomerRecommendation("[CUSTOMER]", "[RECOMMENDATION]");
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(resourceName);
 }
Example #2
0
 /// <summary>Snippet for GetRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetRecommendation()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/recommendations/[RECOMMENDATION_ID]";
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(resourceName);
 }
 /// <summary>Snippet for GetRecommendation</summary>
 public void GetRecommendation()
 {
     // Snippet: GetRecommendation(string, CallSettings)
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/recommendations/[RECOMMENDATION]";
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetRecommendation</summary>
 public void GetRecommendationResourceNames()
 {
     // Snippet: GetRecommendation(RecommendationName, CallSettings)
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     RecommendationName resourceName = RecommendationName.FromCustomerRecommendation("[CUSTOMER_ID]", "[RECOMMENDATION_ID]");
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetRecommendationRequestObject()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     GetRecommendationRequest request = new GetRecommendationRequest
     {
         ResourceNameAsRecommendationName = RecommendationName.FromCustomerRecommendation("[CUSTOMER_ID]", "[RECOMMENDATION_ID]"),
     };
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(request);
 }