public static final class TopicPartitions.Builder extends GeneratedMessage.Builder<TopicPartitions.Builder> implements TopicPartitionsOrBuilderResponse for GetTopicPartitions.
Protobuf type google.cloud.pubsublite.v1.TopicPartitions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TopicPartitions.BuilderImplements
TopicPartitionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
getDefaultInstanceForType()
public TopicPartitions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TopicPartitions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPartitionCount()
public long getPartitionCount()The number of partitions in the topic.
int64 partition_count = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The partitionCount. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TopicPartitions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TopicPartitions.Builder |
|
setPartitionCount(long value)
public TopicPartitions.Builder setPartitionCount(long value)The number of partitions in the topic.
int64 partition_count = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe partitionCount to set. |
| Returns | |
|---|---|
| Type | Description |
TopicPartitions.Builder |
This builder for chaining. |