Class ProjectsResource.LocationsResource.DataStoresResource.ServingConfigsResource.RecommendRequest
Makes a recommendation, which requires a contextual user event.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1beta
Assembly: Google.Apis.DiscoveryEngine.v1beta.dll
Syntax
public class ProjectsResource.LocationsResource.DataStoresResource.ServingConfigsResource.RecommendRequest : DiscoveryEngineBaseServiceRequest<GoogleCloudDiscoveryengineV1betaRecommendResponse>, IClientServiceRequest<GoogleCloudDiscoveryengineV1betaRecommendResponse>, IClientServiceRequest
Constructors
RecommendRequest(IClientService, GoogleCloudDiscoveryengineV1betaRecommendRequest, string)
Constructs a new Recommend request.
Declaration
public RecommendRequest(IClientService service, GoogleCloudDiscoveryengineV1betaRecommendRequest body, string servingConfig)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDiscoveryengineV1betaRecommendRequest | body | |
string | servingConfig |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ServingConfig
Required. Full resource name of a ServingConfig:
projects/*/locations/global/collections/*/engines/*/servingConfigs/*
, or
projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*
One default
serving config is created along with your recommendation engine creation. The engine ID is
used as the ID of the default serving config. For example, for Engine
projects/*/locations/global/collections/*/engines/my-engine
, you can use
projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine
for
your RecommendationService.Recommend requests.
Declaration
[RequestParameter("servingConfig", RequestParameterType.Path)]
public virtual string ServingConfig { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Recommend parameter list.
Declaration
protected override void InitParameters()