Class CacheV2Config.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
io.envoyproxy.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CacheV2ConfigOrBuilder,Cloneable
- Enclosing class:
- CacheV2Config
public static final class CacheV2Config.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
implements CacheV2ConfigOrBuilder
[#extension: envoy.filters.http.cache_v2] [#next-free-field: 8]Protobuf type
envoy.extensions.filters.http.cache_v2.v3.CacheV2Config-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedVaryHeaders(Iterable<? extends StringMatcher> values) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.addAllowedVaryHeaders(int index, StringMatcher value) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.addAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.addAllowedVaryHeaders(StringMatcher.Builder builderForValue) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.addAllowedVaryHeadersBuilder(int index) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.When true, the cache filter is a no-op filter.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit.[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.[#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route.Config specific to the cache storage implementation.clone()getAllowedVaryHeaders(int index) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.getAllowedVaryHeadersBuilder(int index) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.int[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.getAllowedVaryHeadersOrBuilder(int index) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.List<? extends StringMatcherOrBuilder>[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.BoolValueWhen true, the cache filter is a no-op filter.com.google.protobuf.BoolValue.BuilderWhen true, the cache filter is a no-op filter.com.google.protobuf.BoolValueOrBuilderWhen true, the cache filter is a no-op filter.booleanBy default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit.[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.int[#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route.com.google.protobuf.ByteStringIf this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route.com.google.protobuf.AnyConfig specific to the cache storage implementation.com.google.protobuf.Any.BuilderConfig specific to the cache storage implementation.com.google.protobuf.AnyOrBuilderConfig specific to the cache storage implementation.booleanWhen true, the cache filter is a no-op filter.boolean[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.booleanConfig specific to the cache storage implementation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDisabled(com.google.protobuf.BoolValue value) When true, the cache filter is a no-op filter.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CacheV2Config other) [#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.mergeTypedConfig(com.google.protobuf.Any value) Config specific to the cache storage implementation.final CacheV2Config.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAllowedVaryHeaders(int index) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.setAllowedVaryHeaders(int index, StringMatcher value) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.setAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers.setDisabled(com.google.protobuf.BoolValue value) When true, the cache filter is a no-op filter.setDisabled(com.google.protobuf.BoolValue.Builder builderForValue) When true, the cache filter is a no-op filter.setIgnoreRequestCacheControlHeader(boolean value) By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit.[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.setKeyCreatorParams(CacheV2Config.KeyCreatorParams.Builder builderForValue) [#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.setMaxBodyBytes(int value) [#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).setOverrideUpstreamCluster(String value) If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route.setOverrideUpstreamClusterBytes(com.google.protobuf.ByteString value) If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTypedConfig(com.google.protobuf.Any value) Config specific to the cache storage implementation.setTypedConfig(com.google.protobuf.Any.Builder builderForValue) Config specific to the cache storage implementation.final CacheV2Config.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.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<CacheV2Config.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<CacheV2Config.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-
setField
public CacheV2Config.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<CacheV2Config.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-
setRepeatedField
public CacheV2Config.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<CacheV2Config.Builder>
-
addRepeatedField
public CacheV2Config.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<CacheV2Config.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CacheV2Config.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-
mergeFrom
public CacheV2Config.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<CacheV2Config.Builder>- Throws:
IOException
-
hasTypedConfig
public boolean hasTypedConfig()Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1;- Specified by:
hasTypedConfigin interfaceCacheV2ConfigOrBuilder- Returns:
- Whether the typedConfig field is set.
-
getTypedConfig
public com.google.protobuf.Any getTypedConfig()Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1;- Specified by:
getTypedConfigin interfaceCacheV2ConfigOrBuilder- Returns:
- The typedConfig.
-
setTypedConfig
Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1; -
setTypedConfig
Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1; -
mergeTypedConfig
Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1; -
clearTypedConfig
Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1; -
getTypedConfigBuilder
public com.google.protobuf.Any.Builder getTypedConfigBuilder()Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1; -
getTypedConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getTypedConfigOrBuilder()Config specific to the cache storage implementation. Required unless ``disabled`` is true. [#extension-category: envoy.http.cache_v2]
.google.protobuf.Any typed_config = 1;- Specified by:
getTypedConfigOrBuilderin interfaceCacheV2ConfigOrBuilder
-
hasDisabled
public boolean hasDisabled()When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5;- Specified by:
hasDisabledin interfaceCacheV2ConfigOrBuilder- Returns:
- Whether the disabled field is set.
-
getDisabled
public com.google.protobuf.BoolValue getDisabled()When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5;- Specified by:
getDisabledin interfaceCacheV2ConfigOrBuilder- Returns:
- The disabled.
-
setDisabled
When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5; -
setDisabled
When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5; -
mergeDisabled
When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5; -
clearDisabled
When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5; -
getDisabledBuilder
public com.google.protobuf.BoolValue.Builder getDisabledBuilder()When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5; -
getDisabledOrBuilder
public com.google.protobuf.BoolValueOrBuilder getDisabledOrBuilder()When true, the cache filter is a no-op filter. Possible use-cases for this include: - Turning a filter on and off with :ref:`ECDS <envoy_v3_api_file_envoy/service/extension/v3/config_discovery.proto>`. [#comment: once route-specific overrides are implemented, they are the more likely use-case.]
.google.protobuf.BoolValue disabled = 5;- Specified by:
getDisabledOrBuilderin interfaceCacheV2ConfigOrBuilder
-
getAllowedVaryHeadersList
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2;- Specified by:
getAllowedVaryHeadersListin interfaceCacheV2ConfigOrBuilder
-
getAllowedVaryHeadersCount
public int getAllowedVaryHeadersCount()[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2;- Specified by:
getAllowedVaryHeadersCountin interfaceCacheV2ConfigOrBuilder
-
getAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2;- Specified by:
getAllowedVaryHeadersin interfaceCacheV2ConfigOrBuilder
-
setAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
setAllowedVaryHeaders
public CacheV2Config.Builder setAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllowedVaryHeaders
public CacheV2Config.Builder addAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue) [#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
clearAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
removeAllowedVaryHeaders
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
getAllowedVaryHeadersBuilder
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
getAllowedVaryHeadersOrBuilder
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2;- Specified by:
getAllowedVaryHeadersOrBuilderin interfaceCacheV2ConfigOrBuilder
-
getAllowedVaryHeadersOrBuilderList
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2;- Specified by:
getAllowedVaryHeadersOrBuilderListin interfaceCacheV2ConfigOrBuilder
-
addAllowedVaryHeadersBuilder
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
addAllowedVaryHeadersBuilder
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
getAllowedVaryHeadersBuilderList
[#not-implemented-hide:] List of matching rules that defines allowed ``Vary`` headers. The ``vary`` response header holds a list of header names that affect the contents of a response, as described by https://httpwg.org/specs/rfc7234.html#caching.negotiated.responses. During insertion, ``allowed_vary_headers`` acts as a allowlist: if a response's ``vary`` header mentions any header names that aren't matched by any rules in ``allowed_vary_headers``, that response will not be cached. During lookup, ``allowed_vary_headers`` controls what request headers will be sent to the cache storage implementation.
repeated .envoy.type.matcher.v3.StringMatcher allowed_vary_headers = 2; -
hasKeyCreatorParams
public boolean hasKeyCreatorParams()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3;- Specified by:
hasKeyCreatorParamsin interfaceCacheV2ConfigOrBuilder- Returns:
- Whether the keyCreatorParams field is set.
-
getKeyCreatorParams
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3;- Specified by:
getKeyCreatorParamsin interfaceCacheV2ConfigOrBuilder- Returns:
- The keyCreatorParams.
-
setKeyCreatorParams
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3; -
setKeyCreatorParams
public CacheV2Config.Builder setKeyCreatorParams(CacheV2Config.KeyCreatorParams.Builder builderForValue) [#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3; -
mergeKeyCreatorParams
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3; -
clearKeyCreatorParams
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3; -
getKeyCreatorParamsBuilder
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3; -
getKeyCreatorParamsOrBuilder
[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.
.envoy.extensions.filters.http.cache_v2.v3.CacheV2Config.KeyCreatorParams key_creator_params = 3;- Specified by:
getKeyCreatorParamsOrBuilderin interfaceCacheV2ConfigOrBuilder
-
getMaxBodyBytes
public int getMaxBodyBytes()[#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).
uint32 max_body_bytes = 4;- Specified by:
getMaxBodyBytesin interfaceCacheV2ConfigOrBuilder- Returns:
- The maxBodyBytes.
-
setMaxBodyBytes
[#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).
uint32 max_body_bytes = 4;- Parameters:
value- The maxBodyBytes to set.- Returns:
- This builder for chaining.
-
clearMaxBodyBytes
[#not-implemented-hide:] <TODO(toddmgreer) implement size limit> Max body size the cache filter will insert into a cache. 0 means unlimited (though the cache storage implementation may have its own limit beyond which it will reject insertions).
uint32 max_body_bytes = 4;- Returns:
- This builder for chaining.
-
getIgnoreRequestCacheControlHeader
public boolean getIgnoreRequestCacheControlHeader()By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit. Setting this to true will ignore these headers.
bool ignore_request_cache_control_header = 6;- Specified by:
getIgnoreRequestCacheControlHeaderin interfaceCacheV2ConfigOrBuilder- Returns:
- The ignoreRequestCacheControlHeader.
-
setIgnoreRequestCacheControlHeader
By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit. Setting this to true will ignore these headers.
bool ignore_request_cache_control_header = 6;- Parameters:
value- The ignoreRequestCacheControlHeader to set.- Returns:
- This builder for chaining.
-
clearIgnoreRequestCacheControlHeader
By default, a ``cache-control: no-cache`` or ``pragma: no-cache`` header in the request causes the cache to validate with its upstream even if the lookup is a hit. Setting this to true will ignore these headers.
bool ignore_request_cache_control_header = 6;- Returns:
- This builder for chaining.
-
getOverrideUpstreamCluster
If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route. If you have actions to be taken by the router filter - either ``upstream_http_filters`` or one of the ``RouteConfiguration`` actions such as ``response_headers_to_add`` - then the cache's side-channel going directly to the routed cluster will bypass these actions. You can set ``override_upstream_cluster`` to an internal listener which duplicates the relevant ``RouteConfiguration``, to replicate the desired behavior on the side-channel upstream request issued by the cache. This is a workaround for implementation constraints which it is hoped will at some point become unnecessary, then unsupported and this field will be removed.
string override_upstream_cluster = 7;- Specified by:
getOverrideUpstreamClusterin interfaceCacheV2ConfigOrBuilder- Returns:
- The overrideUpstreamCluster.
-
getOverrideUpstreamClusterBytes
public com.google.protobuf.ByteString getOverrideUpstreamClusterBytes()If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route. If you have actions to be taken by the router filter - either ``upstream_http_filters`` or one of the ``RouteConfiguration`` actions such as ``response_headers_to_add`` - then the cache's side-channel going directly to the routed cluster will bypass these actions. You can set ``override_upstream_cluster`` to an internal listener which duplicates the relevant ``RouteConfiguration``, to replicate the desired behavior on the side-channel upstream request issued by the cache. This is a workaround for implementation constraints which it is hoped will at some point become unnecessary, then unsupported and this field will be removed.
string override_upstream_cluster = 7;- Specified by:
getOverrideUpstreamClusterBytesin interfaceCacheV2ConfigOrBuilder- Returns:
- The bytes for overrideUpstreamCluster.
-
setOverrideUpstreamCluster
If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route. If you have actions to be taken by the router filter - either ``upstream_http_filters`` or one of the ``RouteConfiguration`` actions such as ``response_headers_to_add`` - then the cache's side-channel going directly to the routed cluster will bypass these actions. You can set ``override_upstream_cluster`` to an internal listener which duplicates the relevant ``RouteConfiguration``, to replicate the desired behavior on the side-channel upstream request issued by the cache. This is a workaround for implementation constraints which it is hoped will at some point become unnecessary, then unsupported and this field will be removed.
string override_upstream_cluster = 7;- Parameters:
value- The overrideUpstreamCluster to set.- Returns:
- This builder for chaining.
-
clearOverrideUpstreamCluster
If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route. If you have actions to be taken by the router filter - either ``upstream_http_filters`` or one of the ``RouteConfiguration`` actions such as ``response_headers_to_add`` - then the cache's side-channel going directly to the routed cluster will bypass these actions. You can set ``override_upstream_cluster`` to an internal listener which duplicates the relevant ``RouteConfiguration``, to replicate the desired behavior on the side-channel upstream request issued by the cache. This is a workaround for implementation constraints which it is hoped will at some point become unnecessary, then unsupported and this field will be removed.
string override_upstream_cluster = 7;- Returns:
- This builder for chaining.
-
setOverrideUpstreamClusterBytes
If this is set, requests sent upstream to populate the cache will go to the specified cluster rather than the cluster selected by the vhost and route. If you have actions to be taken by the router filter - either ``upstream_http_filters`` or one of the ``RouteConfiguration`` actions such as ``response_headers_to_add`` - then the cache's side-channel going directly to the routed cluster will bypass these actions. You can set ``override_upstream_cluster`` to an internal listener which duplicates the relevant ``RouteConfiguration``, to replicate the desired behavior on the side-channel upstream request issued by the cache. This is a workaround for implementation constraints which it is hoped will at some point become unnecessary, then unsupported and this field will be removed.
string override_upstream_cluster = 7;- Parameters:
value- The bytes for overrideUpstreamCluster to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CacheV2Config.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-
mergeUnknownFields
public final CacheV2Config.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheV2Config.Builder>
-