Issue #4277 : Change some apis to private.

Issue #4277 : Change some apis to private.