public static final class PartitionAssignment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder> implements PartitionAssignmentOrBuilder
PartitionAssignments should not race with acknowledgements. There should be exactly one unacknowledged PartitionAssignment at a time. If not, the client must break the stream.Protobuf type
google.cloud.pubsublite.v1.PartitionAssignment| Modifier and Type | Method and Description |
|---|---|
PartitionAssignment.Builder |
addAllPartitions(Iterable<? extends Long> values)
The list of partition numbers this subscriber is assigned to.
|
PartitionAssignment.Builder |
addPartitions(long value)
The list of partition numbers this subscriber is assigned to.
|
PartitionAssignment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PartitionAssignment |
build() |
PartitionAssignment |
buildPartial() |
PartitionAssignment.Builder |
clear() |
PartitionAssignment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PartitionAssignment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PartitionAssignment.Builder |
clearPartitions()
The list of partition numbers this subscriber is assigned to.
|
PartitionAssignment.Builder |
clone() |
PartitionAssignment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getPartitions(int index)
The list of partition numbers this subscriber is assigned to.
|
int |
getPartitionsCount()
The list of partition numbers this subscriber is assigned to.
|
List<Long> |
getPartitionsList()
The list of partition numbers this subscriber is assigned to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PartitionAssignment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PartitionAssignment.Builder |
mergeFrom(com.google.protobuf.Message other) |
PartitionAssignment.Builder |
mergeFrom(PartitionAssignment other) |
PartitionAssignment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PartitionAssignment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PartitionAssignment.Builder |
setPartitions(int index,
long value)
The list of partition numbers this subscriber is assigned to.
|
PartitionAssignment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PartitionAssignment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PartitionAssignment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PartitionAssignment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PartitionAssignment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder mergeFrom(PartitionAssignment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public PartitionAssignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PartitionAssignment.Builder>IOExceptionpublic List<Long> getPartitionsList()
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;getPartitionsList in interface PartitionAssignmentOrBuilderpublic int getPartitionsCount()
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;getPartitionsCount in interface PartitionAssignmentOrBuilderpublic long getPartitions(int index)
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;getPartitions in interface PartitionAssignmentOrBuilderindex - The index of the element to return.public PartitionAssignment.Builder setPartitions(int index, long value)
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;index - The index to set the value at.value - The partitions to set.public PartitionAssignment.Builder addPartitions(long value)
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;value - The partitions to add.public PartitionAssignment.Builder addAllPartitions(Iterable<? extends Long> values)
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;values - The partitions to add.public PartitionAssignment.Builder clearPartitions()
The list of partition numbers this subscriber is assigned to.
repeated int64 partitions = 1;public final PartitionAssignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>public final PartitionAssignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PartitionAssignment.Builder>Copyright © 2023 Google LLC. All rights reserved.