Enum Class RetentionConfig.RetentionPolicy

java.lang.Object
java.lang.Enum<RetentionConfig.RetentionPolicy>
ai.pipestream.data.v1.RetentionConfig.RetentionPolicy
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RetentionConfig.RetentionPolicy>, Constable
Enclosing class:
RetentionConfig

public static enum RetentionConfig.RetentionPolicy extends Enum<RetentionConfig.RetentionPolicy> implements com.google.protobuf.ProtocolMessageEnum
 Retention policy options.
 
Protobuf enum ai.pipestream.data.v1.RetentionConfig.RetentionPolicy
  • Enum Constant Details

  • Field Details

    • RETENTION_POLICY_UNSPECIFIED_VALUE

      public static final int RETENTION_POLICY_UNSPECIFIED_VALUE
      RETENTION_POLICY_UNSPECIFIED = 0;
      See Also:
    • RETENTION_POLICY_INDEFINITE_VALUE

      public static final int RETENTION_POLICY_INDEFINITE_VALUE
       Keep forever.
       
      RETENTION_POLICY_INDEFINITE = 1;
      See Also:
    • RETENTION_POLICY_TIME_BASED_VALUE

      public static final int RETENTION_POLICY_TIME_BASED_VALUE
       Delete after retention_days.
       
      RETENTION_POLICY_TIME_BASED = 2;
      See Also:
    • RETENTION_POLICY_VERSION_BASED_VALUE

      public static final int RETENTION_POLICY_VERSION_BASED_VALUE
       Keep N versions.
       
      RETENTION_POLICY_VERSION_BASED = 3;
      See Also:
    • RETENTION_POLICY_NO_RETENTION_VALUE

      public static final int RETENTION_POLICY_NO_RETENTION_VALUE
       Ephemeral (no archival).
       
      RETENTION_POLICY_NO_RETENTION = 4;
      See Also:
  • Method Details

    • values

      public static RetentionConfig.RetentionPolicy[] 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 RetentionConfig.RetentionPolicy 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 RetentionConfig.RetentionPolicy 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 RetentionConfig.RetentionPolicy 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<RetentionConfig.RetentionPolicy> 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 RetentionConfig.RetentionPolicy 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