# Google Cloud Recommendation Engine V1beta1 Client - Class CreateCatalogItemRequest (0.9.3)

0.9.3 (latest) 0.9.2 0.8.2 0.7.7 0.6.4 0.5.0 0.4.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### 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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.CatalogItem|null` |   |

### hasCatalogItem

### clearCatalogItem

### setCatalogItem

Required. The catalog item to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/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 CatalogServiceClient::catalogName() for help formatting this field. |
| `catalogItem` | `https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.CatalogItem` Required. The catalog item to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.CreateCatalogItemRequest` |   |