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