Package io.streamnative.oxia.proto
Class NamespaceShardsAssignment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
io.streamnative.oxia.proto.NamespaceShardsAssignment.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,NamespaceShardsAssignmentOrBuilder,Cloneable
- Enclosing class:
- NamespaceShardsAssignment
public static final class NamespaceShardsAssignment.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
implements NamespaceShardsAssignmentOrBuilder
The shards assignments for a given namespaceProtobuf type
io.streamnative.oxia.proto.NamespaceShardsAssignment-
Method Summary
Modifier and TypeMethodDescriptionaddAllAssignments(Iterable<? extends ShardAssignment> values) All assignments in the response stream will contain all the assignments to bring the client up to date.addAssignments(int index, ShardAssignment value) All assignments in the response stream will contain all the assignments to bring the client up to date.addAssignments(int index, ShardAssignment.Builder builderForValue) All assignments in the response stream will contain all the assignments to bring the client up to date.addAssignments(ShardAssignment value) All assignments in the response stream will contain all the assignments to bring the client up to date.addAssignments(ShardAssignment.Builder builderForValue) All assignments in the response stream will contain all the assignments to bring the client up to date.All assignments in the response stream will contain all the assignments to bring the client up to date.addAssignmentsBuilder(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()All assignments in the response stream will contain all the assignments to bring the client up to date.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Indicates the mechanism by which the keys are assigned to the individual shards.clone()getAssignments(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.getAssignmentsBuilder(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.All assignments in the response stream will contain all the assignments to bring the client up to date.intAll assignments in the response stream will contain all the assignments to bring the client up to date.All assignments in the response stream will contain all the assignments to bring the client up to date.getAssignmentsOrBuilder(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.List<? extends ShardAssignmentOrBuilder>All assignments in the response stream will contain all the assignments to bring the client up to date.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIndicates the mechanism by which the keys are assigned to the individual shards.intIndicates the mechanism by which the keys are assigned to the individual shards.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAssignments(int index) All assignments in the response stream will contain all the assignments to bring the client up to date.setAssignments(int index, ShardAssignment value) All assignments in the response stream will contain all the assignments to bring the client up to date.setAssignments(int index, ShardAssignment.Builder builderForValue) All assignments in the response stream will contain all the assignments to bring the client up to date.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setShardKeyRouter(ShardKeyRouter value) Indicates the mechanism by which the keys are assigned to the individual shards.setShardKeyRouterValue(int value) Indicates the mechanism by which the keys are assigned to the individual shards.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
setField
public NamespaceShardsAssignment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
clearField
public NamespaceShardsAssignment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
clearOneof
public NamespaceShardsAssignment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
setRepeatedField
public NamespaceShardsAssignment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
addRepeatedField
public NamespaceShardsAssignment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NamespaceShardsAssignment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
mergeFrom
public NamespaceShardsAssignment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NamespaceShardsAssignment.Builder>- Throws:
IOException
-
getAssignmentsList
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;- Specified by:
getAssignmentsListin interfaceNamespaceShardsAssignmentOrBuilder
-
getAssignmentsCount
public int getAssignmentsCount()All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;- Specified by:
getAssignmentsCountin interfaceNamespaceShardsAssignmentOrBuilder
-
getAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;- Specified by:
getAssignmentsin interfaceNamespaceShardsAssignmentOrBuilder
-
setAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
setAssignments
public NamespaceShardsAssignment.Builder setAssignments(int index, ShardAssignment.Builder builderForValue) All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAssignments
public NamespaceShardsAssignment.Builder addAssignments(int index, ShardAssignment.Builder builderForValue) All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAllAssignments
public NamespaceShardsAssignment.Builder addAllAssignments(Iterable<? extends ShardAssignment> values) All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
clearAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
removeAssignments
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsBuilder
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsOrBuilder
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;- Specified by:
getAssignmentsOrBuilderin interfaceNamespaceShardsAssignmentOrBuilder
-
getAssignmentsOrBuilderList
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1;- Specified by:
getAssignmentsOrBuilderListin interfaceNamespaceShardsAssignmentOrBuilder
-
addAssignmentsBuilder
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
addAssignmentsBuilder
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getAssignmentsBuilderList
All assignments in the response stream will contain all the assignments to bring the client up to date. For example, if a shard is split, the stream will return a single response containing all the new shard assignments as opposed to multiple stream responses, each containing a single shard assignment.
repeated .io.streamnative.oxia.proto.ShardAssignment assignments = 1; -
getShardKeyRouterValue
public int getShardKeyRouterValue()Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Specified by:
getShardKeyRouterValuein interfaceNamespaceShardsAssignmentOrBuilder- Returns:
- The enum numeric value on the wire for shardKeyRouter.
-
setShardKeyRouterValue
Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Parameters:
value- The enum numeric value on the wire for shardKeyRouter to set.- Returns:
- This builder for chaining.
-
getShardKeyRouter
Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Specified by:
getShardKeyRouterin interfaceNamespaceShardsAssignmentOrBuilder- Returns:
- The shardKeyRouter.
-
setShardKeyRouter
Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Parameters:
value- The shardKeyRouter to set.- Returns:
- This builder for chaining.
-
clearShardKeyRouter
Indicates the mechanism by which the keys are assigned to the individual shards.
.io.streamnative.oxia.proto.ShardKeyRouter shard_key_router = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final NamespaceShardsAssignment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-
mergeUnknownFields
public final NamespaceShardsAssignment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceShardsAssignment.Builder>
-