Enum VirusDetail.ThreatType

java.lang.Object
java.lang.Enum<VirusDetail.ThreatType>
com.google.cloud.modelarmor.v1beta.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 virus
 
Protobuf enum google.cloud.modelarmor.v1beta.VirusDetail.ThreatType
  • Enum Constant Details

    • THREAT_TYPE_UNSPECIFIED

      public static final VirusDetail.ThreatType THREAT_TYPE_UNSPECIFIED
       Unused
       
      THREAT_TYPE_UNSPECIFIED = 0;
    • UNKNOWN

      public static final VirusDetail.ThreatType UNKNOWN
       Unable to categorize threat
       
      UNKNOWN = 1;
    • VIRUS_OR_WORM

      public static final VirusDetail.ThreatType VIRUS_OR_WORM
       Virus or Worm threat.
       
      VIRUS_OR_WORM = 2;
    • MALICIOUS_PROGRAM

      public static final VirusDetail.ThreatType MALICIOUS_PROGRAM
       Malicious program. E.g. Spyware, Trojan.
       
      MALICIOUS_PROGRAM = 3;
    • POTENTIALLY_HARMFUL_CONTENT

      public static final VirusDetail.ThreatType POTENTIALLY_HARMFUL_CONTENT
       Potentially harmful content. E.g. Injected code, Macro
       
      POTENTIALLY_HARMFUL_CONTENT = 4;
    • POTENTIALLY_UNWANTED_CONTENT

      public static final VirusDetail.ThreatType POTENTIALLY_UNWANTED_CONTENT
       Potentially unwanted content. E.g. Adware.
       
      POTENTIALLY_UNWANTED_CONTENT = 5;
    • UNRECOGNIZED

      public static final VirusDetail.ThreatType UNRECOGNIZED
  • Field Details

    • THREAT_TYPE_UNSPECIFIED_VALUE

      public static final int THREAT_TYPE_UNSPECIFIED_VALUE
       Unused
       
      THREAT_TYPE_UNSPECIFIED = 0;
      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       Unable to categorize threat
       
      UNKNOWN = 1;
      See Also:
    • VIRUS_OR_WORM_VALUE

      public static final int VIRUS_OR_WORM_VALUE
       Virus or Worm threat.
       
      VIRUS_OR_WORM = 2;
      See Also:
    • MALICIOUS_PROGRAM_VALUE

      public static final int MALICIOUS_PROGRAM_VALUE
       Malicious program. E.g. Spyware, Trojan.
       
      MALICIOUS_PROGRAM = 3;
      See Also:
    • POTENTIALLY_HARMFUL_CONTENT_VALUE

      public static final int POTENTIALLY_HARMFUL_CONTENT_VALUE
       Potentially harmful content. E.g. Injected code, Macro
       
      POTENTIALLY_HARMFUL_CONTENT = 4;
      See Also:
    • POTENTIALLY_UNWANTED_CONTENT_VALUE

      public static final int POTENTIALLY_UNWANTED_CONTENT_VALUE
       Potentially unwanted content. E.g. Adware.
       
      POTENTIALLY_UNWANTED_CONTENT = 5;
      See Also:
  • Method Details

    • values

      public static VirusDetail.ThreatType[] 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 VirusDetail.ThreatType 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 VirusDetail.ThreatType 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 VirusDetail.ThreatType 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<VirusDetail.ThreatType> 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 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 name
      NullPointerException - if the argument is null