Package io.dingodb.meta
Class Meta.RegionStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
io.dingodb.meta.Meta.RegionStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.RegionStatusOrBuilder,Cloneable
- Enclosing class:
- Meta.RegionStatus
public static final class Meta.RegionStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
implements Meta.RegionStatusOrBuilder
Protobuf type
dingodb.pb.meta.RegionStatus-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()the create timestamp in ms of regionclearField(com.google.protobuf.Descriptors.FieldDescriptor field) RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorthe last update(heartbeat) timestamp in ms of regionclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) RegionRaftStatus this status describe the data constistency of the raft regionRegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downRegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protoclone()longthe create timestamp in ms of regionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorintRegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorlongthe last update(heartbeat) timestamp in ms of regionRegionRaftStatus this status describe the data constistency of the raft regionintRegionRaftStatus this status describe the data constistency of the raft regionRegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)intRegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downintReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downgetState()RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protointRegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protoprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Meta.RegionStatus other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCreateTimestamp(long value) the create timestamp in ms of regionRegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorsetHeartbeatStateValue(int value) RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinatorsetLastUpdateTimestamp(long value) the last update(heartbeat) timestamp in ms of regionRegionRaftStatus this status describe the data constistency of the raft regionsetRaftStatusValue(int value) RegionRaftStatus this status describe the data constistency of the raft regionsetRegionType(Common.RegionType value) RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)setRegionTypeValue(int value) RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downsetReplicaStatusValue(int value) ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is downsetState(Common.RegionState value) RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protosetStateValue(int value) RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.protosetUnknownFields(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<Meta.RegionStatus.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<Meta.RegionStatus.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<Meta.RegionStatus.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<Meta.RegionStatus.Builder>
-
setField
public Meta.RegionStatus.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<Meta.RegionStatus.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
-
setRepeatedField
public Meta.RegionStatus.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<Meta.RegionStatus.Builder>
-
addRepeatedField
public Meta.RegionStatus.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<Meta.RegionStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Meta.RegionStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
-
mergeFrom
public Meta.RegionStatus.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<Meta.RegionStatus.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Specified by:
getStateValuein interfaceMeta.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Specified by:
getStatein interfaceMeta.RegionStatusOrBuilder- Returns:
- The state.
-
setState
RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
RegionState REGION_NEW: the region is creating, wait for store to finish the creation REGION_NORMAL: the region is normal and can serve all request other status refer to common.proto
.dingodb.pb.common.RegionState state = 1;- Returns:
- This builder for chaining.
-
getRaftStatusValue
public int getRaftStatusValue()RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Specified by:
getRaftStatusValuein interfaceMeta.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for raftStatus.
-
setRaftStatusValue
RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Parameters:
value- The enum numeric value on the wire for raftStatus to set.- Returns:
- This builder for chaining.
-
getRaftStatus
RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Specified by:
getRaftStatusin interfaceMeta.RegionStatusOrBuilder- Returns:
- The raftStatus.
-
setRaftStatus
RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Parameters:
value- The raftStatus to set.- Returns:
- This builder for chaining.
-
clearRaftStatus
RegionRaftStatus this status describe the data constistency of the raft region
.dingodb.pb.common.RegionRaftStatus raft_status = 2;- Returns:
- This builder for chaining.
-
getReplicaStatusValue
public int getReplicaStatusValue()ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Specified by:
getReplicaStatusValuein interfaceMeta.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for replicaStatus.
-
setReplicaStatusValue
ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Parameters:
value- The enum numeric value on the wire for replicaStatus to set.- Returns:
- This builder for chaining.
-
getReplicaStatus
ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Specified by:
getReplicaStatusin interfaceMeta.RegionStatusOrBuilder- Returns:
- The replicaStatus.
-
setReplicaStatus
ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Parameters:
value- The replicaStatus to set.- Returns:
- This builder for chaining.
-
clearReplicaStatus
ReplicaStatus this status describe the data safety of the raft region if this region is degraded, it means one or more replica is down
.dingodb.pb.common.ReplicaStatus replica_status = 3;- Returns:
- This builder for chaining.
-
getHeartbeatStateValue
public int getHeartbeatStateValue()RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Specified by:
getHeartbeatStateValuein interfaceMeta.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for heartbeatState.
-
setHeartbeatStateValue
RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Parameters:
value- The enum numeric value on the wire for heartbeatState to set.- Returns:
- This builder for chaining.
-
getHeartbeatState
RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Specified by:
getHeartbeatStatein interfaceMeta.RegionStatusOrBuilder- Returns:
- The heartbeatState.
-
setHeartbeatState
RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Parameters:
value- The heartbeatState to set.- Returns:
- This builder for chaining.
-
clearHeartbeatState
RegionHeartbeatState REGION_ONLINE: the leader of this region is online REGION_DOWN: the leader of this region cannot heartbeat to coordinator
.dingodb.pb.common.RegionHeartbeatState heartbeat_state = 4;- Returns:
- This builder for chaining.
-
getRegionTypeValue
public int getRegionTypeValue()RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Specified by:
getRegionTypeValuein interfaceMeta.RegionStatusOrBuilder- Returns:
- The enum numeric value on the wire for regionType.
-
setRegionTypeValue
RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Parameters:
value- The enum numeric value on the wire for regionType to set.- Returns:
- This builder for chaining.
-
getRegionType
RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Specified by:
getRegionTypein interfaceMeta.RegionStatusOrBuilder- Returns:
- The regionType.
-
setRegionType
RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Parameters:
value- The regionType to set.- Returns:
- This builder for chaining.
-
clearRegionType
RegionType describe this region is a store region or index region for table, the region is store for index, the region is index (including vector index and scalar index)
.dingodb.pb.common.RegionType region_type = 5;- Returns:
- This builder for chaining.
-
getCreateTimestamp
public long getCreateTimestamp()the create timestamp in ms of region
int64 create_timestamp = 10;- Specified by:
getCreateTimestampin interfaceMeta.RegionStatusOrBuilder- Returns:
- The createTimestamp.
-
setCreateTimestamp
the create timestamp in ms of region
int64 create_timestamp = 10;- Parameters:
value- The createTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreateTimestamp
the create timestamp in ms of region
int64 create_timestamp = 10;- Returns:
- This builder for chaining.
-
getLastUpdateTimestamp
public long getLastUpdateTimestamp()the last update(heartbeat) timestamp in ms of region
int64 last_update_timestamp = 11;- Specified by:
getLastUpdateTimestampin interfaceMeta.RegionStatusOrBuilder- Returns:
- The lastUpdateTimestamp.
-
setLastUpdateTimestamp
the last update(heartbeat) timestamp in ms of region
int64 last_update_timestamp = 11;- Parameters:
value- The lastUpdateTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastUpdateTimestamp
the last update(heartbeat) timestamp in ms of region
int64 last_update_timestamp = 11;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Meta.RegionStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
-
mergeUnknownFields
public final Meta.RegionStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.RegionStatus.Builder>
-