Class MetricsDistributions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetricsDistributions.Builder>
com.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
com.soulfiremc.grpc.generated.MetricsDistributions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetricsDistributionsOrBuilder, Cloneable
- Enclosing class:
MetricsDistributions
public static final class MetricsDistributions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBotPositions(Iterable<? extends BotPosition> values) XZ positions of online bots for scatter plot rendering.addAllFoodHistogram(Iterable<? extends Integer> values) Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].addAllHealthHistogram(Iterable<? extends Integer> values) Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].addBotPositions(int index, BotPosition value) XZ positions of online bots for scatter plot rendering.addBotPositions(int index, BotPosition.Builder builderForValue) XZ positions of online bots for scatter plot rendering.addBotPositions(BotPosition value) XZ positions of online bots for scatter plot rendering.addBotPositions(BotPosition.Builder builderForValue) XZ positions of online bots for scatter plot rendering.XZ positions of online bots for scatter plot rendering.addBotPositionsBuilder(int index) XZ positions of online bots for scatter plot rendering.addFoodHistogram(int value) Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].addHealthHistogram(int value) Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].build()clear()XZ positions of online bots for scatter plot rendering.Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].booleanNumber of bots in each dimension (e.g., "minecraft:overworld" -> 5).booleanNumber of bots in each game mode (e.g., "SURVIVAL" -> 10).getBotPositions(int index) XZ positions of online bots for scatter plot rendering.getBotPositionsBuilder(int index) XZ positions of online bots for scatter plot rendering.XZ positions of online bots for scatter plot rendering.intXZ positions of online bots for scatter plot rendering.XZ positions of online bots for scatter plot rendering.getBotPositionsOrBuilder(int index) XZ positions of online bots for scatter plot rendering.List<? extends BotPositionOrBuilder> XZ positions of online bots for scatter plot rendering.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intNumber of bots in each dimension (e.g., "minecraft:overworld" -> 5).Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).intgetDimensionCountsOrDefault(String key, int defaultValue) Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).intNumber of bots in each dimension (e.g., "minecraft:overworld" -> 5).intgetFoodHistogram(int index) Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].intFood level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Deprecated.intNumber of bots in each game mode (e.g., "SURVIVAL" -> 10).Number of bots in each game mode (e.g., "SURVIVAL" -> 10).intgetGameModeCountsOrDefault(String key, int defaultValue) Number of bots in each game mode (e.g., "SURVIVAL" -> 10).intNumber of bots in each game mode (e.g., "SURVIVAL" -> 10).intgetHealthHistogram(int index) Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].intHealth histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Deprecated.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MetricsDistributions other) putAllDimensionCounts(Map<String, Integer> values) Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).putAllGameModeCounts(Map<String, Integer> values) Number of bots in each game mode (e.g., "SURVIVAL" -> 10).putDimensionCounts(String key, int value) Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).putGameModeCounts(String key, int value) Number of bots in each game mode (e.g., "SURVIVAL" -> 10).removeBotPositions(int index) XZ positions of online bots for scatter plot rendering.Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).Number of bots in each game mode (e.g., "SURVIVAL" -> 10).setBotPositions(int index, BotPosition value) XZ positions of online bots for scatter plot rendering.setBotPositions(int index, BotPosition.Builder builderForValue) XZ positions of online bots for scatter plot rendering.setFoodHistogram(int index, int value) Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].setHealthHistogram(int index, int value) Health histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricsDistributions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricsDistributions.Builder>
-
mergeFrom
public MetricsDistributions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricsDistributions.Builder>- Throws:
IOException
-
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:
getHealthHistogramListin interfaceMetricsDistributionsOrBuilder- 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:
getHealthHistogramCountin interfaceMetricsDistributionsOrBuilder- 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:
getHealthHistogramin interfaceMetricsDistributionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The healthHistogram at the given index.
-
setHealthHistogram
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;- Parameters:
index- The index to set the value at.value- The healthHistogram to set.- Returns:
- This builder for chaining.
-
addHealthHistogram
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;- Parameters:
value- The healthHistogram to add.- Returns:
- This builder for chaining.
-
addAllHealthHistogram
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;- Parameters:
values- The healthHistogram to add.- Returns:
- This builder for chaining.
-
clearHealthHistogram
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;- Returns:
- This builder for chaining.
-
getFoodHistogramList
Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
repeated uint32 food_histogram = 2;- Specified by:
getFoodHistogramListin interfaceMetricsDistributionsOrBuilder- 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:
getFoodHistogramCountin interfaceMetricsDistributionsOrBuilder- 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:
getFoodHistogramin interfaceMetricsDistributionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The foodHistogram at the given index.
-
setFoodHistogram
Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
repeated uint32 food_histogram = 2;- Parameters:
index- The index to set the value at.value- The foodHistogram to set.- Returns:
- This builder for chaining.
-
addFoodHistogram
Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
repeated uint32 food_histogram = 2;- Parameters:
value- The foodHistogram to add.- Returns:
- This builder for chaining.
-
addAllFoodHistogram
Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
repeated uint32 food_histogram = 2;- Parameters:
values- The foodHistogram to add.- Returns:
- This builder for chaining.
-
clearFoodHistogram
Food level histogram with 10 buckets of width 2: [0,2), [2,4), ..., [18,20].
repeated uint32 food_histogram = 2;- Returns:
- This builder for chaining.
-
getDimensionCountsCount
public int getDimensionCountsCount()Description copied from interface:MetricsDistributionsOrBuilderNumber of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3;- Specified by:
getDimensionCountsCountin interfaceMetricsDistributionsOrBuilder
-
containsDimensionCounts
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3;- Specified by:
containsDimensionCountsin interfaceMetricsDistributionsOrBuilder
-
getDimensionCounts
Deprecated.UsegetDimensionCountsMap()instead.- Specified by:
getDimensionCountsin interfaceMetricsDistributionsOrBuilder
-
getDimensionCountsMap
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3;- Specified by:
getDimensionCountsMapin interfaceMetricsDistributionsOrBuilder
-
getDimensionCountsOrDefault
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3;- Specified by:
getDimensionCountsOrDefaultin interfaceMetricsDistributionsOrBuilder
-
getDimensionCountsOrThrow
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3;- Specified by:
getDimensionCountsOrThrowin interfaceMetricsDistributionsOrBuilder
-
clearDimensionCounts
-
removeDimensionCounts
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3; -
getMutableDimensionCounts
Deprecated.Use alternate mutation accessors instead. -
putDimensionCounts
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3; -
putAllDimensionCounts
Number of bots in each dimension (e.g., "minecraft:overworld" -> 5).
map<string, uint32> dimension_counts = 3; -
getGameModeCountsCount
public int getGameModeCountsCount()Description copied from interface:MetricsDistributionsOrBuilderNumber of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4;- Specified by:
getGameModeCountsCountin interfaceMetricsDistributionsOrBuilder
-
containsGameModeCounts
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4;- Specified by:
containsGameModeCountsin interfaceMetricsDistributionsOrBuilder
-
getGameModeCounts
Deprecated.UsegetGameModeCountsMap()instead.- Specified by:
getGameModeCountsin interfaceMetricsDistributionsOrBuilder
-
getGameModeCountsMap
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4;- Specified by:
getGameModeCountsMapin interfaceMetricsDistributionsOrBuilder
-
getGameModeCountsOrDefault
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4;- Specified by:
getGameModeCountsOrDefaultin interfaceMetricsDistributionsOrBuilder
-
getGameModeCountsOrThrow
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4;- Specified by:
getGameModeCountsOrThrowin interfaceMetricsDistributionsOrBuilder
-
clearGameModeCounts
-
removeGameModeCounts
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4; -
getMutableGameModeCounts
Deprecated.Use alternate mutation accessors instead. -
putGameModeCounts
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4; -
putAllGameModeCounts
Number of bots in each game mode (e.g., "SURVIVAL" -> 10).
map<string, uint32> game_mode_counts = 4; -
getBotPositionsList
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;- Specified by:
getBotPositionsListin interfaceMetricsDistributionsOrBuilder
-
getBotPositionsCount
public int getBotPositionsCount()XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;- Specified by:
getBotPositionsCountin interfaceMetricsDistributionsOrBuilder
-
getBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;- Specified by:
getBotPositionsin interfaceMetricsDistributionsOrBuilder
-
setBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
setBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addAllBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
clearBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
removeBotPositions
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
getBotPositionsBuilder
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
getBotPositionsOrBuilder
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;- Specified by:
getBotPositionsOrBuilderin interfaceMetricsDistributionsOrBuilder
-
getBotPositionsOrBuilderList
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;- Specified by:
getBotPositionsOrBuilderListin interfaceMetricsDistributionsOrBuilder
-
addBotPositionsBuilder
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
addBotPositionsBuilder
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5; -
getBotPositionsBuilderList
XZ positions of online bots for scatter plot rendering.
repeated .soulfire.v1.BotPosition bot_positions = 5;
-