Class MetricsSnapshot.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetricsSnapshot.Builder>
com.google.protobuf.GeneratedMessage.Builder<MetricsSnapshot.Builder>
com.soulfiremc.grpc.generated.MetricsSnapshot.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetricsSnapshotOrBuilder, Cloneable
- Enclosing class:
MetricsSnapshot
public static final class MetricsSnapshot.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricsSnapshot.Builder>
implements MetricsSnapshotOrBuilder
A single time-series data point sampled at a fixed interval.Protobuf type
soulfire.v1.MetricsSnapshot-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Average food level across all online bots with player data.Average health across all online bots with player data.Average tick duration across all bots in milliseconds.Number of bots currently connected to the Minecraft server.Total number of bots configured in the instance (online + offline).Current rate of bytes received per second (computed from counter deltas).Cumulative bytes received across all bots since session start.Current rate of bytes sent per second (computed from counter deltas).Cumulative bytes sent across all bots since session start.Connection events since the previous snapshot.Disconnection events since the previous snapshot.Maximum tick duration observed across all bots in milliseconds.Current rate of packets received per second (computed from counter deltas).Cumulative packets received across all bots since session start.Current rate of packets sent per second (computed from counter deltas).Cumulative packets sent across all bots since session start.When this snapshot was taken.Total number of loaded chunks across all online bots.Total number of tracked entities across all online bots.doubleAverage food level across all online bots with player data.doubleAverage health across all online bots with player data.doubleAverage tick duration across all bots in milliseconds.intNumber of bots currently connected to the Minecraft server.intTotal number of bots configured in the instance (online + offline).doubleCurrent rate of bytes received per second (computed from counter deltas).longCumulative bytes received across all bots since session start.doubleCurrent rate of bytes sent per second (computed from counter deltas).longCumulative bytes sent across all bots since session start.intConnection events since the previous snapshot.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintDisconnection events since the previous snapshot.doubleMaximum tick duration observed across all bots in milliseconds.doubleCurrent rate of packets received per second (computed from counter deltas).longCumulative packets received across all bots since session start.doubleCurrent rate of packets sent per second (computed from counter deltas).longCumulative packets sent across all bots since session start.com.google.protobuf.TimestampWhen this snapshot was taken.com.google.protobuf.Timestamp.BuilderWhen this snapshot was taken.com.google.protobuf.TimestampOrBuilderWhen this snapshot was taken.intTotal number of loaded chunks across all online bots.intTotal number of tracked entities across all online bots.booleanWhen this snapshot was taken.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MetricsSnapshot other) mergeTimestamp(com.google.protobuf.Timestamp value) When this snapshot was taken.setAvgFoodLevel(double value) Average food level across all online bots with player data.setAvgHealth(double value) Average health across all online bots with player data.setAvgTickDurationMs(double value) Average tick duration across all bots in milliseconds.setBotsOnline(int value) Number of bots currently connected to the Minecraft server.setBotsTotal(int value) Total number of bots configured in the instance (online + offline).setBytesReceivedPerSecond(double value) Current rate of bytes received per second (computed from counter deltas).setBytesReceivedTotal(long value) Cumulative bytes received across all bots since session start.setBytesSentPerSecond(double value) Current rate of bytes sent per second (computed from counter deltas).setBytesSentTotal(long value) Cumulative bytes sent across all bots since session start.setConnections(int value) Connection events since the previous snapshot.setDisconnections(int value) Disconnection events since the previous snapshot.setMaxTickDurationMs(double value) Maximum tick duration observed across all bots in milliseconds.setPacketsReceivedPerSecond(double value) Current rate of packets received per second (computed from counter deltas).setPacketsReceivedTotal(long value) Cumulative packets received across all bots since session start.setPacketsSentPerSecond(double value) Current rate of packets sent per second (computed from counter deltas).setPacketsSentTotal(long value) Cumulative packets sent across all bots since session start.setTimestamp(com.google.protobuf.Timestamp value) When this snapshot was taken.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) When this snapshot was taken.setTotalLoadedChunks(int value) Total number of loaded chunks across all online bots.setTotalTrackedEntities(int value) Total number of tracked entities across all online bots.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricsSnapshot.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<MetricsSnapshot.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<MetricsSnapshot.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<MetricsSnapshot.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricsSnapshot.Builder>
-
mergeFrom
public MetricsSnapshot.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<MetricsSnapshot.Builder>- Throws:
IOException
-
hasTimestamp
public boolean hasTimestamp()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
hasTimestampin interfaceMetricsSnapshotOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampin interfaceMetricsSnapshotOrBuilder- Returns:
- The timestamp.
-
setTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
setTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
mergeTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
clearTimestamp
When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1; -
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()When this snapshot was taken.
.google.protobuf.Timestamp timestamp = 1;- Specified by:
getTimestampOrBuilderin interfaceMetricsSnapshotOrBuilder
-
getBotsOnline
public int getBotsOnline()Number of bots currently connected to the Minecraft server.
uint32 bots_online = 2;- Specified by:
getBotsOnlinein interfaceMetricsSnapshotOrBuilder- Returns:
- The botsOnline.
-
setBotsOnline
Number of bots currently connected to the Minecraft server.
uint32 bots_online = 2;- Parameters:
value- The botsOnline to set.- Returns:
- This builder for chaining.
-
clearBotsOnline
Number of bots currently connected to the Minecraft server.
uint32 bots_online = 2;- Returns:
- This builder for chaining.
-
getBotsTotal
public int getBotsTotal()Total number of bots configured in the instance (online + offline).
uint32 bots_total = 3;- Specified by:
getBotsTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The botsTotal.
-
setBotsTotal
Total number of bots configured in the instance (online + offline).
uint32 bots_total = 3;- Parameters:
value- The botsTotal to set.- Returns:
- This builder for chaining.
-
clearBotsTotal
Total number of bots configured in the instance (online + offline).
uint32 bots_total = 3;- Returns:
- This builder for chaining.
-
getPacketsSentTotal
public long getPacketsSentTotal()Cumulative packets sent across all bots since session start.
uint64 packets_sent_total = 4;- Specified by:
getPacketsSentTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsSentTotal.
-
setPacketsSentTotal
Cumulative packets sent across all bots since session start.
uint64 packets_sent_total = 4;- Parameters:
value- The packetsSentTotal to set.- Returns:
- This builder for chaining.
-
clearPacketsSentTotal
Cumulative packets sent across all bots since session start.
uint64 packets_sent_total = 4;- Returns:
- This builder for chaining.
-
getPacketsReceivedTotal
public long getPacketsReceivedTotal()Cumulative packets received across all bots since session start.
uint64 packets_received_total = 5;- Specified by:
getPacketsReceivedTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsReceivedTotal.
-
setPacketsReceivedTotal
Cumulative packets received across all bots since session start.
uint64 packets_received_total = 5;- Parameters:
value- The packetsReceivedTotal to set.- Returns:
- This builder for chaining.
-
clearPacketsReceivedTotal
Cumulative packets received across all bots since session start.
uint64 packets_received_total = 5;- Returns:
- This builder for chaining.
-
getBytesSentTotal
public long getBytesSentTotal()Cumulative bytes sent across all bots since session start.
uint64 bytes_sent_total = 6;- Specified by:
getBytesSentTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesSentTotal.
-
setBytesSentTotal
Cumulative bytes sent across all bots since session start.
uint64 bytes_sent_total = 6;- Parameters:
value- The bytesSentTotal to set.- Returns:
- This builder for chaining.
-
clearBytesSentTotal
Cumulative bytes sent across all bots since session start.
uint64 bytes_sent_total = 6;- Returns:
- This builder for chaining.
-
getBytesReceivedTotal
public long getBytesReceivedTotal()Cumulative bytes received across all bots since session start.
uint64 bytes_received_total = 7;- Specified by:
getBytesReceivedTotalin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesReceivedTotal.
-
setBytesReceivedTotal
Cumulative bytes received across all bots since session start.
uint64 bytes_received_total = 7;- Parameters:
value- The bytesReceivedTotal to set.- Returns:
- This builder for chaining.
-
clearBytesReceivedTotal
Cumulative bytes received across all bots since session start.
uint64 bytes_received_total = 7;- Returns:
- This builder for chaining.
-
getPacketsSentPerSecond
public double getPacketsSentPerSecond()Current rate of packets sent per second (computed from counter deltas).
double packets_sent_per_second = 8;- Specified by:
getPacketsSentPerSecondin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsSentPerSecond.
-
setPacketsSentPerSecond
Current rate of packets sent per second (computed from counter deltas).
double packets_sent_per_second = 8;- Parameters:
value- The packetsSentPerSecond to set.- Returns:
- This builder for chaining.
-
clearPacketsSentPerSecond
Current rate of packets sent per second (computed from counter deltas).
double packets_sent_per_second = 8;- Returns:
- This builder for chaining.
-
getPacketsReceivedPerSecond
public double getPacketsReceivedPerSecond()Current rate of packets received per second (computed from counter deltas).
double packets_received_per_second = 9;- Specified by:
getPacketsReceivedPerSecondin interfaceMetricsSnapshotOrBuilder- Returns:
- The packetsReceivedPerSecond.
-
setPacketsReceivedPerSecond
Current rate of packets received per second (computed from counter deltas).
double packets_received_per_second = 9;- Parameters:
value- The packetsReceivedPerSecond to set.- Returns:
- This builder for chaining.
-
clearPacketsReceivedPerSecond
Current rate of packets received per second (computed from counter deltas).
double packets_received_per_second = 9;- Returns:
- This builder for chaining.
-
getBytesSentPerSecond
public double getBytesSentPerSecond()Current rate of bytes sent per second (computed from counter deltas).
double bytes_sent_per_second = 10;- Specified by:
getBytesSentPerSecondin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesSentPerSecond.
-
setBytesSentPerSecond
Current rate of bytes sent per second (computed from counter deltas).
double bytes_sent_per_second = 10;- Parameters:
value- The bytesSentPerSecond to set.- Returns:
- This builder for chaining.
-
clearBytesSentPerSecond
Current rate of bytes sent per second (computed from counter deltas).
double bytes_sent_per_second = 10;- Returns:
- This builder for chaining.
-
getBytesReceivedPerSecond
public double getBytesReceivedPerSecond()Current rate of bytes received per second (computed from counter deltas).
double bytes_received_per_second = 11;- Specified by:
getBytesReceivedPerSecondin interfaceMetricsSnapshotOrBuilder- Returns:
- The bytesReceivedPerSecond.
-
setBytesReceivedPerSecond
Current rate of bytes received per second (computed from counter deltas).
double bytes_received_per_second = 11;- Parameters:
value- The bytesReceivedPerSecond to set.- Returns:
- This builder for chaining.
-
clearBytesReceivedPerSecond
Current rate of bytes received per second (computed from counter deltas).
double bytes_received_per_second = 11;- Returns:
- This builder for chaining.
-
getAvgTickDurationMs
public double getAvgTickDurationMs()Average tick duration across all bots in milliseconds.
double avg_tick_duration_ms = 12;- Specified by:
getAvgTickDurationMsin interfaceMetricsSnapshotOrBuilder- Returns:
- The avgTickDurationMs.
-
setAvgTickDurationMs
Average tick duration across all bots in milliseconds.
double avg_tick_duration_ms = 12;- Parameters:
value- The avgTickDurationMs to set.- Returns:
- This builder for chaining.
-
clearAvgTickDurationMs
Average tick duration across all bots in milliseconds.
double avg_tick_duration_ms = 12;- Returns:
- This builder for chaining.
-
getMaxTickDurationMs
public double getMaxTickDurationMs()Maximum tick duration observed across all bots in milliseconds. Reset each sampling interval.
double max_tick_duration_ms = 13;- Specified by:
getMaxTickDurationMsin interfaceMetricsSnapshotOrBuilder- Returns:
- The maxTickDurationMs.
-
setMaxTickDurationMs
Maximum tick duration observed across all bots in milliseconds. Reset each sampling interval.
double max_tick_duration_ms = 13;- Parameters:
value- The maxTickDurationMs to set.- Returns:
- This builder for chaining.
-
clearMaxTickDurationMs
Maximum tick duration observed across all bots in milliseconds. Reset each sampling interval.
double max_tick_duration_ms = 13;- Returns:
- This builder for chaining.
-
getAvgHealth
public double getAvgHealth()Average health across all online bots with player data. Range: 0 to 20 (Minecraft health points).
double avg_health = 14;- Specified by:
getAvgHealthin interfaceMetricsSnapshotOrBuilder- Returns:
- The avgHealth.
-
setAvgHealth
Average health across all online bots with player data. Range: 0 to 20 (Minecraft health points).
double avg_health = 14;- Parameters:
value- The avgHealth to set.- Returns:
- This builder for chaining.
-
clearAvgHealth
Average health across all online bots with player data. Range: 0 to 20 (Minecraft health points).
double avg_health = 14;- Returns:
- This builder for chaining.
-
getAvgFoodLevel
public double getAvgFoodLevel()Average food level across all online bots with player data. Range: 0 to 20 (Minecraft food points).
double avg_food_level = 15;- Specified by:
getAvgFoodLevelin interfaceMetricsSnapshotOrBuilder- Returns:
- The avgFoodLevel.
-
setAvgFoodLevel
Average food level across all online bots with player data. Range: 0 to 20 (Minecraft food points).
double avg_food_level = 15;- Parameters:
value- The avgFoodLevel to set.- Returns:
- This builder for chaining.
-
clearAvgFoodLevel
Average food level across all online bots with player data. Range: 0 to 20 (Minecraft food points).
double avg_food_level = 15;- Returns:
- This builder for chaining.
-
getTotalLoadedChunks
public int getTotalLoadedChunks()Total number of loaded chunks across all online bots.
uint32 total_loaded_chunks = 16;- Specified by:
getTotalLoadedChunksin interfaceMetricsSnapshotOrBuilder- Returns:
- The totalLoadedChunks.
-
setTotalLoadedChunks
Total number of loaded chunks across all online bots.
uint32 total_loaded_chunks = 16;- Parameters:
value- The totalLoadedChunks to set.- Returns:
- This builder for chaining.
-
clearTotalLoadedChunks
Total number of loaded chunks across all online bots.
uint32 total_loaded_chunks = 16;- Returns:
- This builder for chaining.
-
getTotalTrackedEntities
public int getTotalTrackedEntities()Total number of tracked entities across all online bots.
uint32 total_tracked_entities = 17;- Specified by:
getTotalTrackedEntitiesin interfaceMetricsSnapshotOrBuilder- Returns:
- The totalTrackedEntities.
-
setTotalTrackedEntities
Total number of tracked entities across all online bots.
uint32 total_tracked_entities = 17;- Parameters:
value- The totalTrackedEntities to set.- Returns:
- This builder for chaining.
-
clearTotalTrackedEntities
Total number of tracked entities across all online bots.
uint32 total_tracked_entities = 17;- Returns:
- This builder for chaining.
-
getConnections
public int getConnections()Connection events since the previous snapshot.
uint32 connections = 18;- Specified by:
getConnectionsin interfaceMetricsSnapshotOrBuilder- Returns:
- The connections.
-
setConnections
Connection events since the previous snapshot.
uint32 connections = 18;- Parameters:
value- The connections to set.- Returns:
- This builder for chaining.
-
clearConnections
Connection events since the previous snapshot.
uint32 connections = 18;- Returns:
- This builder for chaining.
-
getDisconnections
public int getDisconnections()Disconnection events since the previous snapshot.
uint32 disconnections = 19;- Specified by:
getDisconnectionsin interfaceMetricsSnapshotOrBuilder- Returns:
- The disconnections.
-
setDisconnections
Disconnection events since the previous snapshot.
uint32 disconnections = 19;- Parameters:
value- The disconnections to set.- Returns:
- This builder for chaining.
-
clearDisconnections
Disconnection events since the previous snapshot.
uint32 disconnections = 19;- Returns:
- This builder for chaining.
-