public static final class Topic.PartitionConfig extends GeneratedMessageV3 implements Topic.PartitionConfigOrBuilder
The settings for a topic's partitions.
Protobuf type google.cloud.pubsublite.v1.Topic.PartitionConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Topic.PartitionConfigImplements
Topic.PartitionConfigOrBuilderStatic Fields
CAPACITY_FIELD_NUMBER
public static final int CAPACITY_FIELD_NUMBER
Type | Description |
int |
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
Type | Description |
int |
SCALE_FIELD_NUMBER
public static final int SCALE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Topic.PartitionConfig getDefaultInstance()
Type | Description |
Topic.PartitionConfig |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Topic.PartitionConfig.Builder newBuilder()
Type | Description |
Topic.PartitionConfig.Builder |
newBuilder(Topic.PartitionConfig prototype)
public static Topic.PartitionConfig.Builder newBuilder(Topic.PartitionConfig prototype)
Name | Description |
prototype | Topic.PartitionConfig |
Type | Description |
Topic.PartitionConfig.Builder |
parseDelimitedFrom(InputStream input)
public static Topic.PartitionConfig parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Topic.PartitionConfig parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Topic.PartitionConfig parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Topic.PartitionConfig parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Topic.PartitionConfig parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Topic.PartitionConfig parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Topic.PartitionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.PartitionConfig |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Topic.PartitionConfig> parser()
Type | Description |
Parser<PartitionConfig> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getCapacity()
public Topic.PartitionConfig.Capacity getCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
Type | Description |
Topic.PartitionConfig.Capacity | The capacity. |
getCapacityOrBuilder()
public Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
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;
Type | Description |
long | The count. |
getDefaultInstanceForType()
public Topic.PartitionConfig getDefaultInstanceForType()
Type | Description |
Topic.PartitionConfig |
getDimensionCase()
public Topic.PartitionConfig.DimensionCase getDimensionCase()
Type | Description |
Topic.PartitionConfig.DimensionCase |
getParserForType()
public Parser<Topic.PartitionConfig> getParserForType()
Type | Description |
Parser<PartitionConfig> |
getScale() (deprecated)
public int getScale()
Deprecated. google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See google/cloud/pubsublite/v1/common.proto;l=139
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];
Type | Description |
int | The scale. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasCapacity()
public boolean hasCapacity()
The capacity configuration.
.google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3;
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=139
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];
Type | Description |
boolean | Whether the scale field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Topic.PartitionConfig.Builder newBuilderForType()
Type | Description |
Topic.PartitionConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Topic.PartitionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Topic.PartitionConfig.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Topic.PartitionConfig.Builder toBuilder()
Type | Description |
Topic.PartitionConfig.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |