Redis/src/V1beta1/Instance.php
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Redis\V1beta1\Instance_State::class);
        $this->state = $var;

        return $this;
    }
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Redis\V1beta1\Instance_State::class);
        $this->state = $var;

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Redis \ V1beta1 \ Instance_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Output only. The current state of this instance.

Generated from protobuf field <code>.google.cloud.redis.v1beta1.Instance.State state = 14;</code>
@param int $var
@return $this
Output only . The current state of this instance .