Enum VirusDetail.ThreatType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<VirusDetail.ThreatType>
- Enclosing class:
- VirusDetail
public static enum VirusDetail.ThreatType
extends Enum<VirusDetail.ThreatType>
implements com.google.protobuf.ProtocolMessageEnum
Defines all the threat types of a virusProtobuf enum
google.cloud.modelarmor.v1beta.VirusDetail.ThreatType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMalicious program.Potentially harmful content.Potentially unwanted content.UnusedUnable to categorize threatVirus or Worm threat. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMalicious program.static final intPotentially harmful content.static final intPotentially unwanted content.static final intUnusedstatic final intUnable to categorize threatstatic final intVirus or Worm threat. -
Method Summary
Modifier and TypeMethodDescriptionstatic VirusDetail.ThreatTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<VirusDetail.ThreatType>static VirusDetail.ThreatTypevalueOf(int value) Deprecated.static VirusDetail.ThreatTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static VirusDetail.ThreatTypeReturns the enum constant of this type with the specified name.static VirusDetail.ThreatType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THREAT_TYPE_UNSPECIFIED
Unused
THREAT_TYPE_UNSPECIFIED = 0; -
UNKNOWN
Unable to categorize threat
UNKNOWN = 1; -
VIRUS_OR_WORM
Virus or Worm threat.
VIRUS_OR_WORM = 2; -
MALICIOUS_PROGRAM
Malicious program. E.g. Spyware, Trojan.
MALICIOUS_PROGRAM = 3; -
POTENTIALLY_HARMFUL_CONTENT
Potentially harmful content. E.g. Injected code, Macro
POTENTIALLY_HARMFUL_CONTENT = 4; -
POTENTIALLY_UNWANTED_CONTENT
Potentially unwanted content. E.g. Adware.
POTENTIALLY_UNWANTED_CONTENT = 5; -
UNRECOGNIZED
-
-
Field Details
-
THREAT_TYPE_UNSPECIFIED_VALUE
public static final int THREAT_TYPE_UNSPECIFIED_VALUEUnused
THREAT_TYPE_UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUnable to categorize threat
UNKNOWN = 1;- See Also:
-
VIRUS_OR_WORM_VALUE
public static final int VIRUS_OR_WORM_VALUEVirus or Worm threat.
VIRUS_OR_WORM = 2;- See Also:
-
MALICIOUS_PROGRAM_VALUE
public static final int MALICIOUS_PROGRAM_VALUEMalicious program. E.g. Spyware, Trojan.
MALICIOUS_PROGRAM = 3;- See Also:
-
POTENTIALLY_HARMFUL_CONTENT_VALUE
public static final int POTENTIALLY_HARMFUL_CONTENT_VALUEPotentially harmful content. E.g. Injected code, Macro
POTENTIALLY_HARMFUL_CONTENT = 4;- See Also:
-
POTENTIALLY_UNWANTED_CONTENT_VALUE
public static final int POTENTIALLY_UNWANTED_CONTENT_VALUEPotentially unwanted content. E.g. Adware.
POTENTIALLY_UNWANTED_CONTENT = 5;- 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
public static com.google.protobuf.Internal.EnumLiteMap<VirusDetail.ThreatType> 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
public static VirusDetail.ThreatType 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 nameNullPointerException- if the argument is null
-