@Override
        public MessageId getValue() {
            switch (gaugeType) {
                case COMMITTED_OFFSET:
                    return pts.getCommittedOffset();
                case CURRENT_OFFSET:
                    return pts.getOffset();
                default:
                    throw new RuntimeException("Unknown gauge type: " + gaugeType);
            }
        }
Gauge for getting the offset of a PulsarTopicState.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/pulsar/src/main/java/org/apache/inlong/sort/pulsar/internal/PulsarFetcher.java