Class TopicPartitions.Builder (1.13.8)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TopicPartitions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TopicPartitions.Builder
Overrides

build()

public TopicPartitions build()
Returns
Type Description
TopicPartitions

buildPartial()

public TopicPartitions buildPartial()
Returns
Type Description
TopicPartitions

clear()

public TopicPartitions.Builder clear()
Returns
Type Description
TopicPartitions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TopicPartitions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TopicPartitions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TopicPartitions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TopicPartitions.Builder
Overrides

clearPartitionCount()

public TopicPartitions.Builder clearPartitionCount()

The number of partitions in the topic.

int64 partition_count = 1;

Returns
Type Description
TopicPartitions.Builder

This builder for chaining.

clone()

public TopicPartitions.Builder clone()
Returns
Type Description
TopicPartitions.Builder
Overrides

getDefaultInstanceForType()

public TopicPartitions getDefaultInstanceForType()
Returns
Type Description
TopicPartitions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPartitionCount()

public long getPartitionCount()

The number of partitions in the topic.

int64 partition_count = 1;

Returns
Type Description
long

The partitionCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TopicPartitions other)

public TopicPartitions.Builder mergeFrom(TopicPartitions other)
Parameter
Name Description
other TopicPartitions
Returns
Type Description
TopicPartitions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TopicPartitions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TopicPartitions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TopicPartitions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TopicPartitions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TopicPartitions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TopicPartitions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TopicPartitions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TopicPartitions.Builder
Overrides

setPartitionCount(long value)

public TopicPartitions.Builder setPartitionCount(long value)

The number of partitions in the topic.

int64 partition_count = 1;

Parameter
Name Description
value long

The partitionCount to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TopicPartitions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TopicPartitions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TopicPartitions.Builder
Overrides