# Google Cloud Recommendation Engine V1beta1 Client - Class StockState (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 StockState.

Item stock state. If this field is unspecified, the item is
assumed to be in stock.

Protobuf type `google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState`

## Namespace

Google \\ Cloud \\ RecommendationEngine \\ V1beta1 \\ ProductCatalogItem

## Methods

### static::name

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

### static::value

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

## Constants

### STOCK_STATE_UNSPECIFIED

    Value: 0

Default item stock status. Should never be used.

Generated from protobuf enum `STOCK_STATE_UNSPECIFIED = 0;`

### IN_STOCK

    Value: 0

Item in stock.

Generated from protobuf enum `IN_STOCK = 0;`

### OUT_OF_STOCK

    Value: 1

Item out of stock.

Generated from protobuf enum `OUT_OF_STOCK = 1;`

### PREORDER

    Value: 2

Item that is in pre-order state.

Generated from protobuf enum `PREORDER = 2;`

### BACKORDER

    Value: 3

Item that is back-ordered (i.e. temporarily out of stock).

Generated from protobuf enum `BACKORDER = 3;`