def ScoresGet(self, request):
   entity = Score.get_by_id(request.id)
   if entity is None:
     raise endpoints.NotFoundException('Score not found.')
   return entity.ToMessage()