public ListConsumerGroupOffsetsSpec topicPartitions(Collection<TopicPartition> topicPartitions) {
        this.topicPartitions = topicPartitions;
        return this;
    }
Set the topic partitions whose offsets are to be listed for a consumer group.
{@code null} includes all topic partitions.

@param topicPartitions List of topic partitions to include
@return This ListConsumerGroupOffsetSpec
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsSpec.java