public CurrentAssignmentBuilder withOwnedTopicPartitions(
        List<ConsumerGroupHeartbeatRequestData.TopicPartitions> ownedTopicPartitions
    ) {
        this.ownedTopicPartitions = ownedTopicPartitions;
        return this;
    }
Sets the partitions currently owned by the member. This comes directly
from the last ConsumerGroupHeartbeat request. This is used to determine
if the member has revoked the necessary partitions.

@param ownedTopicPartitions A list of topic-partitions.
@return This object.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java