Class 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 type envoy.config.core.v3.AlternateProtocolsCacheOptions
    See Also:
    Serialized Form
    • Field Detail

      • 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:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        getName in interface AlternateProtocolsCacheOptionsOrBuilder
        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 interface AlternateProtocolsCacheOptionsOrBuilder
        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:
        hasMaxEntries in interface AlternateProtocolsCacheOptionsOrBuilder
        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 interface AlternateProtocolsCacheOptionsOrBuilder
        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:
        getMaxEntriesOrBuilder in interface AlternateProtocolsCacheOptionsOrBuilder
      • 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 interface AlternateProtocolsCacheOptionsOrBuilder
        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 interface AlternateProtocolsCacheOptionsOrBuilder
        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:
        getKeyValueStoreConfigOrBuilder in interface AlternateProtocolsCacheOptionsOrBuilder
      • 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 interface AlternateProtocolsCacheOptionsOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public AlternateProtocolsCacheOptions.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AlternateProtocolsCacheOptions.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AlternateProtocolsCacheOptions.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AlternateProtocolsCacheOptions> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AlternateProtocolsCacheOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder