add optional
and optionalWithOptions
API interfaces
#2794
Merged
optional
and optionalWithOptions
API interfaces
#2794