Class AlternateProtocolsCacheOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
- io.envoyproxy.envoy.config.core.v3.AlternateProtocolsCacheOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,AlternateProtocolsCacheOptionsOrBuilder
,java.lang.Cloneable
- Enclosing class:
- AlternateProtocolsCacheOptions
public static final class AlternateProtocolsCacheOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder> implements AlternateProtocolsCacheOptionsOrBuilder
Configures the alternate protocols cache which tracks alternate protocols that can be used to make an HTTP connection to an origin server. See https://tools.ietf.org/html/rfc7838 for HTTP Alternative Services and https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-04 for the "HTTPS" DNS resource record. [#next-free-field: 6]
Protobuf typeenvoy.config.core.v3.AlternateProtocolsCacheOptions
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private com.google.protobuf.LazyStringArrayList
canonicalSuffixes_
private TypedExtensionConfig
keyValueStoreConfig_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
keyValueStoreConfigBuilder_
private com.google.protobuf.UInt32Value
maxEntries_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
maxEntriesBuilder_
private java.lang.Object
name_
private java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry>
prepopulatedEntries_
private com.google.protobuf.RepeatedFieldBuilder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder>
prepopulatedEntriesBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AlternateProtocolsCacheOptions.Builder
addAllCanonicalSuffixes(java.lang.Iterable<java.lang.String> values)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions.Builder
addAllPrepopulatedEntries(java.lang.Iterable<? extends AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry> values)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
addCanonicalSuffixes(java.lang.String value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions.Builder
addCanonicalSuffixesBytes(com.google.protobuf.ByteString value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions.Builder
addPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
addPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
addPrepopulatedEntries(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
addPrepopulatedEntries(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
addPrepopulatedEntriesBuilder()
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
addPrepopulatedEntriesBuilder(int index)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions
build()
AlternateProtocolsCacheOptions
buildPartial()
private void
buildPartial0(AlternateProtocolsCacheOptions result)
private void
buildPartialRepeatedFields(AlternateProtocolsCacheOptions result)
AlternateProtocolsCacheOptions.Builder
clear()
AlternateProtocolsCacheOptions.Builder
clearCanonicalSuffixes()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions.Builder
clearKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.AlternateProtocolsCacheOptions.Builder
clearMaxEntries()
The maximum number of entries that the cache will hold.AlternateProtocolsCacheOptions.Builder
clearName()
The name of the cache.AlternateProtocolsCacheOptions.Builder
clearPrepopulatedEntries()
Allows pre-populating the cache with entries, as described above.private void
ensureCanonicalSuffixesIsMutable()
private void
ensurePrepopulatedEntriesIsMutable()
java.lang.String
getCanonicalSuffixes(int index)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.com.google.protobuf.ByteString
getCanonicalSuffixesBytes(int index)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.int
getCanonicalSuffixesCount()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.com.google.protobuf.ProtocolStringList
getCanonicalSuffixesList()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
TypedExtensionConfig
getKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.TypedExtensionConfig.Builder
getKeyValueStoreConfigBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
getKeyValueStoreConfigFieldBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.TypedExtensionConfigOrBuilder
getKeyValueStoreConfigOrBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.com.google.protobuf.UInt32Value
getMaxEntries()
The maximum number of entries that the cache will hold.com.google.protobuf.UInt32Value.Builder
getMaxEntriesBuilder()
The maximum number of entries that the cache will hold.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
getMaxEntriesFieldBuilder()
The maximum number of entries that the cache will hold.com.google.protobuf.UInt32ValueOrBuilder
getMaxEntriesOrBuilder()
The maximum number of entries that the cache will hold.java.lang.String
getName()
The name of the cache.com.google.protobuf.ByteString
getNameBytes()
The name of the cache.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry
getPrepopulatedEntries(int index)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder
getPrepopulatedEntriesBuilder(int index)
Allows pre-populating the cache with entries, as described above.java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder>
getPrepopulatedEntriesBuilderList()
Allows pre-populating the cache with entries, as described above.int
getPrepopulatedEntriesCount()
Allows pre-populating the cache with entries, as described above.private com.google.protobuf.RepeatedFieldBuilder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder>
getPrepopulatedEntriesFieldBuilder()
java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry>
getPrepopulatedEntriesList()
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder
getPrepopulatedEntriesOrBuilder(int index)
Allows pre-populating the cache with entries, as described above.java.util.List<? extends AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder>
getPrepopulatedEntriesOrBuilderList()
Allows pre-populating the cache with entries, as described above.boolean
hasKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.boolean
hasMaxEntries()
The maximum number of entries that the cache will hold.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
AlternateProtocolsCacheOptions.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AlternateProtocolsCacheOptions.Builder
mergeFrom(com.google.protobuf.Message other)
AlternateProtocolsCacheOptions.Builder
mergeFrom(AlternateProtocolsCacheOptions other)
AlternateProtocolsCacheOptions.Builder
mergeKeyValueStoreConfig(TypedExtensionConfig value)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.AlternateProtocolsCacheOptions.Builder
mergeMaxEntries(com.google.protobuf.UInt32Value value)
The maximum number of entries that the cache will hold.AlternateProtocolsCacheOptions.Builder
removePrepopulatedEntries(int index)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
setCanonicalSuffixes(int index, java.lang.String value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared.AlternateProtocolsCacheOptions.Builder
setKeyValueStoreConfig(TypedExtensionConfig value)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.AlternateProtocolsCacheOptions.Builder
setKeyValueStoreConfig(TypedExtensionConfig.Builder builderForValue)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk.AlternateProtocolsCacheOptions.Builder
setMaxEntries(com.google.protobuf.UInt32Value value)
The maximum number of entries that the cache will hold.AlternateProtocolsCacheOptions.Builder
setMaxEntries(com.google.protobuf.UInt32Value.Builder builderForValue)
The maximum number of entries that the cache will hold.AlternateProtocolsCacheOptions.Builder
setName(java.lang.String value)
The name of the cache.AlternateProtocolsCacheOptions.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the cache.AlternateProtocolsCacheOptions.Builder
setPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.Builder
setPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.-
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, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
name_
private java.lang.Object name_
-
maxEntries_
private com.google.protobuf.UInt32Value maxEntries_
-
maxEntriesBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> maxEntriesBuilder_
-
keyValueStoreConfig_
private TypedExtensionConfig keyValueStoreConfig_
-
keyValueStoreConfigBuilder_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> keyValueStoreConfigBuilder_
-
prepopulatedEntries_
private java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry> prepopulatedEntries_
-
prepopulatedEntriesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder> prepopulatedEntriesBuilder_
-
canonicalSuffixes_
private com.google.protobuf.LazyStringArrayList canonicalSuffixes_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public AlternateProtocolsCacheOptions.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
getDefaultInstanceForType
public AlternateProtocolsCacheOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlternateProtocolsCacheOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlternateProtocolsCacheOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(AlternateProtocolsCacheOptions result)
-
buildPartial0
private void buildPartial0(AlternateProtocolsCacheOptions result)
-
mergeFrom
public AlternateProtocolsCacheOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
mergeFrom
public AlternateProtocolsCacheOptions.Builder mergeFrom(AlternateProtocolsCacheOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<AlternateProtocolsCacheOptions.Builder>
-
mergeFrom
public AlternateProtocolsCacheOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlternateProtocolsCacheOptions.Builder>
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
The name of the cache. Multiple named caches allow independent alternate protocols cache configurations to operate within a single Envoy process using different configurations. All alternate protocols cache options with the same name *must* be equal in all fields when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }
- Specified by:
getName
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the cache. Multiple named caches allow independent alternate protocols cache configurations to operate within a single Envoy process using different configurations. All alternate protocols cache options with the same name *must* be equal in all fields when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }
- Specified by:
getNameBytes
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- The bytes for name.
-
setName
public AlternateProtocolsCacheOptions.Builder setName(java.lang.String value)
The name of the cache. Multiple named caches allow independent alternate protocols cache configurations to operate within a single Envoy process using different configurations. All alternate protocols cache options with the same name *must* be equal in all fields when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public AlternateProtocolsCacheOptions.Builder clearName()
The name of the cache. Multiple named caches allow independent alternate protocols cache configurations to operate within a single Envoy process using different configurations. All alternate protocols cache options with the same name *must* be equal in all fields when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setNameBytes
public AlternateProtocolsCacheOptions.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the cache. Multiple named caches allow independent alternate protocols cache configurations to operate within a single Envoy process using different configurations. All alternate protocols cache options with the same name *must* be equal in all fields when referenced from different configuration components. Configuration will fail to load if this is not the case.
string name = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasMaxEntries
public boolean hasMaxEntries()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
- Specified by:
hasMaxEntries
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- Whether the maxEntries field is set.
-
getMaxEntries
public com.google.protobuf.UInt32Value getMaxEntries()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
- Specified by:
getMaxEntries
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- The maxEntries.
-
setMaxEntries
public AlternateProtocolsCacheOptions.Builder setMaxEntries(com.google.protobuf.UInt32Value value)
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
setMaxEntries
public AlternateProtocolsCacheOptions.Builder setMaxEntries(com.google.protobuf.UInt32Value.Builder builderForValue)
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
mergeMaxEntries
public AlternateProtocolsCacheOptions.Builder mergeMaxEntries(com.google.protobuf.UInt32Value value)
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
clearMaxEntries
public AlternateProtocolsCacheOptions.Builder clearMaxEntries()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
getMaxEntriesBuilder
public com.google.protobuf.UInt32Value.Builder getMaxEntriesBuilder()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
getMaxEntriesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxEntriesOrBuilder()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
- Specified by:
getMaxEntriesOrBuilder
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getMaxEntriesFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> getMaxEntriesFieldBuilder()
The maximum number of entries that the cache will hold. If not specified defaults to 1024. .. note: The implementation is approximate and enforced independently on each worker thread, thus it is possible for the maximum entries in the cache to go slightly above the configured value depending on timing. This is similar to how other circuit breakers work.
.google.protobuf.UInt32Value max_entries = 2 [(.validate.rules) = { ... }
-
hasKeyValueStoreConfig
public boolean hasKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
- Specified by:
hasKeyValueStoreConfig
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- Whether the keyValueStoreConfig field is set.
-
getKeyValueStoreConfig
public TypedExtensionConfig getKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
- Specified by:
getKeyValueStoreConfig
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- The keyValueStoreConfig.
-
setKeyValueStoreConfig
public AlternateProtocolsCacheOptions.Builder setKeyValueStoreConfig(TypedExtensionConfig value)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
setKeyValueStoreConfig
public AlternateProtocolsCacheOptions.Builder setKeyValueStoreConfig(TypedExtensionConfig.Builder builderForValue)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
mergeKeyValueStoreConfig
public AlternateProtocolsCacheOptions.Builder mergeKeyValueStoreConfig(TypedExtensionConfig value)
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
clearKeyValueStoreConfig
public AlternateProtocolsCacheOptions.Builder clearKeyValueStoreConfig()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
getKeyValueStoreConfigBuilder
public TypedExtensionConfig.Builder getKeyValueStoreConfigBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
getKeyValueStoreConfigOrBuilder
public TypedExtensionConfigOrBuilder getKeyValueStoreConfigOrBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
- Specified by:
getKeyValueStoreConfigOrBuilder
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getKeyValueStoreConfigFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> getKeyValueStoreConfigFieldBuilder()
Allows configuring a persistent :ref:`key value store <envoy_v3_api_msg_config.common.key_value.v3.KeyValueStoreConfig>` to flush alternate protocols entries to disk. This function is currently only supported if concurrency is 1 Cached entries will take precedence over pre-populated entries below.
.envoy.config.core.v3.TypedExtensionConfig key_value_store_config = 3;
-
ensurePrepopulatedEntriesIsMutable
private void ensurePrepopulatedEntriesIsMutable()
-
getPrepopulatedEntriesList
public java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry> getPrepopulatedEntriesList()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
- Specified by:
getPrepopulatedEntriesList
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getPrepopulatedEntriesCount
public int getPrepopulatedEntriesCount()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
- Specified by:
getPrepopulatedEntriesCount
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getPrepopulatedEntries
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry getPrepopulatedEntries(int index)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
- Specified by:
getPrepopulatedEntries
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
setPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder setPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
setPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder setPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder addPrepopulatedEntries(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder addPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry value)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder addPrepopulatedEntries(AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder addPrepopulatedEntries(int index, AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder builderForValue)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addAllPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder addAllPrepopulatedEntries(java.lang.Iterable<? extends AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry> values)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
clearPrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder clearPrepopulatedEntries()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
removePrepopulatedEntries
public AlternateProtocolsCacheOptions.Builder removePrepopulatedEntries(int index)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
getPrepopulatedEntriesBuilder
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder getPrepopulatedEntriesBuilder(int index)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
getPrepopulatedEntriesOrBuilder
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder getPrepopulatedEntriesOrBuilder(int index)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
- Specified by:
getPrepopulatedEntriesOrBuilder
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getPrepopulatedEntriesOrBuilderList
public java.util.List<? extends AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder> getPrepopulatedEntriesOrBuilderList()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
- Specified by:
getPrepopulatedEntriesOrBuilderList
in interfaceAlternateProtocolsCacheOptionsOrBuilder
-
addPrepopulatedEntriesBuilder
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder addPrepopulatedEntriesBuilder()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
addPrepopulatedEntriesBuilder
public AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder addPrepopulatedEntriesBuilder(int index)
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
getPrepopulatedEntriesBuilderList
public java.util.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder> getPrepopulatedEntriesBuilderList()
Allows pre-populating the cache with entries, as described above.
repeated .envoy.config.core.v3.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry prepopulated_entries = 4;
-
getPrepopulatedEntriesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry.Builder,AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder> getPrepopulatedEntriesFieldBuilder()
-
ensureCanonicalSuffixesIsMutable
private void ensureCanonicalSuffixesIsMutable()
-
getCanonicalSuffixesList
public com.google.protobuf.ProtocolStringList getCanonicalSuffixesList()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Specified by:
getCanonicalSuffixesList
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- A list containing the canonicalSuffixes.
-
getCanonicalSuffixesCount
public int getCanonicalSuffixesCount()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Specified by:
getCanonicalSuffixesCount
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Returns:
- The count of canonicalSuffixes.
-
getCanonicalSuffixes
public java.lang.String getCanonicalSuffixes(int index)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Specified by:
getCanonicalSuffixes
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The canonicalSuffixes at the given index.
-
getCanonicalSuffixesBytes
public com.google.protobuf.ByteString getCanonicalSuffixesBytes(int index)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Specified by:
getCanonicalSuffixesBytes
in interfaceAlternateProtocolsCacheOptionsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the canonicalSuffixes at the given index.
-
setCanonicalSuffixes
public AlternateProtocolsCacheOptions.Builder setCanonicalSuffixes(int index, java.lang.String value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Parameters:
index
- The index to set the value at.value
- The canonicalSuffixes to set.- Returns:
- This builder for chaining.
-
addCanonicalSuffixes
public AlternateProtocolsCacheOptions.Builder addCanonicalSuffixes(java.lang.String value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Parameters:
value
- The canonicalSuffixes to add.- Returns:
- This builder for chaining.
-
addAllCanonicalSuffixes
public AlternateProtocolsCacheOptions.Builder addAllCanonicalSuffixes(java.lang.Iterable<java.lang.String> values)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Parameters:
values
- The canonicalSuffixes to add.- Returns:
- This builder for chaining.
-
clearCanonicalSuffixes
public AlternateProtocolsCacheOptions.Builder clearCanonicalSuffixes()
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Returns:
- This builder for chaining.
-
addCanonicalSuffixesBytes
public AlternateProtocolsCacheOptions.Builder addCanonicalSuffixesBytes(com.google.protobuf.ByteString value)
Optional list of hostnames suffixes for which Alt-Svc entries can be shared. For example, if this list contained the value ``.c.example.com``, then an Alt-Svc entry for ``foo.c.example.com`` could be shared with ``bar.c.example.com`` but would not be shared with ``baz.example.com``. On the other hand, if the list contained the value ``.example.com`` then all three hosts could share Alt-Svc entries. Each entry must start with ``.``. If a hostname matches multiple suffixes, the first listed suffix will be used. Since lookup in this list is O(n), it is recommended that the number of suffixes be limited. [#not-implemented-hide:]
repeated string canonical_suffixes = 5;
- Parameters:
value
- The bytes of the canonicalSuffixes to add.- Returns:
- This builder for chaining.
-
-