[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eRecommendationService.RecommendationServiceClient\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecommendationService.RecommendationServiceClient\u003c/code\u003e is a client for the RecommendationService, and it inherits from the \u003ccode\u003eClientBase\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors to create a client using various parameters, including \u003ccode\u003eCallInvoker\u003c/code\u003e, \u003ccode\u003eChannelBase\u003c/code\u003e, and \u003ccode\u003eClientBaseConfiguration\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey methods include \u003ccode\u003eRecommend\u003c/code\u003e, which makes a recommendation based on a contextual user event, and \u003ccode\u003eCreateLocationsClient\u003c/code\u003e which allows the creation of a new client for locations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRecommend\u003c/code\u003e method is available in both synchronous and asynchronous versions, allowing flexibility in handling recommendations within the application.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class RecommendationService.RecommendationServiceClient (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RecommendationService.RecommendationServiceClient)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.RecommendationService.RecommendationServiceClient) \n\n public class RecommendationService.RecommendationServiceClient : ClientBase\u003cRecommendationService.RecommendationServiceClient\u003e\n\nReference documentation and code samples for the Discovery Engine v1beta API class RecommendationService.RecommendationServiceClient.\n\nClient for RecommendationService \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \\\u003e [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[RecommendationService](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RecommendationService)[RecommendationServiceClient](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RecommendationService.RecommendationServiceClient) \\\u003e RecommendationService.RecommendationServiceClient \n\nInherited Members\n-----------------\n\n[ClientBase\\\u003cRecommendationService.RecommendationServiceClient\\\u003e.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) \n[ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### RecommendationServiceClient()\n\n protected RecommendationServiceClient()\n\nProtected parameterless constructor to allow creation of test doubles.\n\n### RecommendationServiceClient(CallInvoker)\n\n public RecommendationServiceClient(CallInvoker callInvoker)\n\nCreates a new client for RecommendationService that uses a custom `CallInvoker`.\n\n### RecommendationServiceClient(ChannelBase)\n\n public RecommendationServiceClient(ChannelBase channel)\n\nCreates a new client for RecommendationService\n\n### RecommendationServiceClient(ClientBaseConfiguration)\n\n protected RecommendationServiceClient(ClientBase.ClientBaseConfiguration configuration)\n\nProtected constructor to allow creation of configured clients.\n\nMethods\n-------\n\n### CreateLocationsClient()\n\n public virtual Locations.LocationsClient CreateLocationsClient()\n\nCreates a new instance of [Locations.LocationsClient](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) using the same call invoker as\nthis client.\n\n### NewInstance(ClientBaseConfiguration)\n\n protected override RecommendationService.RecommendationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)\n\nCreates a new instance of client from given `ClientBaseConfiguration`.\n\n**Overrides** \nGrpc.Core.ClientBase\\\u003cGoogle.Cloud.DiscoveryEngine.V1Beta.RecommendationService.RecommendationServiceClient\\\u003e.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)\n\n### Recommend(RecommendRequest, CallOptions)\n\n public virtual RecommendResponse Recommend(RecommendRequest request, CallOptions options)\n\nMakes a recommendation, which requires a contextual user event.\n\n### Recommend(RecommendRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual RecommendResponse Recommend(RecommendRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nMakes a recommendation, which requires a contextual user event.\n\n### RecommendAsync(RecommendRequest, CallOptions)\n\n public virtual AsyncUnaryCall\u003cRecommendResponse\u003e RecommendAsync(RecommendRequest request, CallOptions options)\n\nMakes a recommendation, which requires a contextual user event.\n\n### RecommendAsync(RecommendRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual AsyncUnaryCall\u003cRecommendResponse\u003e RecommendAsync(RecommendRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nMakes a recommendation, which requires a contextual user event."]]