Enum ScanConfig.UserAgent

java.lang.Object
java.lang.Enum<ScanConfig.UserAgent>
com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ScanConfig.UserAgent>
Enclosing class:
ScanConfig

public static enum ScanConfig.UserAgent extends Enum<ScanConfig.UserAgent> implements com.google.protobuf.ProtocolMessageEnum
 Type of user agents used for scanning.
 
Protobuf enum google.cloud.websecurityscanner.v1.ScanConfig.UserAgent
  • Enum Constant Details

    • USER_AGENT_UNSPECIFIED

      public static final ScanConfig.UserAgent USER_AGENT_UNSPECIFIED
       The user agent is unknown. Service will default to CHROME_LINUX.
       
      USER_AGENT_UNSPECIFIED = 0;
    • CHROME_LINUX

      public static final ScanConfig.UserAgent CHROME_LINUX
       Chrome on Linux. This is the service default if unspecified.
       
      CHROME_LINUX = 1;
    • CHROME_ANDROID

      public static final ScanConfig.UserAgent CHROME_ANDROID
       Chrome on Android.
       
      CHROME_ANDROID = 2;
    • SAFARI_IPHONE

      public static final ScanConfig.UserAgent SAFARI_IPHONE
       Safari on IPhone.
       
      SAFARI_IPHONE = 3;
    • UNRECOGNIZED

      public static final ScanConfig.UserAgent UNRECOGNIZED
  • Field Details

    • USER_AGENT_UNSPECIFIED_VALUE

      public static final int USER_AGENT_UNSPECIFIED_VALUE
       The user agent is unknown. Service will default to CHROME_LINUX.
       
      USER_AGENT_UNSPECIFIED = 0;
      See Also:
    • CHROME_LINUX_VALUE

      public static final int CHROME_LINUX_VALUE
       Chrome on Linux. This is the service default if unspecified.
       
      CHROME_LINUX = 1;
      See Also:
    • CHROME_ANDROID_VALUE

      public static final int CHROME_ANDROID_VALUE
       Chrome on Android.
       
      CHROME_ANDROID = 2;
      See Also:
    • SAFARI_IPHONE_VALUE

      public static final int SAFARI_IPHONE_VALUE
       Safari on IPhone.
       
      SAFARI_IPHONE = 3;
      See Also:
  • Method Details

    • values

      public static ScanConfig.UserAgent[] 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 ScanConfig.UserAgent 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 ScanConfig.UserAgent 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 ScanConfig.UserAgent 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<ScanConfig.UserAgent> 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 ScanConfig.UserAgent 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