public static RpcTypeEnum acquireByName(final String name) {
        return Arrays.stream(RpcTypeEnum.values())
            .filter(e -> e.support && e.name.equals(name)).findFirst()
            .orElseThrow(() -> new ShenyuException(String.format(" this rpc type can not support %s", name)));
    }
acquireByName.

@param name this is rpc type
@return RpcTypeEnum rpc type enum
shenyu-common/src/main/java/org/apache/shenyu/common/enums/RpcTypeEnum.java