io.envoyproxy.envoy.config.metrics.v3.HistogramEmitMode Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/metrics/v3/metrics_service.proto
package io.envoyproxy.envoy.config.metrics.v3;
/**
*
* HistogramEmitMode is used to configure which metric types should be emitted for histograms.
*
*
* Protobuf enum {@code envoy.config.metrics.v3.HistogramEmitMode}
*/
public enum HistogramEmitMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Emit Histogram and Summary metric types.
*
*
* SUMMARY_AND_HISTOGRAM = 0;
*/
SUMMARY_AND_HISTOGRAM(0),
/**
*
* Emit only Summary metric types.
*
*
* SUMMARY = 1;
*/
SUMMARY(1),
/**
*
* Emit only Histogram metric types.
*
*
* HISTOGRAM = 2;
*/
HISTOGRAM(2),
UNRECOGNIZED(-1),
;
/**
*
* Emit Histogram and Summary metric types.
*
*
* SUMMARY_AND_HISTOGRAM = 0;
*/
public static final int SUMMARY_AND_HISTOGRAM_VALUE = 0;
/**
*
* Emit only Summary metric types.
*
*
* SUMMARY = 1;
*/
public static final int SUMMARY_VALUE = 1;
/**
*
* Emit only Histogram metric types.
*
*
* HISTOGRAM = 2;
*/
public static final int HISTOGRAM_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HistogramEmitMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static HistogramEmitMode forNumber(int value) {
switch (value) {
case 0: return SUMMARY_AND_HISTOGRAM;
case 1: return SUMMARY;
case 2: return HISTOGRAM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HistogramEmitMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public HistogramEmitMode findValueByNumber(int number) {
return HistogramEmitMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v3.MetricsServiceProto.getDescriptor().getEnumTypes().get(0);
}
private static final HistogramEmitMode[] VALUES = values();
public static HistogramEmitMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private HistogramEmitMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.config.metrics.v3.HistogramEmitMode)
}