Allow change the endpoint_type when use swift-dispersion tools

Fixes bug 1102319
DocImpact

Change-Id: I8fb0417ab9468e97ed01a6cb1e262630905e7f29
Merge "Allow change the endpoint_type when use swift-dispersion tools"