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.BuilderaddAllIncludeHttpHeaders(Iterable<String> values)Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddAllIncludeNamedCookies(Iterable<String> values)Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddAllQueryStringBlacklist(Iterable<String> values)Names of query string parameters to exclude in cache keys.CacheKeyPolicy.BuilderaddAllQueryStringWhitelist(Iterable<String> values)Names of query string parameters to include in cache keys.CacheKeyPolicy.BuilderaddIncludeHttpHeaders(String value)Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddIncludeHttpHeadersBytes(com.google.protobuf.ByteString value)Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddIncludeNamedCookies(String value)Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddIncludeNamedCookiesBytes(com.google.protobuf.ByteString value)Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.BuilderaddQueryStringBlacklist(String value)Names of query string parameters to exclude in cache keys.CacheKeyPolicy.BuilderaddQueryStringBlacklistBytes(com.google.protobuf.ByteString value)Names of query string parameters to exclude in cache keys.CacheKeyPolicy.BuilderaddQueryStringWhitelist(String value)Names of query string parameters to include in cache keys.CacheKeyPolicy.BuilderaddQueryStringWhitelistBytes(com.google.protobuf.ByteString value)Names of query string parameters to include in cache keys.CacheKeyPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CacheKeyPolicybuild()CacheKeyPolicybuildPartial()CacheKeyPolicy.Builderclear()CacheKeyPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CacheKeyPolicy.BuilderclearIncludeHost()If true, requests to different hosts will be cached separately.CacheKeyPolicy.BuilderclearIncludeHttpHeaders()Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.BuilderclearIncludeNamedCookies()Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.BuilderclearIncludeProtocol()If true, http and https requests will be cached separately.CacheKeyPolicy.BuilderclearIncludeQueryString()If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.CacheKeyPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CacheKeyPolicy.BuilderclearQueryStringBlacklist()Names of query string parameters to exclude in cache keys.CacheKeyPolicy.BuilderclearQueryStringWhitelist()Names of query string parameters to include in cache keys.CacheKeyPolicy.Builderclone()CacheKeyPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetIncludeHost()If true, requests to different hosts will be cached separately.StringgetIncludeHttpHeaders(int index)Allows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ByteStringgetIncludeHttpHeadersBytes(int index)Allows HTTP request headers (by name) to be used in the cache key.intgetIncludeHttpHeadersCount()Allows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ProtocolStringListgetIncludeHttpHeadersList()Allows HTTP request headers (by name) to be used in the cache key.StringgetIncludeNamedCookies(int index)Allows HTTP cookies (by name) to be used in the cache key.com.google.protobuf.ByteStringgetIncludeNamedCookiesBytes(int index)Allows HTTP cookies (by name) to be used in the cache key.intgetIncludeNamedCookiesCount()Allows HTTP cookies (by name) to be used in the cache key.com.google.protobuf.ProtocolStringListgetIncludeNamedCookiesList()Allows HTTP cookies (by name) to be used in the cache key.booleangetIncludeProtocol()If true, http and https requests will be cached separately.booleangetIncludeQueryString()If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.StringgetQueryStringBlacklist(int index)Names of query string parameters to exclude in cache keys.com.google.protobuf.ByteStringgetQueryStringBlacklistBytes(int index)Names of query string parameters to exclude in cache keys.intgetQueryStringBlacklistCount()Names of query string parameters to exclude in cache keys.com.google.protobuf.ProtocolStringListgetQueryStringBlacklistList()Names of query string parameters to exclude in cache keys.StringgetQueryStringWhitelist(int index)Names of query string parameters to include in cache keys.com.google.protobuf.ByteStringgetQueryStringWhitelistBytes(int index)Names of query string parameters to include in cache keys.intgetQueryStringWhitelistCount()Names of query string parameters to include in cache keys.com.google.protobuf.ProtocolStringListgetQueryStringWhitelistList()Names of query string parameters to include in cache keys.booleanhasIncludeHost()If true, requests to different hosts will be cached separately.booleanhasIncludeProtocol()If true, http and https requests will be cached separately.booleanhasIncludeQueryString()If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CacheKeyPolicy.BuildermergeFrom(CacheKeyPolicy other)CacheKeyPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CacheKeyPolicy.BuildermergeFrom(com.google.protobuf.Message other)CacheKeyPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CacheKeyPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CacheKeyPolicy.BuildersetIncludeHost(boolean value)If true, requests to different hosts will be cached separately.CacheKeyPolicy.BuildersetIncludeHttpHeaders(int index, String value)Allows HTTP request headers (by name) to be used in the cache key.CacheKeyPolicy.BuildersetIncludeNamedCookies(int index, String value)Allows HTTP cookies (by name) to be used in the cache key.CacheKeyPolicy.BuildersetIncludeProtocol(boolean value)If true, http and https requests will be cached separately.CacheKeyPolicy.BuildersetIncludeQueryString(boolean value)If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.CacheKeyPolicy.BuildersetQueryStringBlacklist(int index, String value)Names of query string parameters to exclude in cache keys.CacheKeyPolicy.BuildersetQueryStringWhitelist(int index, String value)Names of query string parameters to include in cache keys.CacheKeyPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CacheKeyPolicy.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clear
public CacheKeyPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
getDefaultInstanceForType
public CacheKeyPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CacheKeyPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CacheKeyPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CacheKeyPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
setField
public CacheKeyPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clearField
public CacheKeyPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
clearOneof
public CacheKeyPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
setRepeatedField
public CacheKeyPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
addRepeatedField
public CacheKeyPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
mergeFrom
public CacheKeyPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CacheKeyPolicy.Builder>
-
mergeFrom
public CacheKeyPolicy.Builder mergeFrom(CacheKeyPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasIncludeHostin 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:
getIncludeHostin 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:
getIncludeHttpHeadersListin 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:
getIncludeHttpHeadersCountin 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:
getIncludeHttpHeadersin 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:
getIncludeHttpHeadersBytesin 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:
getIncludeNamedCookiesListin 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:
getIncludeNamedCookiesCountin 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:
getIncludeNamedCookiesin 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:
getIncludeNamedCookiesBytesin 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:
hasIncludeProtocolin 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:
getIncludeProtocolin 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:
hasIncludeQueryStringin 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:
getIncludeQueryStringin 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:
getQueryStringBlacklistListin 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:
getQueryStringBlacklistCountin 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:
getQueryStringBlacklistin 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:
getQueryStringBlacklistBytesin 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:
getQueryStringWhitelistListin 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:
getQueryStringWhitelistCountin 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:
getQueryStringWhitelistin 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:
getQueryStringWhitelistBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
mergeUnknownFields
public final CacheKeyPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheKeyPolicy.Builder>
-
-