<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/redis/v1/cloud_redis.proto

namespace Google\Cloud\Redis\V1\Instance;

/**
 * Represents the different states of a Redis instance.
 *
 * Protobuf type <code>google.cloud.redis.v1.Instance.State</code>
 */
class State
{
    /**
     * Not set.
     *
     * Generated from protobuf enum <code>STATE_UNSPECIFIED = 0;</code>
     */
    const STATE_UNSPECIFIED = 0;
    /**
     * Redis instance is being created.
     *
     * Generated from protobuf enum <code>CREATING = 1;</code>
     */
    const CREATING = 1;
    /**
     * Redis instance has been created and is fully usable.
     *
     * Generated from protobuf enum <code>READY = 2;</code>
     */
    const READY = 2;
    /**
     * Redis instance configuration is being updated. Certain kinds of updates
     * may cause the instance to become unusable while the update is in
     * progress.
     *
     * Generated from protobuf enum <code>UPDATING = 3;</code>
     */
    const UPDATING = 3;
    /**
     * Redis instance is being deleted.
     *
     * Generated from protobuf enum <code>DELETING = 4;</code>
     */
    const DELETING = 4;
    /**
     * Redis instance is being repaired and may be unusable. Details can be
     * found in the `status_message` field.
     *
     * Generated from protobuf enum <code>REPAIRING = 5;</code>
     */
    const REPAIRING = 5;
    /**
     * Maintenance is being performed on this Redis instance.
     *
     * Generated from protobuf enum <code>MAINTENANCE = 6;</code>
     */
    const MAINTENANCE = 6;
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(State::class, \Google\Cloud\Redis\V1\Instance_State::class);

