code: func (Serializer) Marshal(m pilosa.Message) ([]byte, error) {
  	pm := encodeToProto(m)
  	if pm == nil {
  		return nil, errors.New("passed invalid pilosa.Message")
  	}
  	buf, err := proto.Marshal(pm)
  	return buf, errors.Wrap(err, "marshalling")
  }
docs: // Marshal turns pilosa messages into protobuf serialized bytes.