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, 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<ReplicationModepb.DRAutoSync.Builder>
public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>
public ReplicationModepb.DRAutoSync getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ReplicationModepb.DRAutoSync build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ReplicationModepb.DRAutoSync buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>
public ReplicationModepb.DRAutoSync.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<ReplicationModepb.DRAutoSync.Builder>
public ReplicationModepb.DRAutoSync.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ReplicationModepb.DRAutoSync.Builder>
IOException
public String getLabelKey()
The key of the label that used for distinguish different DC.
string label_key = 1;
getLabelKey
in interface ReplicationModepb.DRAutoSyncOrBuilder
public com.google.protobuf.ByteString getLabelKeyBytes()
The key of the label that used for distinguish different DC.
string label_key = 1;
getLabelKeyBytes
in interface ReplicationModepb.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
public 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.DRAutoSyncOrBuilder
index
- 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicationModepb.DRAutoSync.Builder>
Copyright © 2024 PingCAP. All rights reserved.