Class ServerMetricsSnapshot.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerMetricsSnapshot.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
com.soulfiremc.grpc.generated.ServerMetricsSnapshot.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerMetricsSnapshotOrBuilder, Cloneable
Enclosing class:
ServerMetricsSnapshot

public static final class ServerMetricsSnapshot.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder> implements ServerMetricsSnapshotOrBuilder
A single server-level system metrics data point sampled at a fixed interval.
Protobuf type soulfire.v1.ServerMetricsSnapshot
  • Method Details

    • getDescriptor

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

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

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

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

      public ServerMetricsSnapshot buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServerMetricsSnapshot.Builder>
    • mergeFrom

      public ServerMetricsSnapshot.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<ServerMetricsSnapshot.Builder>
      Throws:
      IOException
    • hasTimestamp

      public boolean hasTimestamp()
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
      Specified by:
      hasTimestamp in interface ServerMetricsSnapshotOrBuilder
      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:
      getTimestamp in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public ServerMetricsSnapshot.Builder setTimestamp(com.google.protobuf.Timestamp value)
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
    • setTimestamp

      public ServerMetricsSnapshot.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
    • mergeTimestamp

      public ServerMetricsSnapshot.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
      When this snapshot was taken.
      
      .google.protobuf.Timestamp timestamp = 1;
    • clearTimestamp

      public ServerMetricsSnapshot.Builder 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:
      getTimestampOrBuilder in interface ServerMetricsSnapshotOrBuilder
    • getProcessCpuLoad

      public double getProcessCpuLoad()
      JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double process_cpu_load = 2;
      Specified by:
      getProcessCpuLoad in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The processCpuLoad.
    • setProcessCpuLoad

      public ServerMetricsSnapshot.Builder setProcessCpuLoad(double value)
      JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double process_cpu_load = 2;
      Parameters:
      value - The processCpuLoad to set.
      Returns:
      This builder for chaining.
    • clearProcessCpuLoad

      public ServerMetricsSnapshot.Builder clearProcessCpuLoad()
      JVM process CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double process_cpu_load = 2;
      Returns:
      This builder for chaining.
    • getSystemCpuLoad

      public double getSystemCpuLoad()
      System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double system_cpu_load = 3;
      Specified by:
      getSystemCpuLoad in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The systemCpuLoad.
    • setSystemCpuLoad

      public ServerMetricsSnapshot.Builder setSystemCpuLoad(double value)
      System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double system_cpu_load = 3;
      Parameters:
      value - The systemCpuLoad to set.
      Returns:
      This builder for chaining.
    • clearSystemCpuLoad

      public ServerMetricsSnapshot.Builder clearSystemCpuLoad()
      System-wide CPU load (0.0 to 1.0, or -1.0 if unavailable).
      
      double system_cpu_load = 3;
      Returns:
      This builder for chaining.
    • getHeapUsedBytes

      public long getHeapUsedBytes()
      Heap memory currently used in bytes.
      
      uint64 heap_used_bytes = 4;
      Specified by:
      getHeapUsedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapUsedBytes.
    • setHeapUsedBytes

      public ServerMetricsSnapshot.Builder setHeapUsedBytes(long value)
      Heap memory currently used in bytes.
      
      uint64 heap_used_bytes = 4;
      Parameters:
      value - The heapUsedBytes to set.
      Returns:
      This builder for chaining.
    • clearHeapUsedBytes

      public ServerMetricsSnapshot.Builder clearHeapUsedBytes()
      Heap memory currently used in bytes.
      
      uint64 heap_used_bytes = 4;
      Returns:
      This builder for chaining.
    • getHeapCommittedBytes

      public long getHeapCommittedBytes()
      Heap memory committed (reserved by JVM) in bytes.
      
      uint64 heap_committed_bytes = 5;
      Specified by:
      getHeapCommittedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapCommittedBytes.
    • setHeapCommittedBytes

      public ServerMetricsSnapshot.Builder setHeapCommittedBytes(long value)
      Heap memory committed (reserved by JVM) in bytes.
      
      uint64 heap_committed_bytes = 5;
      Parameters:
      value - The heapCommittedBytes to set.
      Returns:
      This builder for chaining.
    • clearHeapCommittedBytes

      public ServerMetricsSnapshot.Builder clearHeapCommittedBytes()
      Heap memory committed (reserved by JVM) in bytes.
      
      uint64 heap_committed_bytes = 5;
      Returns:
      This builder for chaining.
    • getHeapMaxBytes

      public long getHeapMaxBytes()
      Maximum heap memory in bytes (-1 if undefined).
      
      int64 heap_max_bytes = 6;
      Specified by:
      getHeapMaxBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The heapMaxBytes.
    • setHeapMaxBytes

      public ServerMetricsSnapshot.Builder setHeapMaxBytes(long value)
      Maximum heap memory in bytes (-1 if undefined).
      
      int64 heap_max_bytes = 6;
      Parameters:
      value - The heapMaxBytes to set.
      Returns:
      This builder for chaining.
    • clearHeapMaxBytes

      public ServerMetricsSnapshot.Builder clearHeapMaxBytes()
      Maximum heap memory in bytes (-1 if undefined).
      
      int64 heap_max_bytes = 6;
      Returns:
      This builder for chaining.
    • getNonHeapUsedBytes

      public long getNonHeapUsedBytes()
      Non-heap memory currently used in bytes.
      
      uint64 non_heap_used_bytes = 7;
      Specified by:
      getNonHeapUsedBytes in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The nonHeapUsedBytes.
    • setNonHeapUsedBytes

      public ServerMetricsSnapshot.Builder setNonHeapUsedBytes(long value)
      Non-heap memory currently used in bytes.
      
      uint64 non_heap_used_bytes = 7;
      Parameters:
      value - The nonHeapUsedBytes to set.
      Returns:
      This builder for chaining.
    • clearNonHeapUsedBytes

      public ServerMetricsSnapshot.Builder clearNonHeapUsedBytes()
      Non-heap memory currently used in bytes.
      
      uint64 non_heap_used_bytes = 7;
      Returns:
      This builder for chaining.
    • getThreadCount

      public int getThreadCount()
      Current live thread count.
      
      uint32 thread_count = 8;
      Specified by:
      getThreadCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The threadCount.
    • setThreadCount

      public ServerMetricsSnapshot.Builder setThreadCount(int value)
      Current live thread count.
      
      uint32 thread_count = 8;
      Parameters:
      value - The threadCount to set.
      Returns:
      This builder for chaining.
    • clearThreadCount

      public ServerMetricsSnapshot.Builder clearThreadCount()
      Current live thread count.
      
      uint32 thread_count = 8;
      Returns:
      This builder for chaining.
    • getDaemonThreadCount

      public int getDaemonThreadCount()
      Current daemon thread count.
      
      uint32 daemon_thread_count = 9;
      Specified by:
      getDaemonThreadCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The daemonThreadCount.
    • setDaemonThreadCount

      public ServerMetricsSnapshot.Builder setDaemonThreadCount(int value)
      Current daemon thread count.
      
      uint32 daemon_thread_count = 9;
      Parameters:
      value - The daemonThreadCount to set.
      Returns:
      This builder for chaining.
    • clearDaemonThreadCount

      public ServerMetricsSnapshot.Builder clearDaemonThreadCount()
      Current daemon thread count.
      
      uint32 daemon_thread_count = 9;
      Returns:
      This builder for chaining.
    • getGcCollectionCount

      public long getGcCollectionCount()
      Cumulative GC collection count across all collectors.
      
      uint64 gc_collection_count = 10;
      Specified by:
      getGcCollectionCount in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The gcCollectionCount.
    • setGcCollectionCount

      public ServerMetricsSnapshot.Builder setGcCollectionCount(long value)
      Cumulative GC collection count across all collectors.
      
      uint64 gc_collection_count = 10;
      Parameters:
      value - The gcCollectionCount to set.
      Returns:
      This builder for chaining.
    • clearGcCollectionCount

      public ServerMetricsSnapshot.Builder clearGcCollectionCount()
      Cumulative GC collection count across all collectors.
      
      uint64 gc_collection_count = 10;
      Returns:
      This builder for chaining.
    • getGcCollectionTimeMs

      public long getGcCollectionTimeMs()
      Cumulative GC collection time in milliseconds across all collectors.
      
      uint64 gc_collection_time_ms = 11;
      Specified by:
      getGcCollectionTimeMs in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The gcCollectionTimeMs.
    • setGcCollectionTimeMs

      public ServerMetricsSnapshot.Builder setGcCollectionTimeMs(long value)
      Cumulative GC collection time in milliseconds across all collectors.
      
      uint64 gc_collection_time_ms = 11;
      Parameters:
      value - The gcCollectionTimeMs to set.
      Returns:
      This builder for chaining.
    • clearGcCollectionTimeMs

      public ServerMetricsSnapshot.Builder clearGcCollectionTimeMs()
      Cumulative GC collection time in milliseconds across all collectors.
      
      uint64 gc_collection_time_ms = 11;
      Returns:
      This builder for chaining.
    • getUptimeMs

      public long getUptimeMs()
      JVM uptime in milliseconds.
      
      uint64 uptime_ms = 12;
      Specified by:
      getUptimeMs in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The uptimeMs.
    • setUptimeMs

      public ServerMetricsSnapshot.Builder setUptimeMs(long value)
      JVM uptime in milliseconds.
      
      uint64 uptime_ms = 12;
      Parameters:
      value - The uptimeMs to set.
      Returns:
      This builder for chaining.
    • clearUptimeMs

      public ServerMetricsSnapshot.Builder clearUptimeMs()
      JVM uptime in milliseconds.
      
      uint64 uptime_ms = 12;
      Returns:
      This builder for chaining.
    • getAvailableProcessors

      public int getAvailableProcessors()
      Number of available processors.
      
      uint32 available_processors = 13;
      Specified by:
      getAvailableProcessors in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The availableProcessors.
    • setAvailableProcessors

      public ServerMetricsSnapshot.Builder setAvailableProcessors(int value)
      Number of available processors.
      
      uint32 available_processors = 13;
      Parameters:
      value - The availableProcessors to set.
      Returns:
      This builder for chaining.
    • clearAvailableProcessors

      public ServerMetricsSnapshot.Builder clearAvailableProcessors()
      Number of available processors.
      
      uint32 available_processors = 13;
      Returns:
      This builder for chaining.
    • getTotalBotsOnline

      public int getTotalBotsOnline()
      Total bots online across all instances.
      
      uint32 total_bots_online = 14;
      Specified by:
      getTotalBotsOnline in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The totalBotsOnline.
    • setTotalBotsOnline

      public ServerMetricsSnapshot.Builder setTotalBotsOnline(int value)
      Total bots online across all instances.
      
      uint32 total_bots_online = 14;
      Parameters:
      value - The totalBotsOnline to set.
      Returns:
      This builder for chaining.
    • clearTotalBotsOnline

      public ServerMetricsSnapshot.Builder clearTotalBotsOnline()
      Total bots online across all instances.
      
      uint32 total_bots_online = 14;
      Returns:
      This builder for chaining.
    • getTotalBotsTotal

      public int getTotalBotsTotal()
      Total bots configured across all instances.
      
      uint32 total_bots_total = 15;
      Specified by:
      getTotalBotsTotal in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The totalBotsTotal.
    • setTotalBotsTotal

      public ServerMetricsSnapshot.Builder setTotalBotsTotal(int value)
      Total bots configured across all instances.
      
      uint32 total_bots_total = 15;
      Parameters:
      value - The totalBotsTotal to set.
      Returns:
      This builder for chaining.
    • clearTotalBotsTotal

      public ServerMetricsSnapshot.Builder clearTotalBotsTotal()
      Total bots configured across all instances.
      
      uint32 total_bots_total = 15;
      Returns:
      This builder for chaining.
    • getActiveInstances

      public int getActiveInstances()
      Number of active (non-stopped) instances.
      
      uint32 active_instances = 16;
      Specified by:
      getActiveInstances in interface ServerMetricsSnapshotOrBuilder
      Returns:
      The activeInstances.
    • setActiveInstances

      public ServerMetricsSnapshot.Builder setActiveInstances(int value)
      Number of active (non-stopped) instances.
      
      uint32 active_instances = 16;
      Parameters:
      value - The activeInstances to set.
      Returns:
      This builder for chaining.
    • clearActiveInstances

      public ServerMetricsSnapshot.Builder clearActiveInstances()
      Number of active (non-stopped) instances.
      
      uint32 active_instances = 16;
      Returns:
      This builder for chaining.