Interface CacheKeyPolicyOrBuilder (1.39.0)

public interface CacheKeyPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIncludeHost()

public abstract boolean getIncludeHost()

If true, requests to different hosts will be cached separately.

optional bool include_host = 486867679;

Returns
TypeDescription
boolean

The includeHost.

getIncludeHttpHeaders(int index)

public abstract String getIncludeHttpHeaders(int index)

Allows HTTP request headers (by name) to be used in the cache key.

repeated string include_http_headers = 2489606;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The includeHttpHeaders at the given index.

getIncludeHttpHeadersBytes(int index)

public abstract ByteString getIncludeHttpHeadersBytes(int index)

Allows HTTP request headers (by name) to be used in the cache key.

repeated string include_http_headers = 2489606;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the includeHttpHeaders at the given index.

getIncludeHttpHeadersCount()

public abstract int getIncludeHttpHeadersCount()

Allows HTTP request headers (by name) to be used in the cache key.

repeated string include_http_headers = 2489606;

Returns
TypeDescription
int

The count of includeHttpHeaders.

getIncludeHttpHeadersList()

public abstract List<String> getIncludeHttpHeadersList()

Allows HTTP request headers (by name) to be used in the cache key.

repeated string include_http_headers = 2489606;

Returns
TypeDescription
List<String>

A list containing the includeHttpHeaders.

getIncludeNamedCookies(int index)

public abstract String getIncludeNamedCookies(int index)

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

repeated string include_named_cookies = 87316530;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The includeNamedCookies at the given index.

getIncludeNamedCookiesBytes(int index)

public abstract ByteString getIncludeNamedCookiesBytes(int index)

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

repeated string include_named_cookies = 87316530;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the includeNamedCookies at the given index.

getIncludeNamedCookiesCount()

public abstract int getIncludeNamedCookiesCount()

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

repeated string include_named_cookies = 87316530;

Returns
TypeDescription
int

The count of includeNamedCookies.

getIncludeNamedCookiesList()

public abstract List<String> getIncludeNamedCookiesList()

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

repeated string include_named_cookies = 87316530;

Returns
TypeDescription
List<String>

A list containing the includeNamedCookies.

getIncludeProtocol()

public abstract boolean getIncludeProtocol()

If true, http and https requests will be cached separately.

optional bool include_protocol = 303507535;

Returns
TypeDescription
boolean

The includeProtocol.

getIncludeQueryString()

public abstract boolean getIncludeQueryString()

If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.

optional bool include_query_string = 474036639;

Returns
TypeDescription
boolean

The includeQueryString.

getQueryStringBlacklist(int index)

public abstract String getQueryStringBlacklist(int index)

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_blacklist = 354964742;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The queryStringBlacklist at the given index.

getQueryStringBlacklistBytes(int index)

public abstract ByteString getQueryStringBlacklistBytes(int index)

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_blacklist = 354964742;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the queryStringBlacklist at the given index.

getQueryStringBlacklistCount()

public abstract int getQueryStringBlacklistCount()

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_blacklist = 354964742;

Returns
TypeDescription
int

The count of queryStringBlacklist.

getQueryStringBlacklistList()

public abstract List<String> getQueryStringBlacklistList()

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_blacklist = 354964742;

Returns
TypeDescription
List<String>

A list containing the queryStringBlacklist.

getQueryStringWhitelist(int index)

public abstract String getQueryStringWhitelist(int index)

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_whitelist = 52456496;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The queryStringWhitelist at the given index.

getQueryStringWhitelistBytes(int index)

public abstract ByteString getQueryStringWhitelistBytes(int index)

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_whitelist = 52456496;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the queryStringWhitelist at the given index.

getQueryStringWhitelistCount()

public abstract int getQueryStringWhitelistCount()

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_whitelist = 52456496;

Returns
TypeDescription
int

The count of queryStringWhitelist.

getQueryStringWhitelistList()

public abstract List<String> getQueryStringWhitelistList()

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

repeated string query_string_whitelist = 52456496;

Returns
TypeDescription
List<String>

A list containing the queryStringWhitelist.

hasIncludeHost()

public abstract boolean hasIncludeHost()

If true, requests to different hosts will be cached separately.

optional bool include_host = 486867679;

Returns
TypeDescription
boolean

Whether the includeHost field is set.

hasIncludeProtocol()

public abstract boolean hasIncludeProtocol()

If true, http and https requests will be cached separately.

optional bool include_protocol = 303507535;

Returns
TypeDescription
boolean

Whether the includeProtocol field is set.

hasIncludeQueryString()

public abstract boolean hasIncludeQueryString()

If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.

optional bool include_query_string = 474036639;

Returns
TypeDescription
boolean

Whether the includeQueryString field is set.