Class StoreInternal.Region.Builder

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

public static final class StoreInternal.Region.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StoreInternal.Region.Builder> implements StoreInternal.RegionOrBuilder
Protobuf type dingodb.pb.store_internal.Region
  • 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<StoreInternal.Region.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<StoreInternal.Region.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<StoreInternal.Region.Builder>
    • getDefaultInstanceForType

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

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

      public StoreInternal.Region 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<StoreInternal.Region.Builder>
    • setField

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
    • clearField

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
    • clearOneof

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
    • setRepeatedField

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
    • addRepeatedField

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
    • mergeFrom

      public StoreInternal.Region.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<StoreInternal.Region.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<StoreInternal.Region.Builder>
    • mergeFrom

      public StoreInternal.Region.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<StoreInternal.Region.Builder>
      Throws:
      IOException
    • getId

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

      public StoreInternal.Region.Builder setId(long value)
      int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public StoreInternal.Region.Builder clearId()
      int64 id = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setRegionTypeValue

      public StoreInternal.Region.Builder setRegionTypeValue(int value)
      .dingodb.pb.common.RegionType region_type = 10;
      Parameters:
      value - The enum numeric value on the wire for regionType to set.
      Returns:
      This builder for chaining.
    • getRegionType

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

      public StoreInternal.Region.Builder setRegionType(Common.RegionType value)
      .dingodb.pb.common.RegionType region_type = 10;
      Parameters:
      value - The regionType to set.
      Returns:
      This builder for chaining.
    • clearRegionType

      public StoreInternal.Region.Builder clearRegionType()
      .dingodb.pb.common.RegionType region_type = 10;
      Returns:
      This builder for chaining.
    • 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.
    • setDefinition

      .dingodb.pb.common.RegionDefinition definition = 20;
    • setDefinition

      public StoreInternal.Region.Builder setDefinition(Common.RegionDefinition.Builder builderForValue)
      .dingodb.pb.common.RegionDefinition definition = 20;
    • mergeDefinition

      public StoreInternal.Region.Builder mergeDefinition(Common.RegionDefinition value)
      .dingodb.pb.common.RegionDefinition definition = 20;
    • clearDefinition

      public StoreInternal.Region.Builder clearDefinition()
      .dingodb.pb.common.RegionDefinition definition = 20;
    • getDefinitionBuilder

      public Common.RegionDefinition.Builder getDefinitionBuilder()
      .dingodb.pb.common.RegionDefinition definition = 20;
    • 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.
    • setEncodeRange

      public StoreInternal.Region.Builder setEncodeRange(Common.Range value)
      .dingodb.pb.common.Range encode_range = 21;
    • setEncodeRange

      public StoreInternal.Region.Builder setEncodeRange(Common.Range.Builder builderForValue)
      .dingodb.pb.common.Range encode_range = 21;
    • mergeEncodeRange

      public StoreInternal.Region.Builder mergeEncodeRange(Common.Range value)
      .dingodb.pb.common.Range encode_range = 21;
    • clearEncodeRange

      public StoreInternal.Region.Builder clearEncodeRange()
      .dingodb.pb.common.Range encode_range = 21;
    • getEncodeRangeBuilder

      public Common.Range.Builder getEncodeRangeBuilder()
      .dingodb.pb.common.Range encode_range = 21;
    • 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.
    • setLeaderId

      public StoreInternal.Region.Builder setLeaderId(long value)
      int64 leader_id = 30;
      Parameters:
      value - The leaderId to set.
      Returns:
      This builder for chaining.
    • clearLeaderId

      public StoreInternal.Region.Builder clearLeaderId()
      int64 leader_id = 30;
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public StoreInternal.Region.Builder setStateValue(int value)
      .dingodb.pb.common.StoreRegionState state = 40;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

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

      .dingodb.pb.common.StoreRegionState state = 40;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public StoreInternal.Region.Builder clearState()
      .dingodb.pb.common.StoreRegionState state = 40;
      Returns:
      This builder for chaining.
    • 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.
    • setHistoryStates

      public StoreInternal.Region.Builder setHistoryStates(int index, Common.StoreRegionState value)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      index - The index to set the value at.
      value - The historyStates to set.
      Returns:
      This builder for chaining.
    • addHistoryStates

      public StoreInternal.Region.Builder addHistoryStates(Common.StoreRegionState value)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      value - The historyStates to add.
      Returns:
      This builder for chaining.
    • addAllHistoryStates

      public StoreInternal.Region.Builder addAllHistoryStates(Iterable<? extends Common.StoreRegionState> values)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      values - The historyStates to add.
      Returns:
      This builder for chaining.
    • clearHistoryStates

      public StoreInternal.Region.Builder clearHistoryStates()
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Returns:
      This builder for chaining.
    • 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.
    • setHistoryStatesValue

      public StoreInternal.Region.Builder setHistoryStatesValue(int index, int value)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for historyStates to set.
      Returns:
      This builder for chaining.
    • addHistoryStatesValue

      public StoreInternal.Region.Builder addHistoryStatesValue(int value)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      value - The enum numeric value on the wire for historyStates to add.
      Returns:
      This builder for chaining.
    • addAllHistoryStatesValue

      public StoreInternal.Region.Builder addAllHistoryStatesValue(Iterable<Integer> values)
      repeated .dingodb.pb.common.StoreRegionState history_states = 50;
      Parameters:
      values - The enum numeric values on the wire for historyStates to add.
      Returns:
      This builder for chaining.
    • getNeedBootstrapDoSnapshot

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

      public StoreInternal.Region.Builder setNeedBootstrapDoSnapshot(boolean value)
      bool need_bootstrap_do_snapshot = 51;
      Parameters:
      value - The needBootstrapDoSnapshot to set.
      Returns:
      This builder for chaining.
    • clearNeedBootstrapDoSnapshot

      public StoreInternal.Region.Builder clearNeedBootstrapDoSnapshot()
      bool need_bootstrap_do_snapshot = 51;
      Returns:
      This builder for chaining.
    • getTemporaryDisableChange

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

      public StoreInternal.Region.Builder setTemporaryDisableChange(boolean value)
       store local control
       
      bool temporary_disable_change = 69;
      Parameters:
      value - The temporaryDisableChange to set.
      Returns:
      This builder for chaining.
    • clearTemporaryDisableChange

      public StoreInternal.Region.Builder clearTemporaryDisableChange()
       store local control
       
      bool temporary_disable_change = 69;
      Returns:
      This builder for chaining.
    • 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.
    • setDisableChange

      public StoreInternal.Region.Builder setDisableChange(boolean value)
       external control, e.g. coordinator/store, region split/merge/conf_change switch
       
      bool disable_change = 70;
      Parameters:
      value - The disableChange to set.
      Returns:
      This builder for chaining.
    • clearDisableChange

      public StoreInternal.Region.Builder clearDisableChange()
       external control, e.g. coordinator/store, region split/merge/conf_change switch
       
      bool disable_change = 70;
      Returns:
      This builder for chaining.
    • getLastSplitTimestamp

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

      public StoreInternal.Region.Builder setLastSplitTimestamp(long value)
      int64 last_split_timestamp = 71;
      Parameters:
      value - The lastSplitTimestamp to set.
      Returns:
      This builder for chaining.
    • clearLastSplitTimestamp

      public StoreInternal.Region.Builder clearLastSplitTimestamp()
      int64 last_split_timestamp = 71;
      Returns:
      This builder for chaining.
    • getParentId

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

      public StoreInternal.Region.Builder setParentId(long value)
      int64 parent_id = 72;
      Parameters:
      value - The parentId to set.
      Returns:
      This builder for chaining.
    • clearParentId

      public StoreInternal.Region.Builder clearParentId()
      int64 parent_id = 72;
      Returns:
      This builder for chaining.
    • 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.
    • setSnapshotEpochVersion

      public StoreInternal.Region.Builder setSnapshotEpochVersion(long value)
       latest region raft snapshot epoch version
       
      int64 snapshot_epoch_version = 74;
      Parameters:
      value - The snapshotEpochVersion to set.
      Returns:
      This builder for chaining.
    • clearSnapshotEpochVersion

      public StoreInternal.Region.Builder clearSnapshotEpochVersion()
       latest region raft snapshot epoch version
       
      int64 snapshot_epoch_version = 74;
      Returns:
      This builder for chaining.
    • 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.
    • setLastChangeJobId

      public StoreInternal.Region.Builder setLastChangeJobId(long value)
       Last split/merge/change_peer job id
       
      int64 last_change_job_id = 76;
      Parameters:
      value - The lastChangeJobId to set.
      Returns:
      This builder for chaining.
    • clearLastChangeJobId

      public StoreInternal.Region.Builder clearLastChangeJobId()
       Last split/merge/change_peer job id
       
      int64 last_change_job_id = 76;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final StoreInternal.Region.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<StoreInternal.Region.Builder>
    • mergeUnknownFields

      public final StoreInternal.Region.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<StoreInternal.Region.Builder>