public static int getMethIdByName(String methodName) throws Exception {
        Integer methodId = rpcMethodMap.get(methodName);
        if (methodId == null) {
            throw new Exception(new StringBuilder(256)
                    .append("Unsupported method name ").append(methodName).toString());
        } else {
            return methodId;
        }
    }
Decode pb content

@param isRequest     whether a request message
@param methodId      the method id
@param bytes         the message content
@return              the message's object
@throws Exception    the exception while decoding messsage
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/codec/PbEnDecoder.java