Package prometheus

Enum Class Remote.ReadRequest.ResponseType

java.lang.Object
java.lang.Enum<Remote.ReadRequest.ResponseType>
prometheus.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
  • Enum Constant Details

    • SAMPLES

      public static final Remote.ReadRequest.ResponseType 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

      public static final Remote.ReadRequest.ResponseType 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

      public static final Remote.ReadRequest.ResponseType UNRECOGNIZED
  • Field Details

    • SAMPLES_VALUE

      public static final int SAMPLES_VALUE
       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;
      See Also:
    • STREAMED_XOR_CHUNKS_VALUE

      public static final int STREAMED_XOR_CHUNKS_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static Remote.ReadRequest.ResponseType[] 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

      public static Remote.ReadRequest.ResponseType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Remote.ReadRequest.ResponseType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Remote.ReadRequest.ResponseType forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null