public static int getServiceIdByServiceName(String serviceName) throws Exception {
        Integer serviceId = rpcServiceMap.get(serviceName);
        if (serviceId == null) {
            throw new Exception(new StringBuilder(256)
                    .append("Unsupported service name ").append(serviceName).toString());
        } else {
            return serviceId;
        }
    }
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