/// <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);
 }
Beispiel #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 GetRecommendationResourceNames()
 {
     // 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);
 }
 /// <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]", "[RECOMMENDATION]");
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(resourceName);
     // End snippet
 }
 /// <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
 }
Beispiel #5
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 GetRecommendationRequestObject()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     GetRecommendationRequest request = new GetRecommendationRequest
     {
         ResourceNameAsRecommendationName = RecommendationName.FromCustomerRecommendation("[CUSTOMER]", "[RECOMMENDATION]"),
     };
     // Make the request
     Recommendation response = recommendationServiceClient.GetRecommendation(request);
 }
 /// <summary>Snippet for ApplyRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void ApplyRecommendation()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <ApplyRecommendationOperation> operations = new ApplyRecommendationOperation[]
     {
         new ApplyRecommendationOperation(),
     };
     // Make the request
     ApplyRecommendationResponse response = recommendationServiceClient.ApplyRecommendation(customerId, operations);
 }
 /// <summary>Snippet for DismissRecommendation</summary>
 public void DismissRecommendation()
 {
     // Snippet: DismissRecommendation(string, IEnumerable<DismissRecommendationRequest.Types.DismissRecommendationOperation>, CallSettings)
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <DismissRecommendationRequest.Types.DismissRecommendationOperation> operations = new DismissRecommendationRequest.Types.DismissRecommendationOperation[]
     {
         new DismissRecommendationRequest.Types.DismissRecommendationOperation(),
     };
     // Make the request
     DismissRecommendationResponse response = recommendationServiceClient.DismissRecommendation(customerId, operations);
     // End snippet
 }
Beispiel #8
0
 /// <summary>Snippet for ApplyRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void ApplyRecommendationRequestObject()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     ApplyRecommendationRequest request = new ApplyRecommendationRequest
     {
         CustomerId = "",
         Operations =
         {
             new ApplyRecommendationOperation(),
         },
         PartialFailure = false,
     };
     // Make the request
     ApplyRecommendationResponse response = recommendationServiceClient.ApplyRecommendation(request);
 }
 /// <summary>Snippet for DismissRecommendation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void DismissRecommendationRequestObject()
 {
     // Create client
     RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.Create();
     // Initialize request argument(s)
     DismissRecommendationRequest request = new DismissRecommendationRequest
     {
         CustomerId     = "",
         PartialFailure = false,
         Operations     =
         {
             new DismissRecommendationRequest.Types.DismissRecommendationOperation(),
         },
     };
     // Make the request
     DismissRecommendationResponse response = recommendationServiceClient.DismissRecommendation(request);
 }