Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionThe packet matching this rule will be allowed to transmit, but a threat_log entry will be sent to the consumer project.The packet matching this rule will be allowed to transmit.The default action (as specified by the vendor) is taken.The packet matching this rule will be dropped, and a threat_log entry will be sent to the consumer project.Threat action not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe packet matching this rule will be allowed to transmit, but a threat_log entry will be sent to the consumer project.static final intThe packet matching this rule will be allowed to transmit.static final intThe default action (as specified by the vendor) is taken.static final intThe packet matching this rule will be dropped, and a threat_log entry will be sent to the consumer project.static final intThreat action not specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreatActionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ThreatAction>static ThreatActionvalueOf(int value) Deprecated.static ThreatActionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ThreatActionReturns the enum constant of this type with the specified name.static ThreatAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THREAT_ACTION_UNSPECIFIED
Threat action not specified.
THREAT_ACTION_UNSPECIFIED = 0; -
DEFAULT_ACTION
The default action (as specified by the vendor) is taken.
DEFAULT_ACTION = 4; -
ALLOW
The packet matching this rule will be allowed to transmit.
ALLOW = 1; -
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
The packet matching this rule will be dropped, and a threat_log entry will be sent to the consumer project.
DENY = 3; -
UNRECOGNIZED
-
-
Field Details
-
THREAT_ACTION_UNSPECIFIED_VALUE
public static final int THREAT_ACTION_UNSPECIFIED_VALUEThreat action not specified.
THREAT_ACTION_UNSPECIFIED = 0;- See Also:
-
DEFAULT_ACTION_VALUE
public static final int DEFAULT_ACTION_VALUEThe default action (as specified by the vendor) is taken.
DEFAULT_ACTION = 4;- See Also:
-
ALLOW_VALUE
public static final int ALLOW_VALUEThe packet matching this rule will be allowed to transmit.
ALLOW = 1;- See Also:
-
ALERT_VALUE
public static final int ALERT_VALUEThe 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_VALUEThe 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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-