docs: public String getEndpoint() {
          String url = this.endpoint;
          // if the set endpoint does not contain a protocol, append protocol to head of it
          if (this.endpoint != null && this.endpoint.length() > 0
                  && endpoint.indexOf("://") < 0) {
              url = protocol.toString().toLowerCase() + "://" + endpoint;
          }
          return url;
      }