public static final class ReplicationModepb.DRAutoSync.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder> implements ReplicationModepb.DRAutoSyncOrBuilder
The status of dr-autosync mode.Protobuf type
replication_modepb.DRAutoSync| Modifier and Type | Method and Description |
|---|---|
ReplicationModepb.DRAutoSync.Builder |
addAllAvailableStores(Iterable<? extends Long> values)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
ReplicationModepb.DRAutoSync.Builder |
addAvailableStores(long value)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
ReplicationModepb.DRAutoSync.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplicationModepb.DRAutoSync |
build() |
ReplicationModepb.DRAutoSync |
buildPartial() |
ReplicationModepb.DRAutoSync.Builder |
clear() |
ReplicationModepb.DRAutoSync.Builder |
clearAvailableStores()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
ReplicationModepb.DRAutoSync.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReplicationModepb.DRAutoSync.Builder |
clearLabelKey()
The key of the label that used for distinguish different DC.
|
ReplicationModepb.DRAutoSync.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReplicationModepb.DRAutoSync.Builder |
clearState()
.replication_modepb.DRAutoSyncState state = 2; |
ReplicationModepb.DRAutoSync.Builder |
clearStateId()
Unique ID of the state, it increases after each state transfer.
|
ReplicationModepb.DRAutoSync.Builder |
clearWaitSyncTimeoutHint()
Duration to wait before switching to SYNC by force (in seconds)
|
ReplicationModepb.DRAutoSync.Builder |
clone() |
long |
getAvailableStores(int index)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
int |
getAvailableStoresCount()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
List<Long> |
getAvailableStoresList()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
ReplicationModepb.DRAutoSync |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLabelKey()
The key of the label that used for distinguish different DC.
|
com.google.protobuf.ByteString |
getLabelKeyBytes()
The key of the label that used for distinguish different DC.
|
ReplicationModepb.DRAutoSyncState |
getState()
.replication_modepb.DRAutoSyncState state = 2; |
long |
getStateId()
Unique ID of the state, it increases after each state transfer.
|
int |
getStateValue()
.replication_modepb.DRAutoSyncState state = 2; |
int |
getWaitSyncTimeoutHint()
Duration to wait before switching to SYNC by force (in seconds)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReplicationModepb.DRAutoSync.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReplicationModepb.DRAutoSync.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReplicationModepb.DRAutoSync.Builder |
mergeFrom(ReplicationModepb.DRAutoSync other) |
ReplicationModepb.DRAutoSync.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReplicationModepb.DRAutoSync.Builder |
setAvailableStores(int index,
long value)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
|
ReplicationModepb.DRAutoSync.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplicationModepb.DRAutoSync.Builder |
setLabelKey(String value)
The key of the label that used for distinguish different DC.
|
ReplicationModepb.DRAutoSync.Builder |
setLabelKeyBytes(com.google.protobuf.ByteString value)
The key of the label that used for distinguish different DC.
|
ReplicationModepb.DRAutoSync.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReplicationModepb.DRAutoSync.Builder |
setState(ReplicationModepb.DRAutoSyncState value)
.replication_modepb.DRAutoSyncState state = 2; |
ReplicationModepb.DRAutoSync.Builder |
setStateId(long value)
Unique ID of the state, it increases after each state transfer.
|
ReplicationModepb.DRAutoSync.Builder |
setStateValue(int value)
.replication_modepb.DRAutoSyncState state = 2; |
ReplicationModepb.DRAutoSync.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReplicationModepb.DRAutoSync.Builder |
setWaitSyncTimeoutHint(int value)
Duration to wait before switching to SYNC by force (in seconds)
|
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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ReplicationModepb.DRAutoSync build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ReplicationModepb.DRAutoSync buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ReplicationModepb.DRAutoSync.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.Builder mergeFrom(ReplicationModepb.DRAutoSync other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>IOExceptionpublic String getLabelKey()
The key of the label that used for distinguish different DC.
string label_key = 1;getLabelKey in interface ReplicationModepb.DRAutoSyncOrBuilderpublic com.google.protobuf.ByteString getLabelKeyBytes()
The key of the label that used for distinguish different DC.
string label_key = 1;getLabelKeyBytes in interface ReplicationModepb.DRAutoSyncOrBuilderpublic ReplicationModepb.DRAutoSync.Builder setLabelKey(String value)
The key of the label that used for distinguish different DC.
string label_key = 1;value - The labelKey to set.public ReplicationModepb.DRAutoSync.Builder clearLabelKey()
The key of the label that used for distinguish different DC.
string label_key = 1;public ReplicationModepb.DRAutoSync.Builder setLabelKeyBytes(com.google.protobuf.ByteString value)
The key of the label that used for distinguish different DC.
string label_key = 1;value - The bytes for labelKey to set.public int getStateValue()
.replication_modepb.DRAutoSyncState state = 2;getStateValue in interface ReplicationModepb.DRAutoSyncOrBuilderpublic ReplicationModepb.DRAutoSync.Builder setStateValue(int value)
.replication_modepb.DRAutoSyncState state = 2;value - The enum numeric value on the wire for state to set.public ReplicationModepb.DRAutoSyncState getState()
.replication_modepb.DRAutoSyncState state = 2;getState in interface ReplicationModepb.DRAutoSyncOrBuilderpublic ReplicationModepb.DRAutoSync.Builder setState(ReplicationModepb.DRAutoSyncState value)
.replication_modepb.DRAutoSyncState state = 2;value - The state to set.public ReplicationModepb.DRAutoSync.Builder clearState()
.replication_modepb.DRAutoSyncState state = 2;public long getStateId()
Unique ID of the state, it increases after each state transfer.
uint64 state_id = 3;getStateId in interface ReplicationModepb.DRAutoSyncOrBuilderpublic ReplicationModepb.DRAutoSync.Builder setStateId(long value)
Unique ID of the state, it increases after each state transfer.
uint64 state_id = 3;value - The stateId to set.public ReplicationModepb.DRAutoSync.Builder clearStateId()
Unique ID of the state, it increases after each state transfer.
uint64 state_id = 3;public int getWaitSyncTimeoutHint()
Duration to wait before switching to SYNC by force (in seconds)
int32 wait_sync_timeout_hint = 4;getWaitSyncTimeoutHint in interface ReplicationModepb.DRAutoSyncOrBuilderpublic ReplicationModepb.DRAutoSync.Builder setWaitSyncTimeoutHint(int value)
Duration to wait before switching to SYNC by force (in seconds)
int32 wait_sync_timeout_hint = 4;value - The waitSyncTimeoutHint to set.public ReplicationModepb.DRAutoSync.Builder clearWaitSyncTimeoutHint()
Duration to wait before switching to SYNC by force (in seconds)
int32 wait_sync_timeout_hint = 4;public List<Long> getAvailableStoresList()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;getAvailableStoresList in interface ReplicationModepb.DRAutoSyncOrBuilderpublic int getAvailableStoresCount()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;getAvailableStoresCount in interface ReplicationModepb.DRAutoSyncOrBuilderpublic long getAvailableStores(int index)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;getAvailableStores in interface ReplicationModepb.DRAutoSyncOrBuilderindex - The index of the element to return.public ReplicationModepb.DRAutoSync.Builder setAvailableStores(int index, long value)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;index - The index to set the value at.value - The availableStores to set.public ReplicationModepb.DRAutoSync.Builder addAvailableStores(long value)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;value - The availableStores to add.public ReplicationModepb.DRAutoSync.Builder addAllAvailableStores(Iterable<? extends Long> values)
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;values - The availableStores to add.public ReplicationModepb.DRAutoSync.Builder clearAvailableStores()
Stores should only sync messages with available stores when state is ASYNC or ASYNC_WAIT.
repeated uint64 available_stores = 5;public final ReplicationModepb.DRAutoSync.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>public final ReplicationModepb.DRAutoSync.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>Copyright © 2025 PingCAP. All rights reserved.