Interface CacheKeyPolicyOrBuilder (1.6.0-beta)

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.

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.