public String methodNameUpperUnderscore() {
        StringBuilder s = new StringBuilder();
        for (int i = 0; i < methodName.length(); i++) {
            char c = methodName.charAt(i);
            s.append(Character.toUpperCase(c));
            if ((i < methodName.length() - 1) && Character.isLowerCase(c)
                && Character.isUpperCase(methodName.charAt(i + 1))) {
                s.append('_');
            }
        }
        return s.toString();
    }
Template class for proto RPC objects.
compiler/src/main/java/com/alipay/sofa/gen/domain/MethodContext.java