def PackUser(name, value, pbvalue):
 pbvalue.mutable_uservalue().set_email(value.email().encode('utf-8'))
 pbvalue.mutable_uservalue().set_auth_domain(value.auth_domain().encode('utf-8'))
 pbvalue.mutable_uservalue().set_gaiaid(0)
 if (value.user_id() is not None):
  pbvalue.mutable_uservalue().set_obfuscated_gaiaid(value.user_id().encode('utf-8'))
 if (value.federated_identity() is not None):
  pbvalue.mutable_uservalue().set_federated_identity(value.federated_identity().encode('utf-8'))
 if (value.federated_provider() is not None):
  pbvalue.mutable_uservalue().set_federated_provider(value.federated_provider().encode('utf-8'))

def PackUser ( name , value , pbvalue ) : pbvalue . mutable_uservalue ( ) . set_email ( value . email ( ) . encode ( 'utf-8' ) ) pbvalue . mutable_uservalue ( ) . set_auth_domain ( value . auth_domain ( ) . encode ( 'utf-8' ) ) pbvalue . mutable_uservalue ( ) . set_gaiaid ( 0 ) if ( value . user_id ( ) is not None ) : pbvalue . mutable_uservalue ( ) . set_obfuscated_gaiaid ( value . user_id ( ) . encode ( 'utf-8' ) ) if ( value . federated_identity ( ) is not None ) : pbvalue . mutable_uservalue ( ) . set_federated_identity ( value . federated_identity ( ) . encode ( 'utf-8' ) ) if ( value . federated_provider ( ) is not None ) : pbvalue . mutable_uservalue ( ) . set_federated_provider ( value . federated_provider ( ) . encode ( 'utf-8' ) )
packs a user property into a entity_pb .