Class TopicPartitions

public final class TopicPartitions extends GeneratedMessageV3 implements TopicPartitionsOrBuilder

Response for GetTopicPartitions.

Protobuf type google.cloud.pubsublite.v1.TopicPartitions

Fields

PARTITION_COUNT_FIELD_NUMBER

public static final int PARTITION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

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

getDefaultInstance()

public static TopicPartitions getDefaultInstance()
Returns
TypeDescription
TopicPartitions

getDefaultInstanceForType()

public TopicPartitions getDefaultInstanceForType()
Returns
TypeDescription
TopicPartitions

getDescriptor()

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

getParserForType()

public Parser<TopicPartitions> getParserForType()
Returns
TypeDescription
Parser<TopicPartitions>
Overrides

getPartitionCount()

public long getPartitionCount()

The number of partitions in the topic.

int64 partition_count = 1;

Returns
TypeDescription
long

The partitionCount.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

newBuilder()

public static TopicPartitions.Builder newBuilder()
Returns
TypeDescription
TopicPartitions.Builder

newBuilder(TopicPartitions prototype)

public static TopicPartitions.Builder newBuilder(TopicPartitions prototype)
Parameter
NameDescription
prototypeTopicPartitions
Returns
TypeDescription
TopicPartitions.Builder

newBuilderForType()

public TopicPartitions.Builder newBuilderForType()
Returns
TypeDescription
TopicPartitions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TopicPartitions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TopicPartitions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

public static TopicPartitions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TopicPartitions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TopicPartitions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TopicPartitions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TopicPartitions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TopicPartitions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TopicPartitions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TopicPartitions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TopicPartitions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TopicPartitions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TopicPartitions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TopicPartitions> parser()
Returns
TypeDescription
Parser<TopicPartitions>

toBuilder()

public TopicPartitions.Builder toBuilder()
Returns
TypeDescription
TopicPartitions.Builder

writeTo(CodedOutputStream output)

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