Class ServerStatsFieldEnums

java.lang.Object
io.opencensus.common.ServerStatsFieldEnums

public final class ServerStatsFieldEnums extends Object
A Enum representation for Ids and Size for attributes of ServerStats.

See opencensus-server-stats-specs for the field ids and their length defined for Server Stats

Since:
0.16
  • Field Details

    • TOTALSIZE

      private static final int TOTALSIZE
  • Constructor Details

    • ServerStatsFieldEnums

      private ServerStatsFieldEnums()
  • Method Details

    • computeTotalSize

      private static int computeTotalSize()
    • getTotalSize

      public static int getTotalSize()
      Returns the total size required to encode the ServerStats.
      Returns:
      the total size required to encode all fields in ServerStats.
      Since:
      0.16