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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Topic.PartitionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Topic.PartitionConfig build()
Returns
buildPartial()
public Topic.PartitionConfig buildPartial()
Returns
clear()
public Topic.PartitionConfig.Builder clear()
Returns
Overrides
clearCapacity()
public Topic.PartitionConfig.Builder clearCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Returns
clearCount()
public Topic.PartitionConfig.Builder clearCount()
Returns
clearDimension()
public Topic.PartitionConfig.Builder clearDimension()
Returns
clearField(Descriptors.FieldDescriptor field)
public Topic.PartitionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Topic.PartitionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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];
Returns
clone()
public Topic.PartitionConfig.Builder clone()
Returns
Overrides
getCapacity()
public Topic.PartitionConfig.Capacity getCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Returns
getCapacityBuilder()
public Topic.PartitionConfig.Capacity.Builder getCapacityBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Returns
getCapacityOrBuilder()
public Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Returns
getCount()
Returns
Type | Description |
long | The count.
|
getDefaultInstanceForType()
public Topic.PartitionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDimensionCase()
public Topic.PartitionConfig.DimensionCase getDimensionCase()
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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;
Parameter
Returns
mergeFrom(Topic.PartitionConfig other)
public Topic.PartitionConfig.Builder mergeFrom(Topic.PartitionConfig other)
Parameter
Returns
public Topic.PartitionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Topic.PartitionConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Topic.PartitionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setCount(long value)
public Topic.PartitionConfig.Builder setCount(long value)
Parameter
Name | Description |
value | long
The count to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Topic.PartitionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Topic.PartitionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Topic.PartitionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides