public static enum ScanConfig.UserAgent extends Enum<ScanConfig.UserAgent> implements ProtocolMessageEnum
Type of user agents used for scanning.Protobuf enum
google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent
Enum Constant and 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.
|
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
static ScanConfig.UserAgent |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ScanConfig.UserAgent> |
internalGetValueMap() |
static ScanConfig.UserAgent |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ScanConfig.UserAgent |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final ScanConfig.UserAgent USER_AGENT_UNSPECIFIED
The user agent is unknown. Service will default to CHROME_LINUX.
USER_AGENT_UNSPECIFIED = 0;
public static final ScanConfig.UserAgent CHROME_LINUX
Chrome on Linux. This is the service default if unspecified.
CHROME_LINUX = 1;
public static final ScanConfig.UserAgent CHROME_ANDROID
Chrome on Android.
CHROME_ANDROID = 2;
public static final ScanConfig.UserAgent SAFARI_IPHONE
Safari on IPhone.
SAFARI_IPHONE = 3;
public static final ScanConfig.UserAgent UNRECOGNIZED
public static final int USER_AGENT_UNSPECIFIED_VALUE
The user agent is unknown. Service will default to CHROME_LINUX.
USER_AGENT_UNSPECIFIED = 0;
public static final int CHROME_LINUX_VALUE
Chrome on Linux. This is the service default if unspecified.
CHROME_LINUX = 1;
public static final int CHROME_ANDROID_VALUE
Chrome on Android.
CHROME_ANDROID = 2;
public static final int SAFARI_IPHONE_VALUE
Safari on IPhone.
SAFARI_IPHONE = 3;
public static ScanConfig.UserAgent[] values()
for (ScanConfig.UserAgent c : ScanConfig.UserAgent.values()) System.out.println(c);
public static ScanConfig.UserAgent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ScanConfig.UserAgent valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ScanConfig.UserAgent forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<ScanConfig.UserAgent> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ScanConfig.UserAgent valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.