Spanner/src/Admin/Database/V1/Database.php
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\Database_State::class);
        $this->state = $var;

        return $this;
    }
public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\Database_State::class);
        $this->state = $var;

        return $this;
    }
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Spanner \ Admin \ Database \ V1 \ Database_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Output only. The current database state.

Generated from protobuf field <code>.google.spanner.admin.database.v1.Database.State state = 2;</code>
@param int $var
@return $this
Output only . The current database state .