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 enumgoogle.cloud.websecurityscanner.v1.ScanConfig.UserAgent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHROME_ANDROID
Chrome on Android.CHROME_LINUX
Chrome on Linux.SAFARI_IPHONE
Safari on IPhone.UNRECOGNIZED
USER_AGENT_UNSPECIFIED
The user agent is unknown.
-
Field Summary
Fields Modifier and Type Field Description static int
CHROME_ANDROID_VALUE
Chrome on Android.static int
CHROME_LINUX_VALUE
Chrome on Linux.static int
SAFARI_IPHONE_VALUE
Safari on IPhone.static int
USER_AGENT_UNSPECIFIED_VALUE
The user agent is unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ScanConfig.UserAgent
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<ScanConfig.UserAgent>
internalGetValueMap()
static ScanConfig.UserAgent
valueOf(int value)
Deprecated.static ScanConfig.UserAgent
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ScanConfig.UserAgent
valueOf(String name)
Returns 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 Detail
-
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 Detail
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
CHROME_ANDROID_VALUE
public static final int CHROME_ANDROID_VALUE
Chrome on Android.
CHROME_ANDROID = 2;
- See Also:
- Constant Field Values
-
SAFARI_IPHONE_VALUE
public static final int SAFARI_IPHONE_VALUE
Safari on IPhone.
SAFARI_IPHONE = 3;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ScanConfig.UserAgent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScanConfig.UserAgent c : ScanConfig.UserAgent.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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
-
-