Deprecate endpoint_proto

Deperecate the endpoint_proto parameter and use endpoint_protocol instead.