Package io.opentelemetry.proto.trace.v1
Enum TraceConfig.SamplerCase
- java.lang.Object
-
- java.lang.Enum<TraceConfig.SamplerCase>
-
- io.opentelemetry.proto.trace.v1.TraceConfig.SamplerCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,Serializable,Comparable<TraceConfig.SamplerCase>
- Enclosing class:
- TraceConfig
public static enum TraceConfig.SamplerCase extends Enum<TraceConfig.SamplerCase> implements com.google.protobuf.Internal.EnumLite
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT_SAMPLERRATE_LIMITING_SAMPLERSAMPLER_NOT_SETTRACE_ID_RATIO_BASED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TraceConfig.SamplerCaseforNumber(int value)intgetNumber()static TraceConfig.SamplerCasevalueOf(int value)Deprecated.static TraceConfig.SamplerCasevalueOf(String name)Returns the enum constant of this type with the specified name.static TraceConfig.SamplerCase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT_SAMPLER
public static final TraceConfig.SamplerCase CONSTANT_SAMPLER
-
TRACE_ID_RATIO_BASED
public static final TraceConfig.SamplerCase TRACE_ID_RATIO_BASED
-
RATE_LIMITING_SAMPLER
public static final TraceConfig.SamplerCase RATE_LIMITING_SAMPLER
-
SAMPLER_NOT_SET
public static final TraceConfig.SamplerCase SAMPLER_NOT_SET
-
-
Method Detail
-
values
public static TraceConfig.SamplerCase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TraceConfig.SamplerCase c : TraceConfig.SamplerCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TraceConfig.SamplerCase valueOf(String name)
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
-
valueOf
@Deprecated public static TraceConfig.SamplerCase valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static TraceConfig.SamplerCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
-