Class Coordinator.RegionStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
io.dingodb.coordinator.Coordinator.RegionStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Coordinator.RegionStatusOrBuilder, Cloneable
Enclosing class:
Coordinator.RegionStatus

public static final class Coordinator.RegionStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder> implements Coordinator.RegionStatusOrBuilder
Protobuf type dingodb.pb.coordinator.RegionStatus
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • getDefaultInstanceForType

      public Coordinator.RegionStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Coordinator.RegionStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Coordinator.RegionStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • setField

      public Coordinator.RegionStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • clearField

      public Coordinator.RegionStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • clearOneof

      public Coordinator.RegionStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • setRepeatedField

      public Coordinator.RegionStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • addRepeatedField

      public Coordinator.RegionStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • mergeFrom

      public Coordinator.RegionStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Coordinator.RegionStatus.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • mergeFrom

      public Coordinator.RegionStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Coordinator.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:
      getStateValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Coordinator.RegionStatus.Builder setStateValue(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.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

      public Common.RegionState 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:
      getState in interface Coordinator.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

      public Coordinator.RegionStatus.Builder 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:
      getRaftStatusValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for raftStatus.
    • setRaftStatusValue

      public Coordinator.RegionStatus.Builder setRaftStatusValue(int value)
       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

      public Common.RegionRaftStatus getRaftStatus()
       RegionRaftStatus
       this status describe the data constistency of the raft region
       
      .dingodb.pb.common.RegionRaftStatus raft_status = 2;
      Specified by:
      getRaftStatus in interface Coordinator.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

      public Coordinator.RegionStatus.Builder 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:
      getReplicaStatusValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for replicaStatus.
    • setReplicaStatusValue

      public Coordinator.RegionStatus.Builder setReplicaStatusValue(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 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

      public Common.ReplicaStatus 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:
      getReplicaStatus in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The replicaStatus.
    • setReplicaStatus

      public Coordinator.RegionStatus.Builder setReplicaStatus(Common.ReplicaStatus value)
       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

      public Coordinator.RegionStatus.Builder 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:
      getHeartbeatStateValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for heartbeatState.
    • setHeartbeatStateValue

      public Coordinator.RegionStatus.Builder setHeartbeatStateValue(int value)
       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

      public Common.RegionHeartbeatState 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:
      getHeartbeatState in interface Coordinator.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

      public Coordinator.RegionStatus.Builder 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:
      getRegionTypeValue in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for regionType.
    • setRegionTypeValue

      public Coordinator.RegionStatus.Builder 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)
       
      .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

      public Common.RegionType 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:
      getRegionType in interface Coordinator.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

      public Coordinator.RegionStatus.Builder 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:
      getCreateTimestamp in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The createTimestamp.
    • setCreateTimestamp

      public Coordinator.RegionStatus.Builder setCreateTimestamp(long value)
       the create timestamp in ms of region
       
      int64 create_timestamp = 10;
      Parameters:
      value - The createTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreateTimestamp

      public Coordinator.RegionStatus.Builder 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:
      getLastUpdateTimestamp in interface Coordinator.RegionStatusOrBuilder
      Returns:
      The lastUpdateTimestamp.
    • setLastUpdateTimestamp

      public Coordinator.RegionStatus.Builder setLastUpdateTimestamp(long value)
       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

      public Coordinator.RegionStatus.Builder clearLastUpdateTimestamp()
       the last update(heartbeat) timestamp in ms of region
       
      int64 last_update_timestamp = 11;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Coordinator.RegionStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>
    • mergeUnknownFields

      public final Coordinator.RegionStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Coordinator.RegionStatus.Builder>