public function setDataProtectionMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Redis\V1beta1\FailoverInstanceRequest_DataProtectionMode::class);
        $this->data_protection_mode = $var;

        return $this;
    }