'Rotate an image a given number of degrees clockwise.
Args:
degrees: int, must be a multiple of 90.
Raises:
TypeError when degrees is not either \'int\' or \'long\' types.
BadRequestError when there is something wrong with the given degrees or
if MAX_TRANSFORMS_PER_REQUEST transforms have already been requested.'

def rotate(self, degrees):

    if (not isinstance(degrees, (int, long))):
        raise TypeError('Degrees    must    be    integers.')
    if ((degrees % 90) != 0):
        raise BadRequestError('degrees    argument    must    be    multiple    of    90.')
    degrees = (degrees % 360)
    self._check_transform_limits()
    transform = images_service_pb.Transform()
    transform.set_rotate(degrees)
    self._transforms.append(transform)
