Package com.google.cloud.compute.v1
Class CachePolicyCacheKeyPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
com.google.cloud.compute.v1.CachePolicyCacheKeyPolicy.Builder
- All Implemented Interfaces:
CachePolicyCacheKeyPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CachePolicyCacheKeyPolicy
public static final class CachePolicyCacheKeyPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
implements CachePolicyCacheKeyPolicyOrBuilder
Message containing what to include in the cache key for a request for Cache Policy defined on Route Action.Protobuf type
google.cloud.compute.v1.CachePolicyCacheKeyPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcludedQueryParameters(Iterable<String> values) Names of query string parameters to exclude in cache keys.addAllIncludedCookieNames(Iterable<String> values) Allows HTTP cookies (by name) to be used in the cache key.addAllIncludedHeaderNames(Iterable<String> values) Allows HTTP request headers (by name) to be used in the cache key.addAllIncludedQueryParameters(Iterable<String> values) Names of query string parameters to include in cache keys.addExcludedQueryParameters(String value) Names of query string parameters to exclude in cache keys.addExcludedQueryParametersBytes(com.google.protobuf.ByteString value) Names of query string parameters to exclude in cache keys.addIncludedCookieNames(String value) Allows HTTP cookies (by name) to be used in the cache key.addIncludedCookieNamesBytes(com.google.protobuf.ByteString value) Allows HTTP cookies (by name) to be used in the cache key.addIncludedHeaderNames(String value) Allows HTTP request headers (by name) to be used in the cache key.addIncludedHeaderNamesBytes(com.google.protobuf.ByteString value) Allows HTTP request headers (by name) to be used in the cache key.addIncludedQueryParameters(String value) Names of query string parameters to include in cache keys.addIncludedQueryParametersBytes(com.google.protobuf.ByteString value) Names of query string parameters to include in cache keys.build()clear()Names of query string parameters to exclude in cache keys.Allows HTTP cookies (by name) to be used in the cache key.Allows HTTP request headers (by name) to be used in the cache key.Names of query string parameters to include in cache keys.If true, requests to different hosts will be cached separately.If true, http and https requests will be cached separately.If true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExcludedQueryParameters(int index) Names of query string parameters to exclude in cache keys.com.google.protobuf.ByteStringgetExcludedQueryParametersBytes(int index) Names of query string parameters to exclude in cache keys.intNames of query string parameters to exclude in cache keys.com.google.protobuf.ProtocolStringListNames of query string parameters to exclude in cache keys.getIncludedCookieNames(int index) Allows HTTP cookies (by name) to be used in the cache key.com.google.protobuf.ByteStringgetIncludedCookieNamesBytes(int index) Allows HTTP cookies (by name) to be used in the cache key.intAllows HTTP cookies (by name) to be used in the cache key.com.google.protobuf.ProtocolStringListAllows HTTP cookies (by name) to be used in the cache key.getIncludedHeaderNames(int index) Allows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ByteStringgetIncludedHeaderNamesBytes(int index) Allows HTTP request headers (by name) to be used in the cache key.intAllows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ProtocolStringListAllows HTTP request headers (by name) to be used in the cache key.getIncludedQueryParameters(int index) Names of query string parameters to include in cache keys.com.google.protobuf.ByteStringgetIncludedQueryParametersBytes(int index) Names of query string parameters to include in cache keys.intNames of query string parameters to include in cache keys.com.google.protobuf.ProtocolStringListNames of query string parameters to include in cache keys.booleanIf true, requests to different hosts will be cached separately.booleanIf true, http and https requests will be cached separately.booleanIf true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`.booleanIf true, requests to different hosts will be cached separately.booleanIf true, http and https requests will be cached separately.booleanIf true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExcludedQueryParameters(int index, String value) Names of query string parameters to exclude in cache keys.setIncludedCookieNames(int index, String value) Allows HTTP cookies (by name) to be used in the cache key.setIncludedHeaderNames(int index, String value) Allows HTTP request headers (by name) to be used in the cache key.setIncludedQueryParameters(int index, String value) Names of query string parameters to include in cache keys.setIncludeHost(boolean value) If true, requests to different hosts will be cached separately.setIncludeProtocol(boolean value) If true, http and https requests will be cached separately.setIncludeQueryString(boolean value) If true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.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.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder>
-
mergeFrom
public CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.Builder>- Throws:
IOException
-
getExcludedQueryParametersList
public com.google.protobuf.ProtocolStringList getExcludedQueryParametersList()Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Specified by:
getExcludedQueryParametersListin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- A list containing the excludedQueryParameters.
-
getExcludedQueryParametersCount
public int getExcludedQueryParametersCount()Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Specified by:
getExcludedQueryParametersCountin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The count of excludedQueryParameters.
-
getExcludedQueryParameters
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Specified by:
getExcludedQueryParametersin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludedQueryParameters at the given index.
-
getExcludedQueryParametersBytes
public com.google.protobuf.ByteString getExcludedQueryParametersBytes(int index) Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Specified by:
getExcludedQueryParametersBytesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludedQueryParameters at the given index.
-
setExcludedQueryParameters
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Parameters:
index- The index to set the value at.value- The excludedQueryParameters to set.- Returns:
- This builder for chaining.
-
addExcludedQueryParameters
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Parameters:
value- The excludedQueryParameters to add.- Returns:
- This builder for chaining.
-
addAllExcludedQueryParameters
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Parameters:
values- The excludedQueryParameters to add.- Returns:
- This builder for chaining.
-
clearExcludedQueryParameters
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Returns:
- This builder for chaining.
-
addExcludedQueryParametersBytes
public CachePolicyCacheKeyPolicy.Builder addExcludedQueryParametersBytes(com.google.protobuf.ByteString value) Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify `excludedQueryParameters` or `includedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
repeated string excluded_query_parameters = 124896150;- Parameters:
value- The bytes of the excludedQueryParameters to add.- Returns:
- This builder for chaining.
-
hasIncludeHost
public boolean hasIncludeHost()If true, requests to different hosts will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache key. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_host = 486867679;- Specified by:
hasIncludeHostin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- Whether the includeHost field is set.
-
getIncludeHost
public boolean getIncludeHost()If true, requests to different hosts will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache key. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_host = 486867679;- Specified by:
getIncludeHostin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The includeHost.
-
setIncludeHost
If true, requests to different hosts will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache key. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_host = 486867679;- Parameters:
value- The includeHost to set.- Returns:
- This builder for chaining.
-
clearIncludeHost
If true, requests to different hosts will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the host is never included in a Backend Bucket's cache key. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_host = 486867679;- Returns:
- This builder for chaining.
-
hasIncludeProtocol
public boolean hasIncludeProtocol()If true, http and https requests will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's cache key. Attempting to set on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_protocol = 303507535;- Specified by:
hasIncludeProtocolin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- Whether the includeProtocol field is set.
-
getIncludeProtocol
public boolean getIncludeProtocol()If true, http and https requests will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's cache key. Attempting to set on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_protocol = 303507535;- Specified by:
getIncludeProtocolin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The includeProtocol.
-
setIncludeProtocol
If true, http and https requests will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's cache key. Attempting to set on a route that points exclusively to Backend Buckets will result in a configuration error.
optional bool include_protocol = 303507535;- Parameters:
value- The includeProtocol to set.- Returns:
- This builder for chaining.
-
clearIncludeProtocol
If true, http and https requests will be cached separately. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket, as the protocol is never included in a Backend Bucket's cache key. Attempting to set on a route that points exclusively to Backend Buckets will result in a configuration error.
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 `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
optional bool include_query_string = 474036639;- Specified by:
hasIncludeQueryStringin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- Whether the includeQueryString field is set.
-
getIncludeQueryString
public boolean getIncludeQueryString()If true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
optional bool include_query_string = 474036639;- Specified by:
getIncludeQueryStringin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The includeQueryString.
-
setIncludeQueryString
If true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
optional bool include_query_string = 474036639;- Parameters:
value- The includeQueryString to set.- Returns:
- This builder for chaining.
-
clearIncludeQueryString
If true, include query string parameters in the cache key according to `includedQueryParameters` and `excludedQueryParameters`. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. Note: This field applies to routes that use backend services. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. For routes that point to a Backend Bucket, use `includedQueryParameters` to define which parameters should be part of the cache key.
optional bool include_query_string = 474036639;- Returns:
- This builder for chaining.
-
getIncludedCookieNamesList
public com.google.protobuf.ProtocolStringList getIncludedCookieNamesList()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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Specified by:
getIncludedCookieNamesListin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- A list containing the includedCookieNames.
-
getIncludedCookieNamesCount
public int getIncludedCookieNamesCount()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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Specified by:
getIncludedCookieNamesCountin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The count of includedCookieNames.
-
getIncludedCookieNames
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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Specified by:
getIncludedCookieNamesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedCookieNames at the given index.
-
getIncludedCookieNamesBytes
public com.google.protobuf.ByteString getIncludedCookieNamesBytes(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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Specified by:
getIncludedCookieNamesBytesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includedCookieNames at the given index.
-
setIncludedCookieNames
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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Parameters:
index- The index to set the value at.value- The includedCookieNames to set.- Returns:
- This builder for chaining.
-
addIncludedCookieNames
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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Parameters:
value- The includedCookieNames to add.- Returns:
- This builder for chaining.
-
addAllIncludedCookieNames
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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Parameters:
values- The includedCookieNames to add.- Returns:
- This builder for chaining.
-
clearIncludedCookieNames
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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Returns:
- This builder for chaining.
-
addIncludedCookieNamesBytes
public CachePolicyCacheKeyPolicy.Builder addIncludedCookieNamesBytes(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. Note: This setting is only applicable to routes that use a Backend Service. It does not affect requests served by a Backend Bucket. Attempting to set it on a route that points exclusively to Backend Buckets will result in a configuration error. Up to 5 cookie names can be specified.
repeated string included_cookie_names = 66987088;- Parameters:
value- The bytes of the includedCookieNames to add.- Returns:
- This builder for chaining.
-
getIncludedHeaderNamesList
public com.google.protobuf.ProtocolStringList getIncludedHeaderNamesList()Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Specified by:
getIncludedHeaderNamesListin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- A list containing the includedHeaderNames.
-
getIncludedHeaderNamesCount
public int getIncludedHeaderNamesCount()Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Specified by:
getIncludedHeaderNamesCountin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The count of includedHeaderNames.
-
getIncludedHeaderNames
Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Specified by:
getIncludedHeaderNamesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedHeaderNames at the given index.
-
getIncludedHeaderNamesBytes
public com.google.protobuf.ByteString getIncludedHeaderNamesBytes(int index) Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Specified by:
getIncludedHeaderNamesBytesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includedHeaderNames at the given index.
-
setIncludedHeaderNames
Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Parameters:
index- The index to set the value at.value- The includedHeaderNames to set.- Returns:
- This builder for chaining.
-
addIncludedHeaderNames
Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Parameters:
value- The includedHeaderNames to add.- Returns:
- This builder for chaining.
-
addAllIncludedHeaderNames
Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Parameters:
values- The includedHeaderNames to add.- Returns:
- This builder for chaining.
-
clearIncludedHeaderNames
Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Returns:
- This builder for chaining.
-
addIncludedHeaderNamesBytes
public CachePolicyCacheKeyPolicy.Builder addIncludedHeaderNamesBytes(com.google.protobuf.ByteString value) Allows HTTP request headers (by name) to be used in the cache key.
repeated string included_header_names = 533756345;- Parameters:
value- The bytes of the includedHeaderNames to add.- Returns:
- This builder for chaining.
-
getIncludedQueryParametersList
public com.google.protobuf.ProtocolStringList getIncludedQueryParametersList()Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Specified by:
getIncludedQueryParametersListin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- A list containing the includedQueryParameters.
-
getIncludedQueryParametersCount
public int getIncludedQueryParametersCount()Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Specified by:
getIncludedQueryParametersCountin interfaceCachePolicyCacheKeyPolicyOrBuilder- Returns:
- The count of includedQueryParameters.
-
getIncludedQueryParameters
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Specified by:
getIncludedQueryParametersin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedQueryParameters at the given index.
-
getIncludedQueryParametersBytes
public com.google.protobuf.ByteString getIncludedQueryParametersBytes(int index) Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Specified by:
getIncludedQueryParametersBytesin interfaceCachePolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includedQueryParameters at the given index.
-
setIncludedQueryParameters
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Parameters:
index- The index to set the value at.value- The includedQueryParameters to set.- Returns:
- This builder for chaining.
-
addIncludedQueryParameters
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Parameters:
value- The includedQueryParameters to add.- Returns:
- This builder for chaining.
-
addAllIncludedQueryParameters
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Parameters:
values- The includedQueryParameters to add.- Returns:
- This builder for chaining.
-
clearIncludedQueryParameters
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Returns:
- This builder for chaining.
-
addIncludedQueryParametersBytes
public CachePolicyCacheKeyPolicy.Builder addIncludedQueryParametersBytes(com.google.protobuf.ByteString value) Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify `includedQueryParameters` or `excludedQueryParameters`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string included_query_parameters = 2319076;- Parameters:
value- The bytes of the includedQueryParameters to add.- Returns:
- This builder for chaining.
-