public static PipeSubscribePollReq toTPipeSubscribeReq(final SubscriptionPollRequest request)
      throws IOException {
    final PipeSubscribePollReq req = new PipeSubscribePollReq();

    req.request = request;

    req.version = PipeSubscribeRequestVersion.VERSION_1.getVersion();
    req.type = PipeSubscribeRequestType.POLL.getType();
    req.body = SubscriptionPollRequest.serialize(request);

    return req;
  }
Serialize the incoming parameters into `PipeSubscribePollReq`, called by the subscription
client.
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/subscription/payload/request/PipeSubscribePollReq.java