Class FilterConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FilterConfigOrBuilder, Cloneable
    Enclosing class:
    FilterConfig

    public static final class FilterConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
    implements FilterConfigOrBuilder
     Configuration for the alternate protocols cache HTTP filter.
     [#extension: envoy.filters.http.alternate_protocols_cache]
     
    Protobuf type envoy.extensions.filters.http.alternate_protocols_cache.v3.FilterConfig
    • Method Detail

      • 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.Builder<FilterConfig.Builder>
      • clear

        public FilterConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • getDefaultInstanceForType

        public FilterConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FilterConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FilterConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FilterConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • setField

        public FilterConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • clearField

        public FilterConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • clearOneof

        public FilterConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • setRepeatedField

        public FilterConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • addRepeatedField

        public FilterConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • mergeFrom

        public FilterConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • mergeFrom

        public FilterConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
        Throws:
        IOException
      • hasAlternateProtocolsCacheOptions

        public boolean hasAlternateProtocolsCacheOptions()
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
        Specified by:
        hasAlternateProtocolsCacheOptions in interface FilterConfigOrBuilder
        Returns:
        Whether the alternateProtocolsCacheOptions field is set.
      • getAlternateProtocolsCacheOptions

        public AlternateProtocolsCacheOptions getAlternateProtocolsCacheOptions()
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
        Specified by:
        getAlternateProtocolsCacheOptions in interface FilterConfigOrBuilder
        Returns:
        The alternateProtocolsCacheOptions.
      • setAlternateProtocolsCacheOptions

        public FilterConfig.Builder setAlternateProtocolsCacheOptions​(AlternateProtocolsCacheOptions value)
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
      • setAlternateProtocolsCacheOptions

        public FilterConfig.Builder setAlternateProtocolsCacheOptions​(AlternateProtocolsCacheOptions.Builder builderForValue)
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
      • mergeAlternateProtocolsCacheOptions

        public FilterConfig.Builder mergeAlternateProtocolsCacheOptions​(AlternateProtocolsCacheOptions value)
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
      • clearAlternateProtocolsCacheOptions

        public FilterConfig.Builder clearAlternateProtocolsCacheOptions()
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
      • getAlternateProtocolsCacheOptionsBuilder

        public AlternateProtocolsCacheOptions.Builder getAlternateProtocolsCacheOptionsBuilder()
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
      • getAlternateProtocolsCacheOptionsOrBuilder

        public AlternateProtocolsCacheOptionsOrBuilder getAlternateProtocolsCacheOptionsOrBuilder()
         If set, causes the use of the alternate protocols cache, which is responsible for
         parsing and caching HTTP Alt-Svc headers. This enables the use of HTTP/3 for upstream
         servers that advertise supporting it.
         TODO(RyanTheOptimist): Make this field required when HTTP/3 is enabled via auto_http.
         
        .envoy.config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 1;
        Specified by:
        getAlternateProtocolsCacheOptionsOrBuilder in interface FilterConfigOrBuilder
      • setUnknownFields

        public final FilterConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
      • mergeUnknownFields

        public final FilterConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>