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.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 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(com.google.protobuf.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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ScanConfig.UserAgent valueOf(int value)
forNumber(int) instead.public static ScanConfig.UserAgent forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ScanConfig.UserAgent> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ScanConfig.UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.