public enum ThreatType extends Enum<ThreatType> implements com.google.protobuf.ProtocolMessageEnum
The type of threat. This maps dirrectly to the threat list a threat may belong to.Protobuf enum
google.cloud.webrisk.v1beta1.ThreatType| Enum Constant and Description |
|---|
MALWARE
Malware targeting any platform.
|
SOCIAL_ENGINEERING
Social engineering targeting any platform.
|
THREAT_TYPE_UNSPECIFIED
Unknown.
|
UNRECOGNIZED |
UNWANTED_SOFTWARE
Unwanted software targeting any platform.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MALWARE_VALUE
Malware targeting any platform.
|
static int |
SOCIAL_ENGINEERING_VALUE
Social engineering targeting any platform.
|
static int |
THREAT_TYPE_UNSPECIFIED_VALUE
Unknown.
|
static int |
UNWANTED_SOFTWARE_VALUE
Unwanted software targeting any platform.
|
| Modifier and Type | Method and Description |
|---|---|
static ThreatType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ThreatType> |
internalGetValueMap() |
static ThreatType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ThreatType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ThreatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreatType THREAT_TYPE_UNSPECIFIED
Unknown.
THREAT_TYPE_UNSPECIFIED = 0;public static final ThreatType MALWARE
Malware targeting any platform.
MALWARE = 1;public static final ThreatType SOCIAL_ENGINEERING
Social engineering targeting any platform.
SOCIAL_ENGINEERING = 2;public static final ThreatType UNWANTED_SOFTWARE
Unwanted software targeting any platform.
UNWANTED_SOFTWARE = 3;public static final ThreatType UNRECOGNIZED
public static final int THREAT_TYPE_UNSPECIFIED_VALUE
Unknown.
THREAT_TYPE_UNSPECIFIED = 0;public static final int MALWARE_VALUE
Malware targeting any platform.
MALWARE = 1;public static final int SOCIAL_ENGINEERING_VALUE
Social engineering targeting any platform.
SOCIAL_ENGINEERING = 2;public static final int UNWANTED_SOFTWARE_VALUE
Unwanted software targeting any platform.
UNWANTED_SOFTWARE = 3;public static ThreatType[] values()
for (ThreatType c : ThreatType.values()) System.out.println(c);
public static ThreatType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ThreatType valueOf(int value)
forNumber(int) instead.public static ThreatType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ThreatType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ThreatType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.