public enum ResourceType extends java.lang.Enum<ResourceType>
Protobuf enum teamdev.browsercore.net.ResourceType
Enum Constant and Description |
---|
CSP_REPORT
Represents a report of Content Security Policy violations.
|
FAVICON
Represents a favicon.
|
FONT_RESOURCE
Represents a font.
|
IMAGE
Represents an image (jpg/gif/png/etc).
|
MAIN_FRAME
Represents a top level page.
|
MEDIA
Represents a media resource.
|
OBJECT
Represents a tag for a plugin.
|
PING
Represents a ping request
|
PLUGIN_RESOURCE
Represents a resource that a plugin requested.
|
PREFETCH
Represents an explicitly requested prefetch.
|
RESOURCE_TYPE_UNSPECIFIED
Reserved value.
|
SCRIPT
Represents an external script.
|
SERVICE_WORKER
Represents the main resource of a service worker.
|
SHARED_WORKER
Represents the main resource of a shared worker.
|
STYLESHEET
Represents a CSS stylesheet.
|
SUB_FRAME
Represents a frame or iframe.
|
SUB_RESOURCE |
UNRECOGNIZED |
WORKER
Represents the main resource of a dedicated worker.
|
XHR
Represents an XMLHttpRequest.
|
Modifier and Type | Field and Description |
---|---|
static int |
CSP_REPORT_VALUE
Represents a report of Content Security Policy violations.
|
static int |
FAVICON_VALUE
Represents a favicon.
|
static int |
FONT_RESOURCE_VALUE
Represents a font.
|
static int |
IMAGE_VALUE
Represents an image (jpg/gif/png/etc).
|
static int |
MAIN_FRAME_VALUE
Represents a top level page.
|
static int |
MEDIA_VALUE
Represents a media resource.
|
static int |
OBJECT_VALUE
Represents a tag for a plugin.
|
static int |
PING_VALUE
Represents a ping request
|
static int |
PLUGIN_RESOURCE_VALUE
Represents a resource that a plugin requested.
|
static int |
PREFETCH_VALUE
Represents an explicitly requested prefetch.
|
static int |
RESOURCE_TYPE_UNSPECIFIED_VALUE
Reserved value.
|
static int |
SCRIPT_VALUE
Represents an external script.
|
static int |
SERVICE_WORKER_VALUE
Represents the main resource of a service worker.
|
static int |
SHARED_WORKER_VALUE
Represents the main resource of a shared worker.
|
static int |
STYLESHEET_VALUE
Represents a CSS stylesheet.
|
static int |
SUB_FRAME_VALUE
Represents a frame or iframe.
|
static int |
SUB_RESOURCE_VALUE |
static int |
WORKER_VALUE
Represents the main resource of a dedicated worker.
|
static int |
XHR_VALUE
Represents an XMLHttpRequest.
|
Modifier and Type | Method and Description |
---|---|
static ResourceType |
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 <any> |
internalGetValueMap() |
static ResourceType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ResourceType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ResourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType RESOURCE_TYPE_UNSPECIFIED
public static final ResourceType MAIN_FRAME
public static final ResourceType SUB_FRAME
public static final ResourceType STYLESHEET
public static final ResourceType SCRIPT
public static final ResourceType IMAGE
public static final ResourceType FONT_RESOURCE
public static final ResourceType SUB_RESOURCE
public static final ResourceType OBJECT
public static final ResourceType MEDIA
public static final ResourceType WORKER
public static final ResourceType SHARED_WORKER
public static final ResourceType PREFETCH
public static final ResourceType FAVICON
public static final ResourceType XHR
public static final ResourceType PING
public static final ResourceType SERVICE_WORKER
public static final ResourceType CSP_REPORT
public static final ResourceType PLUGIN_RESOURCE
public static final ResourceType UNRECOGNIZED
public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE
public static final int MAIN_FRAME_VALUE
public static final int SUB_FRAME_VALUE
public static final int STYLESHEET_VALUE
public static final int SCRIPT_VALUE
public static final int IMAGE_VALUE
public static final int FONT_RESOURCE_VALUE
public static final int SUB_RESOURCE_VALUE
public static final int OBJECT_VALUE
public static final int MEDIA_VALUE
public static final int WORKER_VALUE
public static final int SHARED_WORKER_VALUE
public static final int PREFETCH_VALUE
public static final int FAVICON_VALUE
public static final int XHR_VALUE
public static final int PING_VALUE
public static final int SERVICE_WORKER_VALUE
public static final int CSP_REPORT_VALUE
public static final int PLUGIN_RESOURCE_VALUE
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
@Deprecated public static ResourceType valueOf(int value)
forNumber(int)
instead.public static ResourceType forNumber(int value)
public static <any> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ResourceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)