@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FetchMetadata that = (FetchMetadata) o;
        return sessionId == that.sessionId && epoch == that.epoch;
    }
Returns true if this is a full fetch request.
clients/src/main/java/org/apache/kafka/common/requests/FetchMetadata.java