Package com.google.cloud.compute.v1
Class CacheKeyPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
- com.google.cloud.compute.v1.CacheKeyPolicy.Builder
-
- All Implemented Interfaces:
CacheKeyPolicyOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CacheKeyPolicy
public static final class CacheKeyPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder> implements CacheKeyPolicyOrBuilder
Message containing what to include in the cache key for a request for Cloud CDN.
Protobuf typegoogle.cloud.compute.v1.CacheKeyPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheKeyPolicy.Builder
addAllIncludeHttpHeaders(Iterable<String> values)
Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.Builder
addAllIncludeNamedCookies(Iterable<String> values)
Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.Builder
addAllQueryStringBlacklist(Iterable<String> values)
Names of query string parameters to exclude in cache keys.CacheKeyPolicy.Builder
addAllQueryStringWhitelist(Iterable<String> values)
Names of query string parameters to include in cache keys.CacheKeyPolicy.Builder
addIncludeHttpHeaders(String value)
Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.Builder
addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value)
Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.Builder
addIncludeNamedCookies(String value)
Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.Builder
addIncludeNamedCookiesBytes(com.google.protobuf.ByteString value)
Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.Builder
addQueryStringBlacklist(String value)
Names of query string parameters to exclude in cache keys.CacheKeyPolicy.Builder
addQueryStringBlacklistBytes(com.google.protobuf.ByteString value)
Names of query string parameters to exclude in cache keys.CacheKeyPolicy.Builder
addQueryStringWhitelist(String value)
Names of query string parameters to include in cache keys.CacheKeyPolicy.Builder
addQueryStringWhitelistBytes(com.google.protobuf.ByteString value)
Names of query string parameters to include in cache keys.CacheKeyPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CacheKeyPolicy
build()
CacheKeyPolicy
buildPartial()
CacheKeyPolicy.Builder
clear()
CacheKeyPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CacheKeyPolicy.Builder
clearIncludeHost()
If true, requests to different hosts will be cached separately.CacheKeyPolicy.Builder
clearIncludeHttpHeaders()
Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.Builder
clearIncludeNamedCookies()
Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.Builder
clearIncludeProtocol()
If true, http and https requests will be cached separately.CacheKeyPolicy.Builder
clearIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.CacheKeyPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CacheKeyPolicy.Builder
clearQueryStringBlacklist()
Names of query string parameters to exclude in cache keys.CacheKeyPolicy.Builder
clearQueryStringWhitelist()
Names of query string parameters to include in cache keys.CacheKeyPolicy.Builder
clone()
CacheKeyPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.com.google.protobuf.ProtocolStringList
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.com.google.protobuf.ProtocolStringList
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.com.google.protobuf.ProtocolStringList
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.com.google.protobuf.ProtocolStringList
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CacheKeyPolicy.Builder
mergeFrom(CacheKeyPolicy other)
CacheKeyPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CacheKeyPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
CacheKeyPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CacheKeyPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CacheKeyPolicy.Builder
setIncludeHost(boolean value)
If true, requests to different hosts will be cached separately.CacheKeyPolicy.Builder
setIncludeHttpHeaders(int index, String value)
Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.Builder
setIncludeNamedCookies(int index, String value)
Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.Builder
setIncludeProtocol(boolean value)
If true, http and https requests will be cached separately.CacheKeyPolicy.Builder
setIncludeQueryString(boolean value)
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.CacheKeyPolicy.Builder
setQueryStringBlacklist(int index, String value)
Names of query string parameters to exclude in cache keys.CacheKeyPolicy.Builder
setQueryStringWhitelist(int index, String value)
Names of query string parameters to include in cache keys.CacheKeyPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CacheKeyPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clear
public CacheKeyPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
getDefaultInstanceForType
public CacheKeyPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CacheKeyPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CacheKeyPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CacheKeyPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
setField
public CacheKeyPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clearField
public CacheKeyPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clearOneof
public CacheKeyPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
setRepeatedField
public CacheKeyPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
addRepeatedField
public CacheKeyPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
mergeFrom
public CacheKeyPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CacheKeyPolicy.Builder>
-
mergeFrom
public CacheKeyPolicy.Builder mergeFrom(CacheKeyPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
mergeFrom
public CacheKeyPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CacheKeyPolicy.Builder>
- Throws:
IOException
-
hasIncludeHost
public boolean hasIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Specified by:
hasIncludeHost
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- Whether the includeHost field is set.
-
getIncludeHost
public boolean getIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Specified by:
getIncludeHost
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The includeHost.
-
setIncludeHost
public CacheKeyPolicy.Builder setIncludeHost(boolean value)
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Parameters:
value
- The includeHost to set.- Returns:
- This builder for chaining.
-
clearIncludeHost
public CacheKeyPolicy.Builder clearIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
- Returns:
- This builder for chaining.
-
getIncludeHttpHeadersList
public com.google.protobuf.ProtocolStringList getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Specified by:
getIncludeHttpHeadersList
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- A list containing the includeHttpHeaders.
-
getIncludeHttpHeadersCount
public int getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Specified by:
getIncludeHttpHeadersCount
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The count of includeHttpHeaders.
-
getIncludeHttpHeaders
public String getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Specified by:
getIncludeHttpHeaders
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The includeHttpHeaders at the given index.
-
getIncludeHttpHeadersBytes
public 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;
- Specified by:
getIncludeHttpHeadersBytes
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the includeHttpHeaders at the given index.
-
setIncludeHttpHeaders
public CacheKeyPolicy.Builder setIncludeHttpHeaders(int index, String value)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
index
- The index to set the value at.value
- The includeHttpHeaders to set.- Returns:
- This builder for chaining.
-
addIncludeHttpHeaders
public CacheKeyPolicy.Builder addIncludeHttpHeaders(String value)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
value
- The includeHttpHeaders to add.- Returns:
- This builder for chaining.
-
addAllIncludeHttpHeaders
public CacheKeyPolicy.Builder addAllIncludeHttpHeaders(Iterable<String> values)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
values
- The includeHttpHeaders to add.- Returns:
- This builder for chaining.
-
clearIncludeHttpHeaders
public CacheKeyPolicy.Builder clearIncludeHttpHeaders()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Returns:
- This builder for chaining.
-
addIncludeHttpHeadersBytes
public CacheKeyPolicy.Builder addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
- Parameters:
value
- The bytes of the includeHttpHeaders to add.- Returns:
- This builder for chaining.
-
getIncludeNamedCookiesList
public com.google.protobuf.ProtocolStringList 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;
- Specified by:
getIncludeNamedCookiesList
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- A list containing the includeNamedCookies.
-
getIncludeNamedCookiesCount
public 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;
- Specified by:
getIncludeNamedCookiesCount
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The count of includeNamedCookies.
-
getIncludeNamedCookies
public 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;
- Specified by:
getIncludeNamedCookies
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The includeNamedCookies at the given index.
-
getIncludeNamedCookiesBytes
public 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;
- Specified by:
getIncludeNamedCookiesBytes
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the includeNamedCookies at the given index.
-
setIncludeNamedCookies
public CacheKeyPolicy.Builder setIncludeNamedCookies(int index, String value)
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 to set the value at.value
- The includeNamedCookies to set.- Returns:
- This builder for chaining.
-
addIncludeNamedCookies
public CacheKeyPolicy.Builder addIncludeNamedCookies(String value)
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:
value
- The includeNamedCookies to add.- Returns:
- This builder for chaining.
-
addAllIncludeNamedCookies
public CacheKeyPolicy.Builder addAllIncludeNamedCookies(Iterable<String> values)
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:
values
- The includeNamedCookies to add.- Returns:
- This builder for chaining.
-
clearIncludeNamedCookies
public CacheKeyPolicy.Builder clearIncludeNamedCookies()
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:
- This builder for chaining.
-
addIncludeNamedCookiesBytes
public CacheKeyPolicy.Builder addIncludeNamedCookiesBytes(com.google.protobuf.ByteString value)
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:
value
- The bytes of the includeNamedCookies to add.- Returns:
- This builder for chaining.
-
hasIncludeProtocol
public boolean hasIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Specified by:
hasIncludeProtocol
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- Whether the includeProtocol field is set.
-
getIncludeProtocol
public boolean getIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Specified by:
getIncludeProtocol
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The includeProtocol.
-
setIncludeProtocol
public CacheKeyPolicy.Builder setIncludeProtocol(boolean value)
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Parameters:
value
- The includeProtocol to set.- Returns:
- This builder for chaining.
-
clearIncludeProtocol
public CacheKeyPolicy.Builder clearIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
- Returns:
- This builder for chaining.
-
hasIncludeQueryString
public 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;
- Specified by:
hasIncludeQueryString
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- Whether the includeQueryString field is set.
-
getIncludeQueryString
public 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;
- Specified by:
getIncludeQueryString
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The includeQueryString.
-
setIncludeQueryString
public CacheKeyPolicy.Builder setIncludeQueryString(boolean value)
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;
- Parameters:
value
- The includeQueryString to set.- Returns:
- This builder for chaining.
-
clearIncludeQueryString
public CacheKeyPolicy.Builder clearIncludeQueryString()
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:
- This builder for chaining.
-
getQueryStringBlacklistList
public com.google.protobuf.ProtocolStringList 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;
- Specified by:
getQueryStringBlacklistList
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- A list containing the queryStringBlacklist.
-
getQueryStringBlacklistCount
public 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;
- Specified by:
getQueryStringBlacklistCount
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The count of queryStringBlacklist.
-
getQueryStringBlacklist
public 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;
- Specified by:
getQueryStringBlacklist
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The queryStringBlacklist at the given index.
-
getQueryStringBlacklistBytes
public 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;
- Specified by:
getQueryStringBlacklistBytes
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the queryStringBlacklist at the given index.
-
setQueryStringBlacklist
public CacheKeyPolicy.Builder setQueryStringBlacklist(int index, String value)
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 to set the value at.value
- The queryStringBlacklist to set.- Returns:
- This builder for chaining.
-
addQueryStringBlacklist
public CacheKeyPolicy.Builder addQueryStringBlacklist(String value)
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:
value
- The queryStringBlacklist to add.- Returns:
- This builder for chaining.
-
addAllQueryStringBlacklist
public CacheKeyPolicy.Builder addAllQueryStringBlacklist(Iterable<String> values)
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:
values
- The queryStringBlacklist to add.- Returns:
- This builder for chaining.
-
clearQueryStringBlacklist
public CacheKeyPolicy.Builder clearQueryStringBlacklist()
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:
- This builder for chaining.
-
addQueryStringBlacklistBytes
public CacheKeyPolicy.Builder addQueryStringBlacklistBytes(com.google.protobuf.ByteString value)
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:
value
- The bytes of the queryStringBlacklist to add.- Returns:
- This builder for chaining.
-
getQueryStringWhitelistList
public com.google.protobuf.ProtocolStringList 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;
- Specified by:
getQueryStringWhitelistList
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- A list containing the queryStringWhitelist.
-
getQueryStringWhitelistCount
public 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;
- Specified by:
getQueryStringWhitelistCount
in interfaceCacheKeyPolicyOrBuilder
- Returns:
- The count of queryStringWhitelist.
-
getQueryStringWhitelist
public 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;
- Specified by:
getQueryStringWhitelist
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The queryStringWhitelist at the given index.
-
getQueryStringWhitelistBytes
public 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;
- Specified by:
getQueryStringWhitelistBytes
in interfaceCacheKeyPolicyOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the queryStringWhitelist at the given index.
-
setQueryStringWhitelist
public CacheKeyPolicy.Builder setQueryStringWhitelist(int index, String value)
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 to set the value at.value
- The queryStringWhitelist to set.- Returns:
- This builder for chaining.
-
addQueryStringWhitelist
public CacheKeyPolicy.Builder addQueryStringWhitelist(String value)
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:
value
- The queryStringWhitelist to add.- Returns:
- This builder for chaining.
-
addAllQueryStringWhitelist
public CacheKeyPolicy.Builder addAllQueryStringWhitelist(Iterable<String> values)
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:
values
- The queryStringWhitelist to add.- Returns:
- This builder for chaining.
-
clearQueryStringWhitelist
public CacheKeyPolicy.Builder clearQueryStringWhitelist()
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:
- This builder for chaining.
-
addQueryStringWhitelistBytes
public CacheKeyPolicy.Builder addQueryStringWhitelistBytes(com.google.protobuf.ByteString value)
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:
value
- The bytes of the queryStringWhitelist to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CacheKeyPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
mergeUnknownFields
public final CacheKeyPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
-