synchronized int assignmentId() {
        return assignmentId;
    }
Monotonically increasing id which is incremented after every assignment change. This can
be used to check when an assignment has changed.

@return The current assignment Id
clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java