Class StoreInternal.Region

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store_internal.StoreInternal.Region
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StoreInternal.RegionOrBuilder, Serializable
Enclosing class:
StoreInternal

public static final class StoreInternal.Region extends com.google.protobuf.GeneratedMessageV3 implements StoreInternal.RegionOrBuilder
Protobuf type dingodb.pb.store_internal.Region
See Also:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • REGION_TYPE_FIELD_NUMBER

      public static final int REGION_TYPE_FIELD_NUMBER
      See Also:
    • DEFINITION_FIELD_NUMBER

      public static final int DEFINITION_FIELD_NUMBER
      See Also:
    • ENCODE_RANGE_FIELD_NUMBER

      public static final int ENCODE_RANGE_FIELD_NUMBER
      See Also:
    • LEADER_ID_FIELD_NUMBER

      public static final int LEADER_ID_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • HISTORY_STATES_FIELD_NUMBER

      public static final int HISTORY_STATES_FIELD_NUMBER
      See Also:
    • NEED_BOOTSTRAP_DO_SNAPSHOT_FIELD_NUMBER

      public static final int NEED_BOOTSTRAP_DO_SNAPSHOT_FIELD_NUMBER
      See Also:
    • TEMPORARY_DISABLE_CHANGE_FIELD_NUMBER

      public static final int TEMPORARY_DISABLE_CHANGE_FIELD_NUMBER
      See Also:
    • DISABLE_CHANGE_FIELD_NUMBER

      public static final int DISABLE_CHANGE_FIELD_NUMBER
      See Also:
    • LAST_SPLIT_TIMESTAMP_FIELD_NUMBER

      public static final int LAST_SPLIT_TIMESTAMP_FIELD_NUMBER
      See Also:
    • PARENT_ID_FIELD_NUMBER

      public static final int PARENT_ID_FIELD_NUMBER
      See Also:
    • SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER

      public static final int SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER
      See Also:
    • LAST_CHANGE_JOB_ID_FIELD_NUMBER

      public static final int LAST_CHANGE_JOB_ID_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getId

      public long getId()
      int64 id = 1;
      Specified by:
      getId in interface StoreInternal.RegionOrBuilder
      Returns:
      The id.
    • getRegionTypeValue

      public int getRegionTypeValue()
      .dingodb.pb.common.RegionType region_type = 10;
      Specified by:
      getRegionTypeValue in interface StoreInternal.RegionOrBuilder
      Returns:
      The enum numeric value on the wire for regionType.
    • getRegionType

      public Common.RegionType getRegionType()
      .dingodb.pb.common.RegionType region_type = 10;
      Specified by:
      getRegionType in interface StoreInternal.RegionOrBuilder
      Returns:
      The regionType.
    • hasDefinition

      public boolean hasDefinition()
      .dingodb.pb.common.RegionDefinition definition = 20;
      Specified by:
      hasDefinition in interface StoreInternal.RegionOrBuilder
      Returns:
      Whether the definition field is set.
    • getDefinition

      public Common.RegionDefinition getDefinition()
      .dingodb.pb.common.RegionDefinition definition = 20;
      Specified by:
      getDefinition in interface StoreInternal.RegionOrBuilder
      Returns:
      The definition.
    • getDefinitionOrBuilder

      public Common.RegionDefinitionOrBuilder getDefinitionOrBuilder()
      .dingodb.pb.common.RegionDefinition definition = 20;
      Specified by:
      getDefinitionOrBuilder in interface StoreInternal.RegionOrBuilder
    • hasEncodeRange

      public boolean hasEncodeRange()
      .dingodb.pb.common.Range encode_range = 21;
      Specified by:
      hasEncodeRange in interface StoreInternal.RegionOrBuilder
      Returns:
      Whether the encodeRange field is set.
    • getEncodeRange

      public Common.Range getEncodeRange()
      .dingodb.pb.common.Range encode_range = 21;
      Specified by:
      getEncodeRange in interface StoreInternal.RegionOrBuilder
      Returns:
      The encodeRange.
    • getEncodeRangeOrBuilder

      public Common.RangeOrBuilder getEncodeRangeOrBuilder()
      .dingodb.pb.common.Range encode_range = 21;
      Specified by:
      getEncodeRangeOrBuilder in interface StoreInternal.RegionOrBuilder
    • getLeaderId

      public long getLeaderId()
      int64 leader_id = 30;
      Specified by:
      getLeaderId in interface StoreInternal.RegionOrBuilder
      Returns:
      The leaderId.
    • getStateValue

      public int getStateValue()
      .dingodb.pb.common.StoreRegionState state = 40;
      Specified by:
      getStateValue in interface StoreInternal.RegionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public Common.StoreRegionState getState()
      .dingodb.pb.common.StoreRegionState state = 40;
      Specified by:
      getState in interface StoreInternal.RegionOrBuilder
      Returns:
      The state.
    • getHistoryStatesList

      public List<Common.StoreRegionState> getHistoryStatesList()
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Specified by:
      getHistoryStatesList in interface StoreInternal.RegionOrBuilder
      Returns:
      A list containing the historyStates.
    • getHistoryStatesCount

      public int getHistoryStatesCount()
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Specified by:
      getHistoryStatesCount in interface StoreInternal.RegionOrBuilder
      Returns:
      The count of historyStates.
    • getHistoryStates

      public Common.StoreRegionState getHistoryStates(int index)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Specified by:
      getHistoryStates in interface StoreInternal.RegionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The historyStates at the given index.
    • getHistoryStatesValueList

      public List<Integer> getHistoryStatesValueList()
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Specified by:
      getHistoryStatesValueList in interface StoreInternal.RegionOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for historyStates.
    • getHistoryStatesValue

      public int getHistoryStatesValue(int index)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Specified by:
      getHistoryStatesValue in interface StoreInternal.RegionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of historyStates at the given index.
    • getNeedBootstrapDoSnapshot

      public boolean getNeedBootstrapDoSnapshot()
      bool need_bootstrap_do_snapshot = 51;
      Specified by:
      getNeedBootstrapDoSnapshot in interface StoreInternal.RegionOrBuilder
      Returns:
      The needBootstrapDoSnapshot.
    • getTemporaryDisableChange

      public boolean getTemporaryDisableChange()
       store local control
       
      bool temporary_disable_change = 69;
      Specified by:
      getTemporaryDisableChange in interface StoreInternal.RegionOrBuilder
      Returns:
      The temporaryDisableChange.
    • getDisableChange

      public boolean getDisableChange()
       external control, e.g. coordinator/store, region split/merge/conf_change switch
       
      bool disable_change = 70;
      Specified by:
      getDisableChange in interface StoreInternal.RegionOrBuilder
      Returns:
      The disableChange.
    • getLastSplitTimestamp

      public long getLastSplitTimestamp()
      int64 last_split_timestamp = 71;
      Specified by:
      getLastSplitTimestamp in interface StoreInternal.RegionOrBuilder
      Returns:
      The lastSplitTimestamp.
    • getParentId

      public long getParentId()
      int64 parent_id = 72;
      Specified by:
      getParentId in interface StoreInternal.RegionOrBuilder
      Returns:
      The parentId.
    • getSnapshotEpochVersion

      public long getSnapshotEpochVersion()
       latest region raft snapshot epoch version
       
      int64 snapshot_epoch_version = 74;
      Specified by:
      getSnapshotEpochVersion in interface StoreInternal.RegionOrBuilder
      Returns:
      The snapshotEpochVersion.
    • getLastChangeJobId

      public long getLastChangeJobId()
       Last split/merge/change_peer job id
       
      int64 last_change_job_id = 76;
      Specified by:
      getLastChangeJobId in interface StoreInternal.RegionOrBuilder
      Returns:
      The lastChangeJobId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StoreInternal.Region parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StoreInternal.Region parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoreInternal.Region parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StoreInternal.Region parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StoreInternal.Region parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoreInternal.Region parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StoreInternal.Region parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StoreInternal.Region.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StoreInternal.Region.Builder newBuilder()
    • newBuilder

      public static StoreInternal.Region.Builder newBuilder(StoreInternal.Region prototype)
    • toBuilder

      public StoreInternal.Region.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StoreInternal.Region.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static StoreInternal.Region getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StoreInternal.Region> parser()
    • getParserForType

      public com.google.protobuf.Parser<StoreInternal.Region> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public StoreInternal.Region getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder