public short listOffsetRequestVersion() {
        if (this.isAtLeast(IBP_3_9_IV0)) {
            return 9;
        } else if (this.isAtLeast(IBP_3_5_IV0)) {
            return 8;
        } else if (this.isAtLeast(IBP_3_0_IV1)) {
            return 7;
        } else if (this.isAtLeast(IBP_2_8_IV0)) {
            return 6;
        } else if (this.isAtLeast(IBP_2_2_IV1)) {
            return 5;
        } else if (this.isAtLeast(IBP_2_1_IV1)) {
            return 4;
        } else if (this.isAtLeast(IBP_2_0_IV1)) {
            return 3;
        } else if (this.isAtLeast(IBP_0_11_0_IV0)) {
            return 2;
        } else if (this.isAtLeast(IBP_0_10_1_IV2)) {
            return 1;
        } else {
            return 0;
        }
    }
An array containing all of the MetadataVersion entries.

This is essentially a cached copy of MetadataVersion.values. Unlike that function, it doesn't
allocate a new array each time.
server-common/src/main/java/org/apache/kafka/server/common/MetadataVersion.java