public static Request buildRequest(String[] methodArgSigs, Object[] methodArgs, String serialization,
                                       Serializer serializer, int backOffset) {
        Request.Builder builder = Request.newBuilder();
        builder.setSerializeType(serialization);
        for (int i = 0; i < methodArgSigs.length - backOffset; i++) {
            Object arg = methodArgs[i];
            ByteString argByteString = ByteString.copyFrom(serializer.encode(arg, null).array());
            builder.addArgs(argByteString);
            builder.addArgTypes(methodArgSigs[i]);
        }
        return builder.build();
    }
Gets the stream call type of certain method

@param method the method
@return call type,server/client/bidirectional stream or default value. If not mapped to any stream call type, use the default value
remoting/remoting-triple/src/main/java/com/alipay/sofa/rpc/utils/SofaProtoUtils.java