Class TopicPartitions.Builder (1.7.1)

public static final class TopicPartitions.Builder extends GeneratedMessageV3.Builder<TopicPartitions.Builder> implements TopicPartitionsOrBuilder

Response for GetTopicPartitions.

Protobuf type google.cloud.pubsublite.v1.TopicPartitions

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TopicPartitions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TopicPartitions.Builder
Overrides

build()

public TopicPartitions build()
Returns
TypeDescription
TopicPartitions

buildPartial()

public TopicPartitions buildPartial()
Returns
TypeDescription
TopicPartitions

clear()

public TopicPartitions.Builder clear()
Returns
TypeDescription
TopicPartitions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TopicPartitions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TopicPartitions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TopicPartitions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TopicPartitions.Builder
Overrides

clearPartitionCount()

public TopicPartitions.Builder clearPartitionCount()

The number of partitions in the topic.

int64 partition_count = 1;

Returns
TypeDescription
TopicPartitions.Builder

This builder for chaining.

clone()

public TopicPartitions.Builder clone()
Returns
TypeDescription
TopicPartitions.Builder
Overrides

getDefaultInstanceForType()

public TopicPartitions getDefaultInstanceForType()
Returns
TypeDescription
TopicPartitions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartitionCount()

public long getPartitionCount()

The number of partitions in the topic.

int64 partition_count = 1;

Returns
TypeDescription
long

The partitionCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TopicPartitions other)

public TopicPartitions.Builder mergeFrom(TopicPartitions other)
Parameter
NameDescription
otherTopicPartitions
Returns
TypeDescription
TopicPartitions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TopicPartitions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TopicPartitions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TopicPartitions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TopicPartitions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TopicPartitions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TopicPartitions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TopicPartitions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TopicPartitions.Builder
Overrides

setPartitionCount(long value)

public TopicPartitions.Builder setPartitionCount(long value)

The number of partitions in the topic.

int64 partition_count = 1;

Parameter
NameDescription
valuelong

The partitionCount to set.

Returns
TypeDescription
TopicPartitions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TopicPartitions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TopicPartitions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TopicPartitions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TopicPartitions.Builder
Overrides