Class CacheConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
- io.envoyproxy.envoy.extensions.filters.http.cache.v3.CacheConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CacheConfigOrBuilder,Cloneable
- Enclosing class:
- CacheConfig
public static final class CacheConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder> implements CacheConfigOrBuilder
[#extension: envoy.filters.http.cache]
Protobuf typeenvoy.extensions.filters.http.cache.v3.CacheConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheConfig.BuilderaddAllAllowedVaryHeaders(Iterable<? extends StringMatcher> values)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderaddAllowedVaryHeaders(int index, StringMatcher value)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderaddAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderaddAllowedVaryHeaders(StringMatcher value)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderaddAllowedVaryHeaders(StringMatcher.Builder builderForValue)List of matching rules that defines allowed ``Vary`` headers.StringMatcher.BuilderaddAllowedVaryHeadersBuilder()List of matching rules that defines allowed ``Vary`` headers.StringMatcher.BuilderaddAllowedVaryHeadersBuilder(int index)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CacheConfigbuild()CacheConfigbuildPartial()CacheConfig.Builderclear()CacheConfig.BuilderclearAllowedVaryHeaders()List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CacheConfig.BuilderclearKeyCreatorParams()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.BuilderclearMaxBodyBytes()[#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).CacheConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CacheConfig.BuilderclearTypedConfig()Config specific to the cache storage implementation.CacheConfig.Builderclone()StringMatchergetAllowedVaryHeaders(int index)List of matching rules that defines allowed ``Vary`` headers.StringMatcher.BuildergetAllowedVaryHeadersBuilder(int index)List of matching rules that defines allowed ``Vary`` headers.List<StringMatcher.Builder>getAllowedVaryHeadersBuilderList()List of matching rules that defines allowed ``Vary`` headers.intgetAllowedVaryHeadersCount()List of matching rules that defines allowed ``Vary`` headers.List<StringMatcher>getAllowedVaryHeadersList()List of matching rules that defines allowed ``Vary`` headers.StringMatcherOrBuildergetAllowedVaryHeadersOrBuilder(int index)List of matching rules that defines allowed ``Vary`` headers.List<? extends StringMatcherOrBuilder>getAllowedVaryHeadersOrBuilderList()List of matching rules that defines allowed ``Vary`` headers.CacheConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CacheConfig.KeyCreatorParamsgetKeyCreatorParams()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.KeyCreatorParams.BuildergetKeyCreatorParamsBuilder()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.KeyCreatorParamsOrBuildergetKeyCreatorParamsOrBuilder()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.intgetMaxBodyBytes()[#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).com.google.protobuf.AnygetTypedConfig()Config specific to the cache storage implementation.com.google.protobuf.Any.BuildergetTypedConfigBuilder()Config specific to the cache storage implementation.com.google.protobuf.AnyOrBuildergetTypedConfigOrBuilder()Config specific to the cache storage implementation.booleanhasKeyCreatorParams()[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.booleanhasTypedConfig()Config specific to the cache storage implementation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CacheConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CacheConfig.BuildermergeFrom(com.google.protobuf.Message other)CacheConfig.BuildermergeFrom(CacheConfig other)CacheConfig.BuildermergeKeyCreatorParams(CacheConfig.KeyCreatorParams value)[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.BuildermergeTypedConfig(com.google.protobuf.Any value)Config specific to the cache storage implementation.CacheConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CacheConfig.BuilderremoveAllowedVaryHeaders(int index)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuildersetAllowedVaryHeaders(int index, StringMatcher value)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuildersetAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue)List of matching rules that defines allowed ``Vary`` headers.CacheConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CacheConfig.BuildersetKeyCreatorParams(CacheConfig.KeyCreatorParams value)[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.BuildersetKeyCreatorParams(CacheConfig.KeyCreatorParams.Builder builderForValue)[#not-implemented-hide:] <TODO(toddmgreer) implement key customization> Modifies cache key creation by restricting which parts of the URL are included.CacheConfig.BuildersetMaxBodyBytes(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).CacheConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CacheConfig.BuildersetTypedConfig(com.google.protobuf.Any value)Config specific to the cache storage implementation.CacheConfig.BuildersetTypedConfig(com.google.protobuf.Any.Builder builderForValue)Config specific to the cache storage implementation.CacheConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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<CacheConfig.Builder>
-
clear
public CacheConfig.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<CacheConfig.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<CacheConfig.Builder>
-
getDefaultInstanceForType
public CacheConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CacheConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CacheConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CacheConfig.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<CacheConfig.Builder>
-
setField
public CacheConfig.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<CacheConfig.Builder>
-
clearField
public CacheConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
clearOneof
public CacheConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
setRepeatedField
public CacheConfig.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<CacheConfig.Builder>
-
addRepeatedField
public CacheConfig.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<CacheConfig.Builder>
-
mergeFrom
public CacheConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CacheConfig.Builder>
-
mergeFrom
public CacheConfig.Builder mergeFrom(CacheConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
mergeFrom
public CacheConfig.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<CacheConfig.Builder>- Throws:
IOException
-
hasTypedConfig
public boolean hasTypedConfig()
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }- Specified by:
hasTypedConfigin interfaceCacheConfigOrBuilder- Returns:
- Whether the typedConfig field is set.
-
getTypedConfig
public com.google.protobuf.Any getTypedConfig()
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }- Specified by:
getTypedConfigin interfaceCacheConfigOrBuilder- Returns:
- The typedConfig.
-
setTypedConfig
public CacheConfig.Builder setTypedConfig(com.google.protobuf.Any value)
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }
-
setTypedConfig
public CacheConfig.Builder setTypedConfig(com.google.protobuf.Any.Builder builderForValue)
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }
-
mergeTypedConfig
public CacheConfig.Builder mergeTypedConfig(com.google.protobuf.Any value)
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }
-
clearTypedConfig
public CacheConfig.Builder clearTypedConfig()
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }
-
getTypedConfigBuilder
public com.google.protobuf.Any.Builder getTypedConfigBuilder()
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }
-
getTypedConfigOrBuilder
public com.google.protobuf.AnyOrBuilder getTypedConfigOrBuilder()
Config specific to the cache storage implementation. [#extension-category: envoy.http.cache]
.google.protobuf.Any typed_config = 1 [(.validate.rules) = { ... }- Specified by:
getTypedConfigOrBuilderin interfaceCacheConfigOrBuilder
-
getAllowedVaryHeadersList
public List<StringMatcher> getAllowedVaryHeadersList()
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 interfaceCacheConfigOrBuilder
-
getAllowedVaryHeadersCount
public int getAllowedVaryHeadersCount()
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 interfaceCacheConfigOrBuilder
-
getAllowedVaryHeaders
public StringMatcher getAllowedVaryHeaders(int index)
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 interfaceCacheConfigOrBuilder
-
setAllowedVaryHeaders
public CacheConfig.Builder setAllowedVaryHeaders(int index, StringMatcher value)
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 CacheConfig.Builder setAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue)
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 CacheConfig.Builder addAllowedVaryHeaders(StringMatcher value)
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 CacheConfig.Builder addAllowedVaryHeaders(int index, StringMatcher value)
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 CacheConfig.Builder addAllowedVaryHeaders(StringMatcher.Builder builderForValue)
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 CacheConfig.Builder addAllowedVaryHeaders(int index, StringMatcher.Builder builderForValue)
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
public CacheConfig.Builder addAllAllowedVaryHeaders(Iterable<? extends StringMatcher> values)
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
public CacheConfig.Builder clearAllowedVaryHeaders()
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
public CacheConfig.Builder removeAllowedVaryHeaders(int index)
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
public StringMatcher.Builder getAllowedVaryHeadersBuilder(int index)
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
public StringMatcherOrBuilder getAllowedVaryHeadersOrBuilder(int index)
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 interfaceCacheConfigOrBuilder
-
getAllowedVaryHeadersOrBuilderList
public List<? extends StringMatcherOrBuilder> getAllowedVaryHeadersOrBuilderList()
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 interfaceCacheConfigOrBuilder
-
addAllowedVaryHeadersBuilder
public StringMatcher.Builder addAllowedVaryHeadersBuilder()
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
public StringMatcher.Builder addAllowedVaryHeadersBuilder(int index)
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
public List<StringMatcher.Builder> getAllowedVaryHeadersBuilderList()
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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;- Specified by:
hasKeyCreatorParamsin interfaceCacheConfigOrBuilder- Returns:
- Whether the keyCreatorParams field is set.
-
getKeyCreatorParams
public CacheConfig.KeyCreatorParams 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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;- Specified by:
getKeyCreatorParamsin interfaceCacheConfigOrBuilder- Returns:
- The keyCreatorParams.
-
setKeyCreatorParams
public CacheConfig.Builder setKeyCreatorParams(CacheConfig.KeyCreatorParams value)
[#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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;
-
setKeyCreatorParams
public CacheConfig.Builder setKeyCreatorParams(CacheConfig.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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;
-
mergeKeyCreatorParams
public CacheConfig.Builder mergeKeyCreatorParams(CacheConfig.KeyCreatorParams value)
[#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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;
-
clearKeyCreatorParams
public CacheConfig.Builder 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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;
-
getKeyCreatorParamsBuilder
public CacheConfig.KeyCreatorParams.Builder 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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;
-
getKeyCreatorParamsOrBuilder
public CacheConfig.KeyCreatorParamsOrBuilder 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.v3.CacheConfig.KeyCreatorParams key_creator_params = 3;- Specified by:
getKeyCreatorParamsOrBuilderin interfaceCacheConfigOrBuilder
-
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 interfaceCacheConfigOrBuilder- Returns:
- The maxBodyBytes.
-
setMaxBodyBytes
public CacheConfig.Builder 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).
uint32 max_body_bytes = 4;- Parameters:
value- The maxBodyBytes to set.- Returns:
- This builder for chaining.
-
clearMaxBodyBytes
public CacheConfig.Builder 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.
-
setUnknownFields
public final CacheConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
mergeUnknownFields
public final CacheConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CacheConfig.Builder>
-
-