public static final class TopicPartitions.Builder extends GeneratedMessageV3.Builder<TopicPartitions.Builder> implements TopicPartitionsOrBuilder
Response for GetTopicPartitions.
Protobuf type google.cloud.pubsublite.v1.TopicPartitions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TopicPartitions.BuilderImplements
TopicPartitionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TopicPartitions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TopicPartitions.Builder |
build()
public TopicPartitions build()
Type | Description |
TopicPartitions |
buildPartial()
public TopicPartitions buildPartial()
Type | Description |
TopicPartitions |
clear()
public TopicPartitions.Builder clear()
Type | Description |
TopicPartitions.Builder |
clearField(Descriptors.FieldDescriptor field)
public TopicPartitions.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TopicPartitions.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TopicPartitions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TopicPartitions.Builder |
clearPartitionCount()
public TopicPartitions.Builder clearPartitionCount()
The number of partitions in the topic.
int64 partition_count = 1;
Type | Description |
TopicPartitions.Builder | This builder for chaining. |
clone()
public TopicPartitions.Builder clone()
Type | Description |
TopicPartitions.Builder |
getDefaultInstanceForType()
public TopicPartitions getDefaultInstanceForType()
Type | Description |
TopicPartitions |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getPartitionCount()
public long getPartitionCount()
The number of partitions in the topic.
int64 partition_count = 1;
Type | Description |
long | The partitionCount. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TopicPartitions other)
public TopicPartitions.Builder mergeFrom(TopicPartitions other)
Name | Description |
other | TopicPartitions |
Type | Description |
TopicPartitions.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TopicPartitions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TopicPartitions.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TopicPartitions.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TopicPartitions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TopicPartitions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TopicPartitions.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TopicPartitions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TopicPartitions.Builder |
setPartitionCount(long value)
public TopicPartitions.Builder setPartitionCount(long value)
The number of partitions in the topic.
int64 partition_count = 1;
Name | Description |
value | long The partitionCount to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TopicPartitions.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TopicPartitions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TopicPartitions.Builder |