ProjectsLocationsCatalogsServingConfigs
class ProjectsLocationsCatalogsServingConfigs extends Resource (View source)
The "servingConfigs" collection of methods.
Typical usage is:
$retailService = new Google\Service\CloudRetail(...);
$servingConfigs = $retailService->projects_locations_catalogs_servingConfigs;
Methods
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.
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. (servingConfigs.delete)
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. (servingConfigs.get)
Lists all ServingConfigs linked to this catalog.
Updates a ServingConfig. (servingConfigs.patch)
Makes a recommendation prediction. (servingConfigs.predict)
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. (servingConfigs.removeControl)
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. (servingConfigs.search)
Details
GoogleCloudRetailV2ServingConfig
addControl(string $servingConfig, GoogleCloudRetailV2AddControlRequest $postBody, array $optParams = [])
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.
(servingConfigs.addControl)
GoogleCloudRetailV2ServingConfig
create(string $parent, GoogleCloudRetailV2ServingConfig $postBody, array $optParams = [])
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
(servingConfigs.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. (servingConfigs.delete)
GoogleCloudRetailV2ServingConfig
get(string $name, array $optParams = [])
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. (servingConfigs.get)
GoogleCloudRetailV2ListServingConfigsResponse
listProjectsLocationsCatalogsServingConfigs(string $parent, array $optParams = [])
Lists all ServingConfigs linked to this catalog.
(servingConfigs.listProjectsLocationsCatalogsServingConfigs)
GoogleCloudRetailV2ServingConfig
patch(string $name, GoogleCloudRetailV2ServingConfig $postBody, array $optParams = [])
Updates a ServingConfig. (servingConfigs.patch)
GoogleCloudRetailV2PredictResponse
predict(string $placement, GoogleCloudRetailV2PredictRequest $postBody, array $optParams = [])
Makes a recommendation prediction. (servingConfigs.predict)
GoogleCloudRetailV2ServingConfig
removeControl(string $servingConfig, GoogleCloudRetailV2RemoveControlRequest $postBody, array $optParams = [])
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. (servingConfigs.removeControl)
GoogleCloudRetailV2SearchResponse
search(string $placement, GoogleCloudRetailV2SearchRequest $postBody, array $optParams = [])
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. (servingConfigs.search)