parameters: (thrift_obj, proto_factory=Consts.PROTO_FACTORY)
return_statement: return Serializer.serialize(proto_factory(), thrift_obj)
docstring: Serialize thrift data to binary blob
  
      :param thrift_obj: the thrift object
      :param proto_factory: protocol factory, set default as Compact Protocol
  
      :return: string the serialized thrift payload
docstring_summary: Serialize thrift data to binary blob
docstring_tokens: Serialize thrift data to binary blob
function: def serialize_thrift_object(thrift_obj, proto_factory=Consts.PROTO_FACTORY):
      """Serialize thrift data to binary blob
  
      :param thrift_obj: the thrift object
      :param proto_factory: protocol factory, set default as Compact Protocol
  
      :return: string the serialized thrift payload
      """
  
      return Serializer.serialize(proto_factory(), thrift_obj)
function_tokens: def serialize_thrift_object ( thrift_obj , proto_factory = Consts . PROTO_FACTORY ) : return Serializer . serialize ( proto_factory ( ) , thrift_obj )