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()
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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public TopicPartitions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TopicPartitions.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TopicPartitions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
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. |
clone()
public TopicPartitions.Builder clone()
Returns | |
---|---|
Type | Description |
TopicPartitions.Builder |
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TopicPartitions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TopicPartitions.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final TopicPartitions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TopicPartitions.Builder |