code: private static HttpTransportOptions getHttpTransportOptions(ConnectionParameters parameters) {
      HttpTransportOptions.Builder httpOptionsBuilder = HttpTransportOptions.newBuilder();
      httpOptionsBuilder.setConnectTimeout(parameters.getConnectionTimeout());
      httpOptionsBuilder.setReadTimeout(parameters.getReadTimeout());
  
      HttpTransportFactory httpTransportFactory = parameters.getHttpTransportFactory();
      if (httpTransportFactory != null) {
        httpOptionsBuilder.setHttpTransportFactory(httpTransportFactory);
      }
      return httpOptionsBuilder.build();
    }
docs: Creates and returns HttpTransportOptions from the given connection parameters.
  
  @param parameters
  the connection parameters
  @return the HttpTransportOptions