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 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<Meta.RegionStatus.Builder>
    • clear

      public Meta.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<Meta.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<Meta.RegionStatus.Builder>
    • getDefaultInstanceForType

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

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

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

      public Meta.RegionStatus.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<Meta.RegionStatus.Builder>
    • setField

      public Meta.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<Meta.RegionStatus.Builder>
    • clearField

      public Meta.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<Meta.RegionStatus.Builder>
    • clearOneof

      public Meta.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<Meta.RegionStatus.Builder>
    • setRepeatedField

      public Meta.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<Meta.RegionStatus.Builder>
    • addRepeatedField

      public Meta.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<Meta.RegionStatus.Builder>
    • mergeFrom

      public Meta.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<Meta.RegionStatus.Builder>
    • mergeFrom

      public Meta.RegionStatus.Builder mergeFrom(Meta.RegionStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      getStateValue in interface Meta.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Meta.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 Meta.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 Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for raftStatus.
    • setRaftStatusValue

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The raftStatus.
    • setRaftStatus

      public Meta.RegionStatus.Builder setRaftStatus(Common.RegionRaftStatus value)
       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 Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for replicaStatus.
    • setReplicaStatusValue

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The replicaStatus.
    • setReplicaStatus

      public Meta.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 Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for heartbeatState.
    • setHeartbeatStateValue

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The heartbeatState.
    • setHeartbeatState

      public Meta.RegionStatus.Builder setHeartbeatState(Common.RegionHeartbeatState 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 heartbeatState to set.
      Returns:
      This builder for chaining.
    • clearHeartbeatState

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The enum numeric value on the wire for regionType.
    • setRegionTypeValue

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The regionType.
    • setRegionType

      public Meta.RegionStatus.Builder setRegionType(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)
       
      .dingodb.pb.common.RegionType region_type = 5;
      Parameters:
      value - The regionType to set.
      Returns:
      This builder for chaining.
    • clearRegionType

      public Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The createTimestamp.
    • setCreateTimestamp

      public Meta.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 Meta.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 Meta.RegionStatusOrBuilder
      Returns:
      The lastUpdateTimestamp.
    • setLastUpdateTimestamp

      public Meta.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 Meta.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 Meta.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<Meta.RegionStatus.Builder>
    • mergeUnknownFields

      public final Meta.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<Meta.RegionStatus.Builder>