code: private TProtocol createTProtocol(TTransport transport) {
  		if (tProtocolType == TProtocolType.BINARY) {
  			return new TBinaryProtocol(transport);
  		} else if (tProtocolType == TProtocolType.JSON) {
  			return new TJSONProtocol(transport);
  		}
  		throw new IllegalStateException("暂不支持的管道类型：" + tProtocolType);
  	}
docs: 根据配置创建thrift管道的方法