Google Cloud Recommendation Engine V1beta1 Client - Class CreateCatalogItemRequest (0.7.4)

Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class CreateCatalogItemRequest.

Request message for CreateCatalogItem method.

Generated from protobuf message google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest

Namespace

Google \ Cloud \ RecommendationEngine \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

↳ catalog_item Google\Cloud\RecommendationEngine\V1beta1\CatalogItem

Required. The catalog item to create.

getParent

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

Returns
Type Description
string

setParent

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

Parameter
Name Description
var string
Returns
Type Description
$this

getCatalogItem

Required. The catalog item to create.

Returns
Type Description
Google\Cloud\RecommendationEngine\V1beta1\CatalogItem|null

hasCatalogItem

clearCatalogItem

setCatalogItem

Required. The catalog item to create.

Parameter
Name Description
var Google\Cloud\RecommendationEngine\V1beta1\CatalogItem
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog. Please see Google\Cloud\RecommendationEngine\V1beta1\CatalogServiceClient::catalogName() for help formatting this field.

catalogItem Google\Cloud\RecommendationEngine\V1beta1\CatalogItem

Required. The catalog item to create.

Returns
Type Description
Google\Cloud\RecommendationEngine\V1beta1\CreateCatalogItemRequest