public static PipeSubscribeHandshakeReq fromTPipeSubscribeReq(
      final TPipeSubscribeReq handshakeReq) {
    final PipeSubscribeHandshakeReq req = new PipeSubscribeHandshakeReq();

    if (Objects.nonNull(handshakeReq.body) && handshakeReq.body.hasRemaining()) {
      req.consumerConfig = ConsumerConfig.deserialize(handshakeReq.body);
    }

    req.version = handshakeReq.version;
    req.type = handshakeReq.type;
    req.body = handshakeReq.body;

    return req;
  }
Deserialize `TPipeSubscribeReq` to obtain parameters, called by the subscription server.
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/subscription/payload/request/PipeSubscribeHandshakeReq.java