# Class PartitionConfig (1.13.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.13.0 (latest)](https://docs.cloud.google.com/python/docs/reference/pubsublite/latest/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.12.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.12.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.11.1](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.11.1/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.10.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.10.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.9.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.9.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.8.3](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.8.3/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.7.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.7.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.6.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.6.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.5.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.5.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.4.3](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.4.3/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.3.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.3.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.2.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.2.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.1.4](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.1.4/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/pubsublite/1.0.2/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.6.1](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.6.1/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.5.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.5.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.4.1](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.4.1/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.3.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.3.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.2.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.2.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)
- [0.1.0](https://docs.cloud.google.com/python/docs/reference/pubsublite/0.1.0/google.cloud.pubsublite_v1.Topic.PartitionConfig)

    PartitionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The settings for a topic's partitions.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `count :noindex:` | `int` The number of partitions in the topic. Must be at least 1. Once a topic has been created the number of partitions can be increased but not decreased. Message ordering is not guaranteed across a topic resize. For more information see https://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity |
| `scale :noindex:` | `int` DEPRECATED: Use capacity instead which can express a superset of configurations. Every partition in the topic is allocated throughput equivalent to `scale` times the standard partition throughput (4 MiB/s). This is also reflected in the cost of this topic; a topic with `scale` of 2 and count of 10 is charged for 20 partitions. This value must be in the range \[1,4\]. This field is a member of `oneof`_ `dimension`. |
| `capacity :noindex:` | `google.cloud.pubsublite_v1.types.Topic.PartitionConfig.Capacity` The capacity configuration. This field is a member of `oneof`_ `dimension`. |

## Classes

### Capacity

    Capacity(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The throughput capacity configuration for each partition.