Class Common.StoreMetrics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Common.StoreMetrics.Builder>
io.dingodb.common.Common.StoreMetrics.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Common.StoreMetricsOrBuilder, Cloneable
Enclosing class:
Common.StoreMetrics

public static final class Common.StoreMetrics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Common.StoreMetrics.Builder> implements Common.StoreMetricsOrBuilder
 StoreMetrics
 
Protobuf type dingodb.pb.common.StoreMetrics
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Common.StoreMetrics.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Common.StoreMetrics.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Common.StoreMetrics.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<Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • getDefaultInstanceForType

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

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

      public Common.StoreMetrics 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<Common.StoreMetrics.Builder>
    • setField

      public Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • clearField

      public Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • clearOneof

      public Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • setRepeatedField

      public Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • addRepeatedField

      public Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • mergeFrom

      public Common.StoreMetrics.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<Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • mergeFrom

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

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

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

      public Common.StoreMetrics.Builder clearId()
       store id
       
      int64 id = 1;
      Returns:
      This builder for chaining.
    • hasStoreOwnMetrics

      public boolean hasStoreOwnMetrics()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      hasStoreOwnMetrics in interface Common.StoreMetricsOrBuilder
      Returns:
      Whether the storeOwnMetrics field is set.
    • getStoreOwnMetrics

      public Common.StoreOwnMetrics getStoreOwnMetrics()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      getStoreOwnMetrics in interface Common.StoreMetricsOrBuilder
      Returns:
      The storeOwnMetrics.
    • setStoreOwnMetrics

      public Common.StoreMetrics.Builder setStoreOwnMetrics(Common.StoreOwnMetrics value)
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
    • setStoreOwnMetrics

      public Common.StoreMetrics.Builder setStoreOwnMetrics(Common.StoreOwnMetrics.Builder builderForValue)
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
    • mergeStoreOwnMetrics

      public Common.StoreMetrics.Builder mergeStoreOwnMetrics(Common.StoreOwnMetrics value)
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
    • clearStoreOwnMetrics

      public Common.StoreMetrics.Builder clearStoreOwnMetrics()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
    • getStoreOwnMetricsBuilder

      public Common.StoreOwnMetrics.Builder getStoreOwnMetricsBuilder()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
    • getStoreOwnMetricsOrBuilder

      public Common.StoreOwnMetricsOrBuilder getStoreOwnMetricsOrBuilder()
       store own metrics
       
      .dingodb.pb.common.StoreOwnMetrics store_own_metrics = 10;
      Specified by:
      getStoreOwnMetricsOrBuilder in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapCount

      public int getRegionMetricsMapCount()
      Description copied from interface: Common.StoreMetricsOrBuilder
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
      Specified by:
      getRegionMetricsMapCount in interface Common.StoreMetricsOrBuilder
    • containsRegionMetricsMap

      public boolean containsRegionMetricsMap(long key)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
      Specified by:
      containsRegionMetricsMap in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMap

      @Deprecated public Map<Long,Common.RegionMetrics> getRegionMetricsMap()
      Deprecated.
      Specified by:
      getRegionMetricsMap in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapMap

      public Map<Long,Common.RegionMetrics> getRegionMetricsMapMap()
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
      Specified by:
      getRegionMetricsMapMap in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapOrDefault

      public Common.RegionMetrics getRegionMetricsMapOrDefault(long key, Common.RegionMetrics defaultValue)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
      Specified by:
      getRegionMetricsMapOrDefault in interface Common.StoreMetricsOrBuilder
    • getRegionMetricsMapOrThrow

      public Common.RegionMetrics getRegionMetricsMapOrThrow(long key)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
      Specified by:
      getRegionMetricsMapOrThrow in interface Common.StoreMetricsOrBuilder
    • clearRegionMetricsMap

      public Common.StoreMetrics.Builder clearRegionMetricsMap()
    • removeRegionMetricsMap

      public Common.StoreMetrics.Builder removeRegionMetricsMap(long key)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
    • getMutableRegionMetricsMap

      @Deprecated public Map<Long,Common.RegionMetrics> getMutableRegionMetricsMap()
      Deprecated.
      Use alternate mutation accessors instead.
    • putRegionMetricsMap

      public Common.StoreMetrics.Builder putRegionMetricsMap(long key, Common.RegionMetrics value)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
    • putAllRegionMetricsMap

      public Common.StoreMetrics.Builder putAllRegionMetricsMap(Map<Long,Common.RegionMetrics> values)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
    • putRegionMetricsMapBuilderIfAbsent

      public Common.RegionMetrics.Builder putRegionMetricsMapBuilderIfAbsent(long key)
       the key of the map is region_id,  the value is RegionMetrics
       this map contains all region's metrics include follower on this store
       
      map<int64, .dingodb.pb.common.RegionMetrics> region_metrics_map = 40;
    • getIsPartialRegionMetrics

      public boolean getIsPartialRegionMetrics()
       true: region_metrics_map only contain partial region metrics, false: contain full region metrics
       
      bool is_partial_region_metrics = 41;
      Specified by:
      getIsPartialRegionMetrics in interface Common.StoreMetricsOrBuilder
      Returns:
      The isPartialRegionMetrics.
    • setIsPartialRegionMetrics

      public Common.StoreMetrics.Builder setIsPartialRegionMetrics(boolean value)
       true: region_metrics_map only contain partial region metrics, false: contain full region metrics
       
      bool is_partial_region_metrics = 41;
      Parameters:
      value - The isPartialRegionMetrics to set.
      Returns:
      This builder for chaining.
    • clearIsPartialRegionMetrics

      public Common.StoreMetrics.Builder clearIsPartialRegionMetrics()
       true: region_metrics_map only contain partial region metrics, false: contain full region metrics
       
      bool is_partial_region_metrics = 41;
      Returns:
      This builder for chaining.
    • getIsUpdateEpochVersion

      public boolean getIsUpdateEpochVersion()
       allow update epoch version(split/merge), leader change not allow update epoch version.
       
      bool is_update_epoch_version = 42;
      Specified by:
      getIsUpdateEpochVersion in interface Common.StoreMetricsOrBuilder
      Returns:
      The isUpdateEpochVersion.
    • setIsUpdateEpochVersion

      public Common.StoreMetrics.Builder setIsUpdateEpochVersion(boolean value)
       allow update epoch version(split/merge), leader change not allow update epoch version.
       
      bool is_update_epoch_version = 42;
      Parameters:
      value - The isUpdateEpochVersion to set.
      Returns:
      This builder for chaining.
    • clearIsUpdateEpochVersion

      public Common.StoreMetrics.Builder clearIsUpdateEpochVersion()
       allow update epoch version(split/merge), leader change not allow update epoch version.
       
      bool is_update_epoch_version = 42;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Common.StoreMetrics.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<Common.StoreMetrics.Builder>
    • mergeUnknownFields

      public final Common.StoreMetrics.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<Common.StoreMetrics.Builder>