Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource

The "placements" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource

Constructors

PlacementsResource(IClientService)

Constructs a new resource.

Declaration
public PlacementsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Predict(GoogleCloudRetailV2PredictRequest, string)

Makes a recommendation prediction.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.PredictRequest Predict(GoogleCloudRetailV2PredictRequest body, string placement)
Parameters
Type Name Description
GoogleCloudRetailV2PredictRequest body

The body of the request.

string 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

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.PredictRequest

Search(GoogleCloudRetailV2SearchRequest, string)

Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.SearchRequest Search(GoogleCloudRetailV2SearchRequest body, string placement)
Parameters
Type Name Description
GoogleCloudRetailV2SearchRequest body

The body of the request.

string placement

Required. The resource name of the Retail Search serving config, such as projects/*/locations/global/catalogs/default_catalog/servingConfigs/default_serving_config or the name of the legacy placement resource, such as projects/*/locations/global/catalogs/default_catalog/placements/default_search. This field is used to identify the serving config name and the set of models that are used to make the search.

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.PlacementsResource.SearchRequest
In this article
Back to top Generated by DocFX