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

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

        return $this;
    }
public function setDataProtectionMode ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Redis \ V1beta1 \ FailoverInstanceRequest_DataProtectionMode :: class ) ; $ this -> data_protection_mode = $ var ; return $ this ; }
Optional. Available data protection modes that the user can choose. If it's
unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

Generated from protobuf field <code>.google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode data_protection_mode = 2;</code>
@param int $var
@return $this
Optional . Available data protection modes that the user can choose . If it s unspecified data protection mode will be LIMITED_DATA_LOSS by default .