Package io.opencensus.common
Enum ServerStatsFieldEnums.Size
- All Implemented Interfaces:
Serializable
,Comparable<ServerStatsFieldEnums.Size>
- Enclosing class:
ServerStatsFieldEnums
Size for each attributes in
ServerStats
.- Since:
- 0.16
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNumber of bytes used to represent latency observed at Load Balancer.Number of bytes used to represent latency observed at Server.Number of bytes used to represent Trace option. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
value()
Returns the numerical value of theServerStatsFieldEnums.Size
.static ServerStatsFieldEnums.Size
Returns the enum constant of this type with the specified name.static ServerStatsFieldEnums.Size[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SERVER_STATS_LB_LATENCY_SIZE
Number of bytes used to represent latency observed at Load Balancer.- Since:
- 0.16
-
SERVER_STATS_SERVICE_LATENCY_SIZE
Number of bytes used to represent latency observed at Server.- Since:
- 0.16
-
SERVER_STATS_TRACE_OPTION_SIZE
Number of bytes used to represent Trace option.- Since:
- 0.16
-
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
Size
private Size(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()Returns the numerical value of theServerStatsFieldEnums.Size
.- Returns:
- the numerical value of the
Size
. - Since:
- 0.16
-