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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCatalogItem

Required. The catalog item to create.

Returns
TypeDescription
Google\Cloud\RecommendationEngine\V1beta1\CatalogItem|null

hasCatalogItem

clearCatalogItem

setCatalogItem

Required. The catalog item to create.

Parameter
NameDescription
var Google\Cloud\RecommendationEngine\V1beta1\CatalogItem
Returns
TypeDescription
$this