Class MetricsDistributions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.MetricsDistributions
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetricsDistributionsOrBuilder, Serializable

@Generated public final class MetricsDistributions extends com.google.protobuf.GeneratedMessage implements MetricsDistributionsOrBuilder
Current-state distributions computed from the latest bot data.
These are not time-series; they reflect the current instant.
Protobuf type soulfire.v1.MetricsDistributions
See Also:
  • Field Details

    • HEALTH_HISTOGRAM_FIELD_NUMBER

      public static final int HEALTH_HISTOGRAM_FIELD_NUMBER
      See Also:
    • FOOD_HISTOGRAM_FIELD_NUMBER

      public static final int FOOD_HISTOGRAM_FIELD_NUMBER
      See Also:
    • DIMENSION_COUNTS_FIELD_NUMBER

      public static final int DIMENSION_COUNTS_FIELD_NUMBER
      See Also:
    • GAME_MODE_COUNTS_FIELD_NUMBER

      public static final int GAME_MODE_COUNTS_FIELD_NUMBER
      See Also:
    • BOT_POSITIONS_FIELD_NUMBER

      public static final int BOT_POSITIONS_FIELD_NUMBER
      See Also:
  • 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.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getHealthHistogramList

      public List<Integer> getHealthHistogramList()
      Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      Each entry is the count of bots whose health falls in that bucket.
      
      repeated uint32 health_histogram = 1;
      Specified by:
      getHealthHistogramList in interface MetricsDistributionsOrBuilder
      Returns:
      A list containing the healthHistogram.
    • getHealthHistogramCount

      public int getHealthHistogramCount()
      Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      Each entry is the count of bots whose health falls in that bucket.
      
      repeated uint32 health_histogram = 1;
      Specified by:
      getHealthHistogramCount in interface MetricsDistributionsOrBuilder
      Returns:
      The count of healthHistogram.
    • getHealthHistogram

      public int getHealthHistogram(int index)
      Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      Each entry is the count of bots whose health falls in that bucket.
      
      repeated uint32 health_histogram = 1;
      Specified by:
      getHealthHistogram in interface MetricsDistributionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The healthHistogram at the given index.
    • getFoodHistogramList

      public List<Integer> getFoodHistogramList()
      Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      
      repeated uint32 food_histogram = 2;
      Specified by:
      getFoodHistogramList in interface MetricsDistributionsOrBuilder
      Returns:
      A list containing the foodHistogram.
    • getFoodHistogramCount

      public int getFoodHistogramCount()
      Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      
      repeated uint32 food_histogram = 2;
      Specified by:
      getFoodHistogramCount in interface MetricsDistributionsOrBuilder
      Returns:
      The count of foodHistogram.
    • getFoodHistogram

      public int getFoodHistogram(int index)
      Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
      
      repeated uint32 food_histogram = 2;
      Specified by:
      getFoodHistogram in interface MetricsDistributionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The foodHistogram at the given index.
    • getDimensionCountsCount

      public int getDimensionCountsCount()
      Description copied from interface: MetricsDistributionsOrBuilder
      Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
      
      map<string, uint32> dimension_counts = 3;
      Specified by:
      getDimensionCountsCount in interface MetricsDistributionsOrBuilder
    • containsDimensionCounts

      public boolean containsDimensionCounts(String key)
      Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
      
      map<string, uint32> dimension_counts = 3;
      Specified by:
      containsDimensionCounts in interface MetricsDistributionsOrBuilder
    • getDimensionCounts

      @Deprecated public Map<String,Integer> getDimensionCounts()
      Deprecated.
      Specified by:
      getDimensionCounts in interface MetricsDistributionsOrBuilder
    • getDimensionCountsMap

      public Map<String,Integer> getDimensionCountsMap()
      Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
      
      map<string, uint32> dimension_counts = 3;
      Specified by:
      getDimensionCountsMap in interface MetricsDistributionsOrBuilder
    • getDimensionCountsOrDefault

      public int getDimensionCountsOrDefault(String key, int defaultValue)
      Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
      
      map<string, uint32> dimension_counts = 3;
      Specified by:
      getDimensionCountsOrDefault in interface MetricsDistributionsOrBuilder
    • getDimensionCountsOrThrow

      public int getDimensionCountsOrThrow(String key)
      Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
      
      map<string, uint32> dimension_counts = 3;
      Specified by:
      getDimensionCountsOrThrow in interface MetricsDistributionsOrBuilder
    • getGameModeCountsCount

      public int getGameModeCountsCount()
      Description copied from interface: MetricsDistributionsOrBuilder
      Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
      
      map<string, uint32> game_mode_counts = 4;
      Specified by:
      getGameModeCountsCount in interface MetricsDistributionsOrBuilder
    • containsGameModeCounts

      public boolean containsGameModeCounts(String key)
      Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
      
      map<string, uint32> game_mode_counts = 4;
      Specified by:
      containsGameModeCounts in interface MetricsDistributionsOrBuilder
    • getGameModeCounts

      @Deprecated public Map<String,Integer> getGameModeCounts()
      Deprecated.
      Specified by:
      getGameModeCounts in interface MetricsDistributionsOrBuilder
    • getGameModeCountsMap

      public Map<String,Integer> getGameModeCountsMap()
      Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
      
      map<string, uint32> game_mode_counts = 4;
      Specified by:
      getGameModeCountsMap in interface MetricsDistributionsOrBuilder
    • getGameModeCountsOrDefault

      public int getGameModeCountsOrDefault(String key, int defaultValue)
      Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
      
      map<string, uint32> game_mode_counts = 4;
      Specified by:
      getGameModeCountsOrDefault in interface MetricsDistributionsOrBuilder
    • getGameModeCountsOrThrow

      public int getGameModeCountsOrThrow(String key)
      Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
      
      map<string, uint32> game_mode_counts = 4;
      Specified by:
      getGameModeCountsOrThrow in interface MetricsDistributionsOrBuilder
    • getBotPositionsList

      public List<BotPosition> getBotPositionsList()
      XZ positions of online bots for scatter plot rendering.
      
      repeated .soulfire.v1.BotPosition bot_positions = 5;
      Specified by:
      getBotPositionsList in interface MetricsDistributionsOrBuilder
    • getBotPositionsOrBuilderList

      public List<? extends BotPositionOrBuilder> getBotPositionsOrBuilderList()
      XZ positions of online bots for scatter plot rendering.
      
      repeated .soulfire.v1.BotPosition bot_positions = 5;
      Specified by:
      getBotPositionsOrBuilderList in interface MetricsDistributionsOrBuilder
    • getBotPositionsCount

      public int getBotPositionsCount()
      XZ positions of online bots for scatter plot rendering.
      
      repeated .soulfire.v1.BotPosition bot_positions = 5;
      Specified by:
      getBotPositionsCount in interface MetricsDistributionsOrBuilder
    • getBotPositions

      public BotPosition getBotPositions(int index)
      XZ positions of online bots for scatter plot rendering.
      
      repeated .soulfire.v1.BotPosition bot_positions = 5;
      Specified by:
      getBotPositions in interface MetricsDistributionsOrBuilder
    • getBotPositionsOrBuilder

      public BotPositionOrBuilder getBotPositionsOrBuilder(int index)
      XZ positions of online bots for scatter plot rendering.
      
      repeated .soulfire.v1.BotPosition bot_positions = 5;
      Specified by:
      getBotPositionsOrBuilder in interface MetricsDistributionsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 MetricsDistributions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static MetricsDistributions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static MetricsDistributions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static MetricsDistributions.Builder newBuilder()
    • newBuilder

      public static MetricsDistributions.Builder newBuilder(MetricsDistributions prototype)
    • toBuilder

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

      protected MetricsDistributions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MetricsDistributions getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<MetricsDistributions> 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.GeneratedMessage
    • getDefaultInstanceForType

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