# Google Cloud Retail V2 Client - Class ServingState (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class ServingState.

The serving state of the model.

Protobuf type `google.cloud.retail.v2.Model.ServingState`

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ Model

## Methods

### static::name

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

### static::value

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

## Constants

### SERVING_STATE_UNSPECIFIED

    Value: 0

Unspecified serving state.

Generated from protobuf enum `SERVING_STATE_UNSPECIFIED = 0;`

### INACTIVE

    Value: 1

The model is not serving.

Generated from protobuf enum `INACTIVE = 1;`

### ACTIVE

    Value: 2

The model is serving and can be queried.

Generated from protobuf enum `ACTIVE = 2;`

### TUNED

    Value: 3

The model is trained on tuned hyperparameters and can be
queried.

Generated from protobuf enum `TUNED = 3;`