Interface Topic.PartitionConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Topic.PartitionConfig
,Topic.PartitionConfig.Builder
- Enclosing class:
- Topic
public static interface Topic.PartitionConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Topic.PartitionConfig.Capacity
getCapacity()
The capacity configuration.Topic.PartitionConfig.CapacityOrBuilder
getCapacityOrBuilder()
The capacity configuration.long
getCount()
The number of partitions in the topic.Topic.PartitionConfig.DimensionCase
getDimensionCase()
int
getScale()
Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated.boolean
hasCapacity()
The capacity configuration.boolean
hasScale()
Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCount
long getCount()
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
int64 count = 1;
- Returns:
- The count.
-
hasScale
@Deprecated boolean hasScale()
Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See google/cloud/pubsublite/v1/common.proto;l=138DEPRECATED: 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].
int32 scale = 2 [deprecated = true];
- Returns:
- Whether the scale field is set.
-
getScale
@Deprecated int getScale()
Deprecated.google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See google/cloud/pubsublite/v1/common.proto;l=138DEPRECATED: 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].
int32 scale = 2 [deprecated = true];
- Returns:
- The scale.
-
hasCapacity
boolean hasCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
- Returns:
- Whether the capacity field is set.
-
getCapacity
Topic.PartitionConfig.Capacity getCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
- Returns:
- The capacity.
-
getCapacityOrBuilder
Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
-
getDimensionCase
Topic.PartitionConfig.DimensionCase getDimensionCase()
-
-