Enum Class NotificationType

java.lang.Object
java.lang.Enum<NotificationType>
io.streamnative.oxia.proto.NotificationType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<NotificationType>, Constable

public enum NotificationType extends Enum<NotificationType> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum io.streamnative.oxia.proto.NotificationType
  • Enum Constant Details

    • KEY_CREATED

      public static final NotificationType KEY_CREATED
      KEY_CREATED = 0;
    • KEY_MODIFIED

      public static final NotificationType KEY_MODIFIED
      KEY_MODIFIED = 1;
    • KEY_DELETED

      public static final NotificationType KEY_DELETED
      KEY_DELETED = 2;
    • KEY_RANGE_DELETED

      public static final NotificationType KEY_RANGE_DELETED
      KEY_RANGE_DELETED = 3;
    • UNRECOGNIZED

      public static final NotificationType UNRECOGNIZED
  • Field Details

    • KEY_CREATED_VALUE

      public static final int KEY_CREATED_VALUE
      KEY_CREATED = 0;
      See Also:
    • KEY_MODIFIED_VALUE

      public static final int KEY_MODIFIED_VALUE
      KEY_MODIFIED = 1;
      See Also:
    • KEY_DELETED_VALUE

      public static final int KEY_DELETED_VALUE
      KEY_DELETED = 2;
      See Also:
    • KEY_RANGE_DELETED_VALUE

      public static final int KEY_RANGE_DELETED_VALUE
      KEY_RANGE_DELETED = 3;
      See Also:
  • Method Details

    • values

      public static NotificationType[] 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 NotificationType 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 NotificationType 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 NotificationType 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<NotificationType> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static NotificationType 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