Package com.google.cloud.compute.v1
Interface CacheKeyPolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CacheKeyPolicy
,CacheKeyPolicy.Builder
public interface CacheKeyPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getIncludeHost()
If true, requests to different hosts will be cached separately.String
getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ByteString
getIncludeHttpHeadersBytes(int index)
Allows HTTP request headers (by name) to be used in the cache key.int
getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.List<String>
getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.String
getIncludeNamedCookies(int index)
Allows HTTP cookies (by name) to be used in the cache key.com.google.protobuf.ByteString
getIncludeNamedCookiesBytes(int index)
Allows HTTP cookies (by name) to be used in the cache key.int
getIncludeNamedCookiesCount()
Allows HTTP cookies (by name) to be used in the cache key.List<String>
getIncludeNamedCookiesList()
Allows HTTP cookies (by name) to be used in the cache key.boolean
getIncludeProtocol()
If true, http and https requests will be cached separately.boolean
getIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.String
getQueryStringBlacklist(int index)
Names of query string parameters to exclude in cache keys.com.google.protobuf.ByteString
getQueryStringBlacklistBytes(int index)
Names of query string parameters to exclude in cache keys.int
getQueryStringBlacklistCount()
Names of query string parameters to exclude in cache keys.List<String>
getQueryStringBlacklistList()
Names of query string parameters to exclude in cache keys.String
getQueryStringWhitelist(int index)
Names of query string parameters to include in cache keys.com.google.protobuf.ByteString
getQueryStringWhitelistBytes(int index)
Names of query string parameters to include in cache keys.int
getQueryStringWhitelistCount()
Names of query string parameters to include in cache keys.List<String>
getQueryStringWhitelistList()
Names of query string parameters to include in cache keys.boolean
hasIncludeHost()
If true, requests to different hosts will be cached separately.boolean
hasIncludeProtocol()
If true, http and https requests will be cached separately.boolean
hasIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasIncludeHost
boolean hasIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Returns:
- Whether the includeHost field is set.
-
getIncludeHost
boolean getIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Returns:
- The includeHost.
-
getIncludeHttpHeadersList
List<String> getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Returns:
- A list containing the includeHttpHeaders.
-
getIncludeHttpHeadersCount
int getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Returns:
- The count of includeHttpHeaders.
-
getIncludeHttpHeaders
String getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
index
- The index of the element to return.- Returns:
- The includeHttpHeaders at the given index.
-
getIncludeHttpHeadersBytes
com.google.protobuf.ByteString getIncludeHttpHeadersBytes(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the includeHttpHeaders at the given index.
-
getIncludeNamedCookiesList
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:
- A list containing the includeNamedCookies.
-
getIncludeNamedCookiesCount
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:
- The count of includeNamedCookies.
-
getIncludeNamedCookies
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The includeNamedCookies at the given index.
-
getIncludeNamedCookiesBytes
com.google.protobuf.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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the includeNamedCookies at the given index.
-
hasIncludeProtocol
boolean hasIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Returns:
- Whether the includeProtocol field is set.
-
getIncludeProtocol
boolean getIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Returns:
- The includeProtocol.
-
hasIncludeQueryString
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:
- Whether the includeQueryString field is set.
-
getIncludeQueryString
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:
- The includeQueryString.
-
getQueryStringBlacklistList
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:
- A list containing the queryStringBlacklist.
-
getQueryStringBlacklistCount
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:
- The count of queryStringBlacklist.
-
getQueryStringBlacklist
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The queryStringBlacklist at the given index.
-
getQueryStringBlacklistBytes
com.google.protobuf.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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the queryStringBlacklist at the given index.
-
getQueryStringWhitelistList
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:
- A list containing the queryStringWhitelist.
-
getQueryStringWhitelistCount
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:
- The count of queryStringWhitelist.
-
getQueryStringWhitelist
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The queryStringWhitelist at the given index.
-
getQueryStringWhitelistBytes
com.google.protobuf.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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the queryStringWhitelist at the given index.
-
-