public List<MethodContext> unaryMethods() {
        List<MethodContext> list = new ArrayList<>();
        for (MethodContext m : methods) {
            if ((!m.isManyInput() && !m.isManyOutput())) {
                list.add(m);
            }
        }
        return list;
    }
Template class for proto Service objects.
compiler/src/main/java/com/alipay/sofa/gen/domain/ServiceContext.java