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

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 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
CatalogItem|null

hasCatalogItem

clearCatalogItem

setCatalogItem

Required. The catalog item to create.

Parameter
Name Description
var 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 CatalogServiceClient::catalogName() for help formatting this field.

catalogItem CatalogItem

Required. The catalog item to create.

Returns
Type Description
CreateCatalogItemRequest