public static enum BackendServiceCdnPolicy.CacheMode extends Enum<BackendServiceCdnPolicy.CacheMode> implements com.google.protobuf.ProtocolMessageEnum
Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.Protobuf enum
google.cloud.compute.v1.BackendServiceCdnPolicy.CacheMode| Enum Constant and Description |
|---|
CACHE_ALL_STATIC
Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS).
|
FORCE_CACHE_ALL
Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers.
|
INVALID_CACHE_MODE
INVALID_CACHE_MODE = 381295560; |
UNDEFINED_CACHE_MODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
USE_ORIGIN_HEADERS
Requires the origin to set valid caching headers to cache content.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_ALL_STATIC_VALUE
Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS).
|
static int |
FORCE_CACHE_ALL_VALUE
Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers.
|
static int |
INVALID_CACHE_MODE_VALUE
INVALID_CACHE_MODE = 381295560; |
static int |
UNDEFINED_CACHE_MODE_VALUE
A value indicating that the enum field is not set.
|
static int |
USE_ORIGIN_HEADERS_VALUE
Requires the origin to set valid caching headers to cache content.
|
| Modifier and Type | Method and Description |
|---|---|
static BackendServiceCdnPolicy.CacheMode |
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<BackendServiceCdnPolicy.CacheMode> |
internalGetValueMap() |
static BackendServiceCdnPolicy.CacheMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BackendServiceCdnPolicy.CacheMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BackendServiceCdnPolicy.CacheMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackendServiceCdnPolicy.CacheMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackendServiceCdnPolicy.CacheMode UNDEFINED_CACHE_MODE
A value indicating that the enum field is not set.
UNDEFINED_CACHE_MODE = 0;public static final BackendServiceCdnPolicy.CacheMode CACHE_ALL_STATIC
Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
CACHE_ALL_STATIC = 355027945;public static final BackendServiceCdnPolicy.CacheMode FORCE_CACHE_ALL
Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content.
FORCE_CACHE_ALL = 486026928;public static final BackendServiceCdnPolicy.CacheMode INVALID_CACHE_MODE
INVALID_CACHE_MODE = 381295560;public static final BackendServiceCdnPolicy.CacheMode USE_ORIGIN_HEADERS
Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.
USE_ORIGIN_HEADERS = 55380261;public static final BackendServiceCdnPolicy.CacheMode UNRECOGNIZED
public static final int UNDEFINED_CACHE_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_CACHE_MODE = 0;public static final int CACHE_ALL_STATIC_VALUE
Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.
CACHE_ALL_STATIC = 355027945;public static final int FORCE_CACHE_ALL_VALUE
Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content.
FORCE_CACHE_ALL = 486026928;public static final int INVALID_CACHE_MODE_VALUE
INVALID_CACHE_MODE = 381295560;public static final int USE_ORIGIN_HEADERS_VALUE
Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.
USE_ORIGIN_HEADERS = 55380261;public static BackendServiceCdnPolicy.CacheMode[] values()
for (BackendServiceCdnPolicy.CacheMode c : BackendServiceCdnPolicy.CacheMode.values()) System.out.println(c);
public static BackendServiceCdnPolicy.CacheMode 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 BackendServiceCdnPolicy.CacheMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static BackendServiceCdnPolicy.CacheMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BackendServiceCdnPolicy.CacheMode> 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 BackendServiceCdnPolicy.CacheMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.