Class AlternateProtocolsCacheOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.core.v3.AlternateProtocolsCacheOptions
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AlternateProtocolsCacheOptionsOrBuilder,Serializable
public final class AlternateProtocolsCacheOptions extends com.google.protobuf.GeneratedMessageV3 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.
Protobuf typeenvoy.config.core.v3.AlternateProtocolsCacheOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryAllows pre-populating the cache with HTTP/3 alternate protocols entries with a 7 day lifetime.static interfaceAlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilderstatic classAlternateProtocolsCacheOptions.BuilderConfigures the alternate protocols cache which tracks alternate protocols that can be used to make an HTTP connection to an origin server.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intKEY_VALUE_STORE_CONFIG_FIELD_NUMBERstatic intMAX_ENTRIES_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPREPOPULATED_ENTRIES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static AlternateProtocolsCacheOptionsgetDefaultInstance()AlternateProtocolsCacheOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()TypedExtensionConfiggetKeyValueStoreConfig()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.TypedExtensionConfigOrBuildergetKeyValueStoreConfigOrBuilder()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.UInt32ValuegetMaxEntries()The maximum number of entries that the cache will hold.com.google.protobuf.UInt32ValueOrBuildergetMaxEntriesOrBuilder()The maximum number of entries that the cache will hold.StringgetName()The name of the cache.com.google.protobuf.ByteStringgetNameBytes()The name of the cache.com.google.protobuf.Parser<AlternateProtocolsCacheOptions>getParserForType()AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntrygetPrepopulatedEntries(int index)Allows pre-populating the cache with entries, as described above.intgetPrepopulatedEntriesCount()Allows pre-populating the cache with entries, as described above.List<AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntry>getPrepopulatedEntriesList()Allows pre-populating the cache with entries, as described above.AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuildergetPrepopulatedEntriesOrBuilder(int index)Allows pre-populating the cache with entries, as described above.List<? extends AlternateProtocolsCacheOptions.AlternateProtocolsCacheEntryOrBuilder>getPrepopulatedEntriesOrBuilderList()Allows pre-populating the cache with entries, as described above.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasKeyValueStoreConfig()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.booleanhasMaxEntries()The maximum number of entries that the cache will hold.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AlternateProtocolsCacheOptions.BuildernewBuilder()static AlternateProtocolsCacheOptions.BuildernewBuilder(AlternateProtocolsCacheOptions prototype)AlternateProtocolsCacheOptions.BuildernewBuilderForType()protected AlternateProtocolsCacheOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AlternateProtocolsCacheOptionsparseDelimitedFrom(InputStream input)static AlternateProtocolsCacheOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlternateProtocolsCacheOptionsparseFrom(byte[] data)static AlternateProtocolsCacheOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlternateProtocolsCacheOptionsparseFrom(com.google.protobuf.ByteString data)static AlternateProtocolsCacheOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlternateProtocolsCacheOptionsparseFrom(com.google.protobuf.CodedInputStream input)static AlternateProtocolsCacheOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlternateProtocolsCacheOptionsparseFrom(InputStream input)static AlternateProtocolsCacheOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlternateProtocolsCacheOptionsparseFrom(ByteBuffer data)static AlternateProtocolsCacheOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AlternateProtocolsCacheOptions>parser()AlternateProtocolsCacheOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ENTRIES_FIELD_NUMBER
public static final int MAX_ENTRIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEY_VALUE_STORE_CONFIG_FIELD_NUMBER
public static final int KEY_VALUE_STORE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREPOPULATED_ENTRIES_FIELD_NUMBER
public static final int PREPOPULATED_ENTRIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getName
public 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:
getNamein 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:
getNameBytesin interfaceAlternateProtocolsCacheOptionsOrBuilder- Returns:
- The bytes for name.
-
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:
hasMaxEntriesin 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:
getMaxEntriesin interfaceAlternateProtocolsCacheOptionsOrBuilder- Returns:
- The maxEntries.
-
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:
getMaxEntriesOrBuilderin interfaceAlternateProtocolsCacheOptionsOrBuilder
-
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:
hasKeyValueStoreConfigin 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:
getKeyValueStoreConfigin interfaceAlternateProtocolsCacheOptionsOrBuilder- Returns:
- The keyValueStoreConfig.
-
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:
getKeyValueStoreConfigOrBuilderin interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getPrepopulatedEntriesList
public 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:
getPrepopulatedEntriesListin interfaceAlternateProtocolsCacheOptionsOrBuilder
-
getPrepopulatedEntriesOrBuilderList
public 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:
getPrepopulatedEntriesOrBuilderListin 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:
getPrepopulatedEntriesCountin 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:
getPrepopulatedEntriesin interfaceAlternateProtocolsCacheOptionsOrBuilder
-
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:
getPrepopulatedEntriesOrBuilderin interfaceAlternateProtocolsCacheOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlternateProtocolsCacheOptions parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlternateProtocolsCacheOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlternateProtocolsCacheOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AlternateProtocolsCacheOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AlternateProtocolsCacheOptions.Builder newBuilder()
-
newBuilder
public static AlternateProtocolsCacheOptions.Builder newBuilder(AlternateProtocolsCacheOptions prototype)
-
toBuilder
public AlternateProtocolsCacheOptions.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AlternateProtocolsCacheOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AlternateProtocolsCacheOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AlternateProtocolsCacheOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<AlternateProtocolsCacheOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AlternateProtocolsCacheOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-