Enum Class PushFormat

java.lang.Object
java.lang.Enum<PushFormat>
codes.grow.packages.loki.PushFormat
All Implemented Interfaces:
Serializable, Comparable<PushFormat>, Constable

public enum PushFormat extends Enum<PushFormat>
  • Enum Constant Details

    • JSON

      public static final PushFormat JSON
      application/json (default; optionally gzip).
    • PROTOBUF

      public static final PushFormat PROTOBUF
      Snappy-compressed logproto.PushRequest (application/x-protobuf), encoded from the field numbers of Loki's Apache-2.0 pkg/push/push.proto.
  • Method Details

    • values

      public static PushFormat[] 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 PushFormat 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