public static final class RaftCmdpb.SplitRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder> implements RaftCmdpb.SplitRequestOrBuilder
raft_cmdpb.SplitRequest
Modifier and Type | Method and Description |
---|---|
RaftCmdpb.SplitRequest.Builder |
addAllNewPeerIds(Iterable<? extends Long> values)
The peer ids for the new split region.
|
RaftCmdpb.SplitRequest.Builder |
addNewPeerIds(long value)
The peer ids for the new split region.
|
RaftCmdpb.SplitRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RaftCmdpb.SplitRequest |
build() |
RaftCmdpb.SplitRequest |
buildPartial() |
RaftCmdpb.SplitRequest.Builder |
clear() |
RaftCmdpb.SplitRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RaftCmdpb.SplitRequest.Builder |
clearNewPeerIds()
The peer ids for the new split region.
|
RaftCmdpb.SplitRequest.Builder |
clearNewRegionId()
We split the region into two, first uses the origin
parent region id, and the second uses the new_region_id.
|
RaftCmdpb.SplitRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RaftCmdpb.SplitRequest.Builder |
clearRightDerive()
Deprecated.
|
RaftCmdpb.SplitRequest.Builder |
clearSplitKey()
This can be only called in internal RaftStore now.
|
RaftCmdpb.SplitRequest.Builder |
clone() |
RaftCmdpb.SplitRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getNewPeerIds(int index)
The peer ids for the new split region.
|
int |
getNewPeerIdsCount()
The peer ids for the new split region.
|
List<Long> |
getNewPeerIdsList()
The peer ids for the new split region.
|
long |
getNewRegionId()
We split the region into two, first uses the origin
parent region id, and the second uses the new_region_id.
|
boolean |
getRightDerive()
Deprecated.
|
com.google.protobuf.ByteString |
getSplitKey()
This can be only called in internal RaftStore now.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RaftCmdpb.SplitRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RaftCmdpb.SplitRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
RaftCmdpb.SplitRequest.Builder |
mergeFrom(RaftCmdpb.SplitRequest other) |
RaftCmdpb.SplitRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RaftCmdpb.SplitRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RaftCmdpb.SplitRequest.Builder |
setNewPeerIds(int index,
long value)
The peer ids for the new split region.
|
RaftCmdpb.SplitRequest.Builder |
setNewRegionId(long value)
We split the region into two, first uses the origin
parent region id, and the second uses the new_region_id.
|
RaftCmdpb.SplitRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RaftCmdpb.SplitRequest.Builder |
setRightDerive(boolean value)
Deprecated.
|
RaftCmdpb.SplitRequest.Builder |
setSplitKey(com.google.protobuf.ByteString value)
This can be only called in internal RaftStore now.
|
RaftCmdpb.SplitRequest.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RaftCmdpb.SplitRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RaftCmdpb.SplitRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RaftCmdpb.SplitRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder mergeFrom(RaftCmdpb.SplitRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public RaftCmdpb.SplitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RaftCmdpb.SplitRequest.Builder>
IOException
public com.google.protobuf.ByteString getSplitKey()
This can be only called in internal RaftStore now. The split_key must be in the been splitting region.
bytes split_key = 1;
getSplitKey
in interface RaftCmdpb.SplitRequestOrBuilder
public RaftCmdpb.SplitRequest.Builder setSplitKey(com.google.protobuf.ByteString value)
This can be only called in internal RaftStore now. The split_key must be in the been splitting region.
bytes split_key = 1;
value
- The splitKey to set.public RaftCmdpb.SplitRequest.Builder clearSplitKey()
This can be only called in internal RaftStore now. The split_key must be in the been splitting region.
bytes split_key = 1;
public long getNewRegionId()
We split the region into two, first uses the origin parent region id, and the second uses the new_region_id. We must guarantee that the new_region_id is global unique.
uint64 new_region_id = 2;
getNewRegionId
in interface RaftCmdpb.SplitRequestOrBuilder
public RaftCmdpb.SplitRequest.Builder setNewRegionId(long value)
We split the region into two, first uses the origin parent region id, and the second uses the new_region_id. We must guarantee that the new_region_id is global unique.
uint64 new_region_id = 2;
value
- The newRegionId to set.public RaftCmdpb.SplitRequest.Builder clearNewRegionId()
We split the region into two, first uses the origin parent region id, and the second uses the new_region_id. We must guarantee that the new_region_id is global unique.
uint64 new_region_id = 2;
public List<Long> getNewPeerIdsList()
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
getNewPeerIdsList
in interface RaftCmdpb.SplitRequestOrBuilder
public int getNewPeerIdsCount()
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
getNewPeerIdsCount
in interface RaftCmdpb.SplitRequestOrBuilder
public long getNewPeerIds(int index)
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
getNewPeerIds
in interface RaftCmdpb.SplitRequestOrBuilder
index
- The index of the element to return.public RaftCmdpb.SplitRequest.Builder setNewPeerIds(int index, long value)
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
index
- The index to set the value at.value
- The newPeerIds to set.public RaftCmdpb.SplitRequest.Builder addNewPeerIds(long value)
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
value
- The newPeerIds to add.public RaftCmdpb.SplitRequest.Builder addAllNewPeerIds(Iterable<? extends Long> values)
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
values
- The newPeerIds to add.public RaftCmdpb.SplitRequest.Builder clearNewPeerIds()
The peer ids for the new split region.
repeated uint64 new_peer_ids = 3;
@Deprecated public boolean getRightDerive()
If true, right region derive the origin region_id, left region use new_region_id. Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
bool right_derive = 4 [deprecated = true];
getRightDerive
in interface RaftCmdpb.SplitRequestOrBuilder
@Deprecated public RaftCmdpb.SplitRequest.Builder setRightDerive(boolean value)
If true, right region derive the origin region_id, left region use new_region_id. Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
bool right_derive = 4 [deprecated = true];
value
- The rightDerive to set.@Deprecated public RaftCmdpb.SplitRequest.Builder clearRightDerive()
If true, right region derive the origin region_id, left region use new_region_id. Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
bool right_derive = 4 [deprecated = true];
public final RaftCmdpb.SplitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
public final RaftCmdpb.SplitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RaftCmdpb.SplitRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.