public static final class Topic.PartitionConfig.Builder extends GeneratedMessageV3.Builder<Topic.PartitionConfig.Builder> implements Topic.PartitionConfigOrBuilder
The settings for a topic's partitions.
Protobuf type google.cloud.pubsublite.v1.Topic.PartitionConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Topic.PartitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Topic.PartitionConfig build()
buildPartial()
public Topic.PartitionConfig buildPartial()
clear()
public Topic.PartitionConfig.Builder clear()
Overrides
clearCapacity()
public Topic.PartitionConfig.Builder clearCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
clearCount()
public Topic.PartitionConfig.Builder clearCount()
clearDimension()
public Topic.PartitionConfig.Builder clearDimension()
clearField(Descriptors.FieldDescriptor field)
public Topic.PartitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Topic.PartitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearScale() (deprecated)
public Topic.PartitionConfig.Builder clearScale()
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].
int32 scale = 2 [deprecated = true];
clone()
public Topic.PartitionConfig.Builder clone()
Overrides
getCapacity()
public Topic.PartitionConfig.Capacity getCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
getCapacityBuilder()
public Topic.PartitionConfig.Capacity.Builder getCapacityBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
getCapacityOrBuilder()
public Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
getCount()
Returns |
---|
Type | Description |
long | The count.
|
getDefaultInstanceForType()
public Topic.PartitionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDimensionCase()
public Topic.PartitionConfig.DimensionCase getDimensionCase()
getScale() (deprecated)
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].
int32 scale = 2 [deprecated = true];
Returns |
---|
Type | Description |
int | The scale.
|
hasCapacity()
public boolean hasCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Returns |
---|
Type | Description |
boolean | Whether the capacity field is set.
|
hasScale() (deprecated)
public boolean hasScale()
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].
int32 scale = 2 [deprecated = true];
Returns |
---|
Type | Description |
boolean | Whether the scale field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCapacity(Topic.PartitionConfig.Capacity value)
public Topic.PartitionConfig.Builder mergeCapacity(Topic.PartitionConfig.Capacity value)
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
mergeFrom(Topic.PartitionConfig other)
public Topic.PartitionConfig.Builder mergeFrom(Topic.PartitionConfig other)
public Topic.PartitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Topic.PartitionConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Topic.PartitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCapacity(Topic.PartitionConfig.Capacity value)
public Topic.PartitionConfig.Builder setCapacity(Topic.PartitionConfig.Capacity value)
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
setCapacity(Topic.PartitionConfig.Capacity.Builder builderForValue)
public Topic.PartitionConfig.Builder setCapacity(Topic.PartitionConfig.Capacity.Builder builderForValue)
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
setCount(long value)
public Topic.PartitionConfig.Builder setCount(long value)
Parameter |
---|
Name | Description |
value | long
The count to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Topic.PartitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Topic.PartitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setScale(int value) (deprecated)
public Topic.PartitionConfig.Builder setScale(int value)
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].
int32 scale = 2 [deprecated = true];
Parameter |
---|
Name | Description |
value | int
The scale to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Topic.PartitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides