Class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource
The "servingConfigs" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRetail.v2beta
Assembly: Google.Apis.CloudRetail.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource
Constructors
ServingConfigsResource(IClientService)
Constructs a new resource.
Declaration
public ServingConfigsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AddControl(GoogleCloudRetailV2betaAddControlRequest, string)
Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.AddControlRequest AddControl(GoogleCloudRetailV2betaAddControlRequest body, string servingConfig)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaAddControlRequest | body | The body of the request. |
string | servingConfig | Required. The source ServingConfig resource name . Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.AddControlRequest |
Create(GoogleCloudRetailV2betaServingConfig, string)
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.CreateRequest Create(GoogleCloudRetailV2betaServingConfig body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaServingConfig | body | The body of the request. |
string | parent | Required. Full resource name of parent. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.CreateRequest |
Delete(string)
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the ServingConfig to delete. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.DeleteRequest |
Get(string)
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the ServingConfig to get. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.GetRequest |
List(string)
Lists all ServingConfigs linked to this catalog.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The catalog resource name. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.ListRequest |
Patch(GoogleCloudRetailV2betaServingConfig, string)
Updates a ServingConfig.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PatchRequest Patch(GoogleCloudRetailV2betaServingConfig body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaServingConfig | body | The body of the request. |
string | name | Immutable. Fully qualified name |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PatchRequest |
Predict(GoogleCloudRetailV2betaPredictRequest, string)
Makes a recommendation prediction.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PredictRequest Predict(GoogleCloudRetailV2betaPredictRequest body, string placement)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaPredictRequest | body | The body of the request. |
string | placement | Required. Full resource name of the format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.PredictRequest |
RemoveControl(GoogleCloudRetailV2betaRemoveControlRequest, string)
Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.
Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.RemoveControlRequest RemoveControl(GoogleCloudRetailV2betaRemoveControlRequest body, string servingConfig)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaRemoveControlRequest | body | The body of the request. |
string | servingConfig | Required. The source ServingConfig resource name . Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.RemoveControlRequest |
Search(GoogleCloudRetailV2betaSearchRequest, 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.ServingConfigsResource.SearchRequest Search(GoogleCloudRetailV2betaSearchRequest body, string placement)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2betaSearchRequest | body | The body of the request. |
string | placement | Required. The resource name of the Retail Search serving config, such as
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.SearchRequest |