def _unpack_user(v):
uv = v.uservalue()<EOL>email = unicode(uv.email().decode('<STR_LIT:utf-8>'))<EOL>auth_domain = unicode(uv.auth_domain().decode('<STR_LIT:utf-8>'))<EOL>obfuscated_gaiaid = uv.obfuscated_gaiaid().decode('<STR_LIT:utf-8>')<EOL>obfuscated_gaiaid = unicode(obfuscated_gaiaid)<EOL>federated_identity = None<EOL>if uv.has_federated_identity():<EOL><INDENT>federated_identity = unicode(<EOL>uv.federated_identity().decode('<STR_LIT:utf-8>'))<EOL><DEDENT>value = users.User(email=email,<EOL>_auth_domain=auth_domain,<EOL>_user_id=obfuscated_gaiaid,<EOL>federated_identity=federated_identity)<EOL>return value<EOL>
Internal helper to unpack a User value from a protocol buffer.