Class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.PredictRequest
Makes a recommendation prediction.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRetail.v2beta
Assembly: Google.Apis.CloudRetail.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.PredictRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2betaPredictResponse>, IClientServiceRequest<GoogleCloudRetailV2betaPredictResponse>, IClientServiceRequest
Constructors
PredictRequest(IClientService, GoogleCloudRetailV2betaPredictRequest, string)
Constructs a new Predict request.
Declaration
public PredictRequest(IClientService service, GoogleCloudRetailV2betaPredictRequest body, string placement)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2betaPredictRequest | body | |
string | placement |
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
Placement
Required. Full resource name of the format:
{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}
or
{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}
. We
recommend using the servingConfigs
resource. placements
is a legacy resource. The ID of
the Recommendations AI serving config or placement. Before you can request predictions from
your model, you must create at least one serving config or placement for it. For more
information, see [Manage serving configs]
(https://cloud.google.com/retail/docs/manage-configs). The full list of available serving
configs can be seen at
https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs
Declaration
[RequestParameter("placement", RequestParameterType.Path)]
public virtual string Placement { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Predict parameter list.
Declaration
protected override void InitParameters()