Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See
google/cloud/pubsublite/v1/common.proto;l=138
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].
Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See
google/cloud/pubsublite/v1/common.proto;l=138
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].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface Topic.PartitionConfigOrBuilder (1.15.13)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.13 (latest)](/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.15.12](/java/docs/reference/google-cloud-pubsublite/1.15.12/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.14.8](/java/docs/reference/google-cloud-pubsublite/1.14.8/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.13.8](/java/docs/reference/google-cloud-pubsublite/1.13.8/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.12.22](/java/docs/reference/google-cloud-pubsublite/1.12.22/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.11.2](/java/docs/reference/google-cloud-pubsublite/1.11.2/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.10.0](/java/docs/reference/google-cloud-pubsublite/1.10.0/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.9.4](/java/docs/reference/google-cloud-pubsublite/1.9.4/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.8.0](/java/docs/reference/google-cloud-pubsublite/1.8.0/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.7.1](/java/docs/reference/google-cloud-pubsublite/1.7.1/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.6.3](/java/docs/reference/google-cloud-pubsublite/1.6.3/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.5.5](/java/docs/reference/google-cloud-pubsublite/1.5.5/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder)\n- [1.4.12](/java/docs/reference/google-cloud-pubsublite/1.4.12/com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder) \n\n public static interface Topic.PartitionConfigOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCapacity()\n\n public abstract Topic.PartitionConfig.Capacity getCapacity()\n\nThe capacity configuration.\n\n`.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;`\n\n### getCapacityOrBuilder()\n\n public abstract Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder()\n\nThe capacity configuration.\n\n`.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;`\n\n### getCount()\n\n public abstract long getCount()\n\nThe number of partitions in the topic. Must be at least 1.\n\nOnce a topic has been created the number of partitions can be increased\nbut not decreased. Message ordering is not guaranteed across a topic\nresize. For more information see\n\u003chttps://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity\u003e\n\n`int64 count = 1;`\n\n### getDimensionCase()\n\n public abstract Topic.PartitionConfig.DimensionCase getDimensionCase()\n\n### getScale() (deprecated)\n\n public abstract int getScale()\n\n**Deprecated.** *google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See\ngoogle/cloud/pubsublite/v1/common.proto;l=138*\n\nDEPRECATED: Use capacity instead which can express a superset of\nconfigurations.\n\nEvery partition in the topic is allocated throughput equivalent to\n`scale` times the standard partition throughput (4 MiB/s). This is also\nreflected in the cost of this topic; a topic with `scale` of 2 and\ncount of 10 is charged for 20 partitions. This value must be in the\nrange \\[1,4\\].\n\n`int32 scale = 2 [deprecated = true];`\n\n### hasCapacity()\n\n public abstract boolean hasCapacity()\n\nThe capacity configuration.\n\n`.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;`\n\n### hasScale() (deprecated)\n\n public abstract boolean hasScale()\n\n**Deprecated.** *google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See\ngoogle/cloud/pubsublite/v1/common.proto;l=138*\n\nDEPRECATED: Use capacity instead which can express a superset of\nconfigurations.\n\nEvery partition in the topic is allocated throughput equivalent to\n`scale` times the standard partition throughput (4 MiB/s). This is also\nreflected in the cost of this topic; a topic with `scale` of 2 and\ncount of 10 is charged for 20 partitions. This value must be in the\nrange \\[1,4\\].\n\n`int32 scale = 2 [deprecated = true];`"]]