Class Topic.PartitionConfig.Capacity (1.11.2)

public static final class Topic.PartitionConfig.Capacity extends GeneratedMessageV3 implements Topic.PartitionConfig.CapacityOrBuilder

The throughput capacity configuration for each partition.

Protobuf type google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Topic.PartitionConfig.Capacity

Static Fields

PUBLISH_MIB_PER_SEC_FIELD_NUMBER

public static final int PUBLISH_MIB_PER_SEC_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIBE_MIB_PER_SEC_FIELD_NUMBER

public static final int SUBSCRIBE_MIB_PER_SEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Topic.PartitionConfig.Capacity getDefaultInstance()
Returns
TypeDescription
Topic.PartitionConfig.Capacity

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Topic.PartitionConfig.Capacity.Builder newBuilder()
Returns
TypeDescription
Topic.PartitionConfig.Capacity.Builder

newBuilder(Topic.PartitionConfig.Capacity prototype)

public static Topic.PartitionConfig.Capacity.Builder newBuilder(Topic.PartitionConfig.Capacity prototype)
Parameter
NameDescription
prototypeTopic.PartitionConfig.Capacity
Returns
TypeDescription
Topic.PartitionConfig.Capacity.Builder

parseDelimitedFrom(InputStream input)

public static Topic.PartitionConfig.Capacity parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Topic.PartitionConfig.Capacity parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Topic.PartitionConfig.Capacity parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Topic.PartitionConfig.Capacity parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Topic.PartitionConfig.Capacity parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Topic.PartitionConfig.Capacity parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Topic.PartitionConfig.Capacity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.PartitionConfig.Capacity
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Topic.PartitionConfig.Capacity> parser()
Returns
TypeDescription
Parser<Capacity>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Topic.PartitionConfig.Capacity getDefaultInstanceForType()
Returns
TypeDescription
Topic.PartitionConfig.Capacity

getParserForType()

public Parser<Topic.PartitionConfig.Capacity> getParserForType()
Returns
TypeDescription
Parser<Capacity>
Overrides

getPublishMibPerSec()

public int getPublishMibPerSec()

Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.

int32 publish_mib_per_sec = 1;

Returns
TypeDescription
int

The publishMibPerSec.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubscribeMibPerSec()

public int getSubscribeMibPerSec()

Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 32.

int32 subscribe_mib_per_sec = 2;

Returns
TypeDescription
int

The subscribeMibPerSec.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Topic.PartitionConfig.Capacity.Builder newBuilderForType()
Returns
TypeDescription
Topic.PartitionConfig.Capacity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Topic.PartitionConfig.Capacity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Topic.PartitionConfig.Capacity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Topic.PartitionConfig.Capacity.Builder toBuilder()
Returns
TypeDescription
Topic.PartitionConfig.Capacity.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException