Class FilterChain

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FilterChainOrBuilder, Serializable

    public final class FilterChain
    extends com.google.protobuf.GeneratedMessageV3
    implements FilterChainOrBuilder
     A filter chain wraps a set of match criteria, an option TLS context, a set of filters, and
     various other parameters.
     [#next-free-field: 8]
     
    Protobuf type envoy.api.v2.listener.FilterChain
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FilterChain.Builder
      A filter chain wraps a set of match criteria, an option TLS context, a set of filters, and various other parameters.
      • 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • hasFilterChainMatch

        public boolean hasFilterChainMatch()
         The criteria to use when matching a connection to this filter chain.
         
        .envoy.api.v2.listener.FilterChainMatch filter_chain_match = 1;
        Specified by:
        hasFilterChainMatch in interface FilterChainOrBuilder
        Returns:
        Whether the filterChainMatch field is set.
      • getFilterChainMatch

        public FilterChainMatch getFilterChainMatch()
         The criteria to use when matching a connection to this filter chain.
         
        .envoy.api.v2.listener.FilterChainMatch filter_chain_match = 1;
        Specified by:
        getFilterChainMatch in interface FilterChainOrBuilder
        Returns:
        The filterChainMatch.
      • hasTlsContext

        @Deprecated
        public boolean hasTlsContext()
        Deprecated.
        envoy.api.v2.listener.FilterChain.tls_context is deprecated. See envoy/api/v2/listener/listener_components.proto;l=180
         The TLS context for this filter chain.
         .. attention::
           **This field is deprecated**. Use `transport_socket` with name `tls` instead. If both are
           set, `transport_socket` takes priority.
         
        .envoy.api.v2.auth.DownstreamTlsContext tls_context = 2 [deprecated = true];
        Specified by:
        hasTlsContext in interface FilterChainOrBuilder
        Returns:
        Whether the tlsContext field is set.
      • getTlsContext

        @Deprecated
        public DownstreamTlsContext getTlsContext()
        Deprecated.
        envoy.api.v2.listener.FilterChain.tls_context is deprecated. See envoy/api/v2/listener/listener_components.proto;l=180
         The TLS context for this filter chain.
         .. attention::
           **This field is deprecated**. Use `transport_socket` with name `tls` instead. If both are
           set, `transport_socket` takes priority.
         
        .envoy.api.v2.auth.DownstreamTlsContext tls_context = 2 [deprecated = true];
        Specified by:
        getTlsContext in interface FilterChainOrBuilder
        Returns:
        The tlsContext.
      • getTlsContextOrBuilder

        @Deprecated
        public DownstreamTlsContextOrBuilder getTlsContextOrBuilder()
        Deprecated.
         The TLS context for this filter chain.
         .. attention::
           **This field is deprecated**. Use `transport_socket` with name `tls` instead. If both are
           set, `transport_socket` takes priority.
         
        .envoy.api.v2.auth.DownstreamTlsContext tls_context = 2 [deprecated = true];
        Specified by:
        getTlsContextOrBuilder in interface FilterChainOrBuilder
      • getFiltersList

        public List<Filter> getFiltersList()
         A list of individual network filters that make up the filter chain for
         connections established with the listener. Order matters as the filters are
         processed sequentially as connection events happen. Note: If the filter
         list is empty, the connection will close by default.
         
        repeated .envoy.api.v2.listener.Filter filters = 3;
        Specified by:
        getFiltersList in interface FilterChainOrBuilder
      • getFiltersOrBuilderList

        public List<? extends FilterOrBuilder> getFiltersOrBuilderList()
         A list of individual network filters that make up the filter chain for
         connections established with the listener. Order matters as the filters are
         processed sequentially as connection events happen. Note: If the filter
         list is empty, the connection will close by default.
         
        repeated .envoy.api.v2.listener.Filter filters = 3;
        Specified by:
        getFiltersOrBuilderList in interface FilterChainOrBuilder
      • getFiltersCount

        public int getFiltersCount()
         A list of individual network filters that make up the filter chain for
         connections established with the listener. Order matters as the filters are
         processed sequentially as connection events happen. Note: If the filter
         list is empty, the connection will close by default.
         
        repeated .envoy.api.v2.listener.Filter filters = 3;
        Specified by:
        getFiltersCount in interface FilterChainOrBuilder
      • getFilters

        public Filter getFilters​(int index)
         A list of individual network filters that make up the filter chain for
         connections established with the listener. Order matters as the filters are
         processed sequentially as connection events happen. Note: If the filter
         list is empty, the connection will close by default.
         
        repeated .envoy.api.v2.listener.Filter filters = 3;
        Specified by:
        getFilters in interface FilterChainOrBuilder
      • getFiltersOrBuilder

        public FilterOrBuilder getFiltersOrBuilder​(int index)
         A list of individual network filters that make up the filter chain for
         connections established with the listener. Order matters as the filters are
         processed sequentially as connection events happen. Note: If the filter
         list is empty, the connection will close by default.
         
        repeated .envoy.api.v2.listener.Filter filters = 3;
        Specified by:
        getFiltersOrBuilder in interface FilterChainOrBuilder
      • hasUseProxyProto

        public boolean hasUseProxyProto()
         Whether the listener should expect a PROXY protocol V1 header on new
         connections. If this option is enabled, the listener will assume that that
         remote address of the connection is the one specified in the header. Some
         load balancers including the AWS ELB support this option. If the option is
         absent or set to false, Envoy will use the physical peer address of the
         connection as the remote address.
         
        .google.protobuf.BoolValue use_proxy_proto = 4;
        Specified by:
        hasUseProxyProto in interface FilterChainOrBuilder
        Returns:
        Whether the useProxyProto field is set.
      • getUseProxyProto

        public com.google.protobuf.BoolValue getUseProxyProto()
         Whether the listener should expect a PROXY protocol V1 header on new
         connections. If this option is enabled, the listener will assume that that
         remote address of the connection is the one specified in the header. Some
         load balancers including the AWS ELB support this option. If the option is
         absent or set to false, Envoy will use the physical peer address of the
         connection as the remote address.
         
        .google.protobuf.BoolValue use_proxy_proto = 4;
        Specified by:
        getUseProxyProto in interface FilterChainOrBuilder
        Returns:
        The useProxyProto.
      • getUseProxyProtoOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getUseProxyProtoOrBuilder()
         Whether the listener should expect a PROXY protocol V1 header on new
         connections. If this option is enabled, the listener will assume that that
         remote address of the connection is the one specified in the header. Some
         load balancers including the AWS ELB support this option. If the option is
         absent or set to false, Envoy will use the physical peer address of the
         connection as the remote address.
         
        .google.protobuf.BoolValue use_proxy_proto = 4;
        Specified by:
        getUseProxyProtoOrBuilder in interface FilterChainOrBuilder
      • hasMetadata

        public boolean hasMetadata()
         [#not-implemented-hide:] filter chain metadata.
         
        .envoy.api.v2.core.Metadata metadata = 5;
        Specified by:
        hasMetadata in interface FilterChainOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Metadata getMetadata()
         [#not-implemented-hide:] filter chain metadata.
         
        .envoy.api.v2.core.Metadata metadata = 5;
        Specified by:
        getMetadata in interface FilterChainOrBuilder
        Returns:
        The metadata.
      • hasTransportSocket

        public boolean hasTransportSocket()
         Optional custom transport socket implementation to use for downstream connections.
         To setup TLS, set a transport socket with name `tls` and
         :ref:`DownstreamTlsContext <envoy_api_msg_auth.DownstreamTlsContext>` in the `typed_config`.
         If no transport socket configuration is specified, new connections
         will be set up with plaintext.
         
        .envoy.api.v2.core.TransportSocket transport_socket = 6;
        Specified by:
        hasTransportSocket in interface FilterChainOrBuilder
        Returns:
        Whether the transportSocket field is set.
      • getTransportSocket

        public TransportSocket getTransportSocket()
         Optional custom transport socket implementation to use for downstream connections.
         To setup TLS, set a transport socket with name `tls` and
         :ref:`DownstreamTlsContext <envoy_api_msg_auth.DownstreamTlsContext>` in the `typed_config`.
         If no transport socket configuration is specified, new connections
         will be set up with plaintext.
         
        .envoy.api.v2.core.TransportSocket transport_socket = 6;
        Specified by:
        getTransportSocket in interface FilterChainOrBuilder
        Returns:
        The transportSocket.
      • getTransportSocketOrBuilder

        public TransportSocketOrBuilder getTransportSocketOrBuilder()
         Optional custom transport socket implementation to use for downstream connections.
         To setup TLS, set a transport socket with name `tls` and
         :ref:`DownstreamTlsContext <envoy_api_msg_auth.DownstreamTlsContext>` in the `typed_config`.
         If no transport socket configuration is specified, new connections
         will be set up with plaintext.
         
        .envoy.api.v2.core.TransportSocket transport_socket = 6;
        Specified by:
        getTransportSocketOrBuilder in interface FilterChainOrBuilder
      • getName

        public String getName()
         [#not-implemented-hide:] The unique name (or empty) by which this filter chain is known. If no
         name is provided, Envoy will allocate an internal UUID for the filter chain. If the filter
         chain is to be dynamically updated or removed via FCDS a unique name must be provided.
         
        string name = 7;
        Specified by:
        getName in interface FilterChainOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         [#not-implemented-hide:] The unique name (or empty) by which this filter chain is known. If no
         name is provided, Envoy will allocate an internal UUID for the filter chain. If the filter
         chain is to be dynamically updated or removed via FCDS a unique name must be provided.
         
        string name = 7;
        Specified by:
        getNameBytes in interface FilterChainOrBuilder
        Returns:
        The bytes for name.
      • 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 FilterChain parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static FilterChain parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static FilterChain getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<FilterChain> parser()
      • getParserForType

        public com.google.protobuf.Parser<FilterChain> 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 FilterChain getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder