Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionChrome on Android.Chrome on Linux.Safari on IPhone.The user agent is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intChrome on Android.static final intChrome on Linux.static final intSafari on IPhone.static final intThe user agent is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanConfig.UserAgentforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ScanConfig.UserAgent>static ScanConfig.UserAgentvalueOf(int value) Deprecated.static ScanConfig.UserAgentvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ScanConfig.UserAgentReturns the enum constant of this type with the specified name.static ScanConfig.UserAgent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER_AGENT_UNSPECIFIED
The user agent is unknown. Service will default to CHROME_LINUX.
USER_AGENT_UNSPECIFIED = 0; -
CHROME_LINUX
Chrome on Linux. This is the service default if unspecified.
CHROME_LINUX = 1; -
CHROME_ANDROID
Chrome on Android.
CHROME_ANDROID = 2; -
SAFARI_IPHONE
Safari on IPhone.
SAFARI_IPHONE = 3; -
UNRECOGNIZED
-
-
Field Details
-
USER_AGENT_UNSPECIFIED_VALUE
public static final int USER_AGENT_UNSPECIFIED_VALUEThe 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_VALUEChrome on Linux. This is the service default if unspecified.
CHROME_LINUX = 1;- See Also:
-
CHROME_ANDROID_VALUE
public static final int CHROME_ANDROID_VALUEChrome on Android.
CHROME_ANDROID = 2;- See Also:
-
SAFARI_IPHONE_VALUE
public static final int SAFARI_IPHONE_VALUESafari on IPhone.
SAFARI_IPHONE = 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
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 nameNullPointerException- if the argument is null
-