@classmethod
def parse(cls, s, **kwargs):
    """
        Parse a bytes object and create a class object.

        :param bytes s: A bytes object.
        :return:        A class object.
        :rtype:         cls
        """
    pb2_obj = cls._get_cmsg()
    pb2_obj.ParseFromString(s)
    return cls.parse_from_cmessage(pb2_obj, **kwargs)
