Class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PredictRequest
Makes a recommendation prediction.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PredictRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2PredictResponse>, IClientServiceRequest<GoogleCloudRetailV2PredictResponse>, IClientServiceRequest
Constructors
PredictRequest(IClientService, GoogleCloudRetailV2PredictRequest, string)
Constructs a new Predict request.
Declaration
public PredictRequest(IClientService service, GoogleCloudRetailV2PredictRequest body, string placement)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2PredictRequest | 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()