The Transgender Persons (Protection of Rights) Act, 2019 (Act) protects the rights of transgender persons by giving them right to self perceived identity and safeguards them against discrimination, the Union government told the Karnataka High Court on Monday, defending the law.