Package prometheus
Enum Class Remote.ReadRequest.ResponseType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Remote.ReadRequest.ResponseType>,Constable
- Enclosing class:
- Remote.ReadRequest
public static enum Remote.ReadRequest.ResponseType
extends Enum<Remote.ReadRequest.ResponseType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
prometheus.ReadRequest.ResponseType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionServer will return a single ReadResponse message with matched series that includes list of raw samples.Server will stream a delimited ChunkedReadResponse message that contains XOR or HISTOGRAM(!) encoded chunks for a single series. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intServer will return a single ReadResponse message with matched series that includes list of raw samples.static final intServer will stream a delimited ChunkedReadResponse message that contains XOR or HISTOGRAM(!) encoded chunks for a single series. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Remote.ReadRequest.ResponseType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static Remote.ReadRequest.ResponseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAMPLES
Server will return a single ReadResponse message with matched series that includes list of raw samples. It's recommended to use streamed response types instead. Response headers: Content-Type: "application/x-protobuf" Content-Encoding: "snappy"
SAMPLES = 0; -
STREAMED_XOR_CHUNKS
Server will stream a delimited ChunkedReadResponse message that contains XOR or HISTOGRAM(!) encoded chunks for a single series. Each message is following varint size and fixed size bigendian uint32 for CRC32 Castagnoli checksum. Response headers: Content-Type: "application/x-streamed-protobuf; proto=prometheus.ChunkedReadResponse" Content-Encoding: ""
STREAMED_XOR_CHUNKS = 1; -
UNRECOGNIZED
-
-
Field Details
-
SAMPLES_VALUE
public static final int SAMPLES_VALUEServer will return a single ReadResponse message with matched series that includes list of raw samples. It's recommended to use streamed response types instead. Response headers: Content-Type: "application/x-protobuf" Content-Encoding: "snappy"
SAMPLES = 0;- See Also:
-
STREAMED_XOR_CHUNKS_VALUE
public static final int STREAMED_XOR_CHUNKS_VALUEServer will stream a delimited ChunkedReadResponse message that contains XOR or HISTOGRAM(!) encoded chunks for a single series. Each message is following varint size and fixed size bigendian uint32 for CRC32 Castagnoli checksum. Response headers: Content-Type: "application/x-streamed-protobuf; proto=prometheus.ChunkedReadResponse" Content-Encoding: ""
STREAMED_XOR_CHUNKS = 1;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Remote.ReadRequest.ResponseType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Remote.ReadRequest.ResponseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-