Enum ThreatAction

java.lang.Object
java.lang.Enum<ThreatAction>
com.google.cloud.networksecurity.v1.ThreatAction
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ThreatAction>

@Generated public enum ThreatAction extends Enum<ThreatAction> implements com.google.protobuf.ProtocolMessageEnum
 Threat action override.
 
Protobuf enum google.cloud.networksecurity.v1.ThreatAction
  • Enum Constant Details

    • THREAT_ACTION_UNSPECIFIED

      public static final ThreatAction THREAT_ACTION_UNSPECIFIED
       Threat action not specified.
       
      THREAT_ACTION_UNSPECIFIED = 0;
    • DEFAULT_ACTION

      public static final ThreatAction DEFAULT_ACTION
       The default action (as specified by the vendor) is taken.
       
      DEFAULT_ACTION = 4;
    • ALLOW

      public static final ThreatAction ALLOW
       The packet matching this rule will be allowed to transmit.
       
      ALLOW = 1;
    • ALERT

      public static final ThreatAction ALERT
       The packet matching this rule will be allowed to transmit, but a threat_log
       entry will be sent to the consumer project.
       
      ALERT = 2;
    • DENY

      public static final ThreatAction DENY
       The packet matching this rule will be dropped, and a threat_log entry will
       be sent to the consumer project.
       
      DENY = 3;
    • UNRECOGNIZED

      public static final ThreatAction UNRECOGNIZED
  • Field Details

    • THREAT_ACTION_UNSPECIFIED_VALUE

      public static final int THREAT_ACTION_UNSPECIFIED_VALUE
       Threat action not specified.
       
      THREAT_ACTION_UNSPECIFIED = 0;
      See Also:
    • DEFAULT_ACTION_VALUE

      public static final int DEFAULT_ACTION_VALUE
       The default action (as specified by the vendor) is taken.
       
      DEFAULT_ACTION = 4;
      See Also:
    • ALLOW_VALUE

      public static final int ALLOW_VALUE
       The packet matching this rule will be allowed to transmit.
       
      ALLOW = 1;
      See Also:
    • ALERT_VALUE

      public static final int ALERT_VALUE
       The packet matching this rule will be allowed to transmit, but a threat_log
       entry will be sent to the consumer project.
       
      ALERT = 2;
      See Also:
    • DENY_VALUE

      public static final int DENY_VALUE
       The packet matching this rule will be dropped, and a threat_log entry will
       be sent to the consumer project.
       
      DENY = 3;
      See Also:
  • Method Details

    • values

      public static ThreatAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ThreatAction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 ThreatAction valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ThreatAction 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<ThreatAction> 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 ThreatAction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null