Class TcpProxy.DeprecatedV1.TCPRoute

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TcpProxy.DeprecatedV1.TCPRouteOrBuilder, Serializable
    Enclosing class:
    TcpProxy.DeprecatedV1

    public static final class TcpProxy.DeprecatedV1.TCPRoute
    extends com.google.protobuf.GeneratedMessageV3
    implements TcpProxy.DeprecatedV1.TCPRouteOrBuilder
     A TCP proxy route consists of a set of optional L4 criteria and the
     name of a cluster. If a downstream connection matches all the
     specified criteria, the cluster in the route is used for the
     corresponding upstream connection. Routes are tried in the order
     specified until a match is found. If no match is found, the connection
     is closed. A route with no criteria is valid and always produces a
     match.
     [#next-free-field: 6]
     
    Protobuf type envoy.config.filter.network.tcp_proxy.v2.TcpProxy.DeprecatedV1.TCPRoute
    See Also:
    Serialized Form
    • Field Detail

      • DESTINATION_IP_LIST_FIELD_NUMBER

        public static final int DESTINATION_IP_LIST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESTINATION_PORTS_FIELD_NUMBER

        public static final int DESTINATION_PORTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_IP_LIST_FIELD_NUMBER

        public static final int SOURCE_IP_LIST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_PORTS_FIELD_NUMBER

        public static final int SOURCE_PORTS_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
      • getCluster

        public String getCluster()
         The cluster to connect to when a the downstream network connection
         matches the specified criteria.
         
        string cluster = 1 [(.validate.rules) = { ... }
        Specified by:
        getCluster in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The cluster.
      • getClusterBytes

        public com.google.protobuf.ByteString getClusterBytes()
         The cluster to connect to when a the downstream network connection
         matches the specified criteria.
         
        string cluster = 1 [(.validate.rules) = { ... }
        Specified by:
        getClusterBytes in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The bytes for cluster.
      • getDestinationIpListList

        public List<CidrRange> getDestinationIpListList()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the destination IP
         address of the downstream connection is contained in at least one of
         the specified subnets. If the parameter is not specified or the list
         is empty, the destination IP address is ignored. The destination IP
         address of the downstream connection might be different from the
         addresses on which the proxy is listening if the connection has been
         redirected.
         
        repeated .envoy.api.v2.core.CidrRange destination_ip_list = 2;
        Specified by:
        getDestinationIpListList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getDestinationIpListOrBuilderList

        public List<? extends CidrRangeOrBuilder> getDestinationIpListOrBuilderList()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the destination IP
         address of the downstream connection is contained in at least one of
         the specified subnets. If the parameter is not specified or the list
         is empty, the destination IP address is ignored. The destination IP
         address of the downstream connection might be different from the
         addresses on which the proxy is listening if the connection has been
         redirected.
         
        repeated .envoy.api.v2.core.CidrRange destination_ip_list = 2;
        Specified by:
        getDestinationIpListOrBuilderList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getDestinationIpListCount

        public int getDestinationIpListCount()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the destination IP
         address of the downstream connection is contained in at least one of
         the specified subnets. If the parameter is not specified or the list
         is empty, the destination IP address is ignored. The destination IP
         address of the downstream connection might be different from the
         addresses on which the proxy is listening if the connection has been
         redirected.
         
        repeated .envoy.api.v2.core.CidrRange destination_ip_list = 2;
        Specified by:
        getDestinationIpListCount in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getDestinationIpList

        public CidrRange getDestinationIpList​(int index)
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the destination IP
         address of the downstream connection is contained in at least one of
         the specified subnets. If the parameter is not specified or the list
         is empty, the destination IP address is ignored. The destination IP
         address of the downstream connection might be different from the
         addresses on which the proxy is listening if the connection has been
         redirected.
         
        repeated .envoy.api.v2.core.CidrRange destination_ip_list = 2;
        Specified by:
        getDestinationIpList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getDestinationIpListOrBuilder

        public CidrRangeOrBuilder getDestinationIpListOrBuilder​(int index)
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the destination IP
         address of the downstream connection is contained in at least one of
         the specified subnets. If the parameter is not specified or the list
         is empty, the destination IP address is ignored. The destination IP
         address of the downstream connection might be different from the
         addresses on which the proxy is listening if the connection has been
         redirected.
         
        repeated .envoy.api.v2.core.CidrRange destination_ip_list = 2;
        Specified by:
        getDestinationIpListOrBuilder in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getDestinationPorts

        public String getDestinationPorts()
         An optional string containing a comma-separated list of port numbers
         or ranges. The criteria is satisfied if the destination port of the
         downstream connection is contained in at least one of the specified
         ranges. If the parameter is not specified, the destination port is
         ignored. The destination port address of the downstream connection
         might be different from the port on which the proxy is listening if
         the connection has been redirected.
         
        string destination_ports = 3;
        Specified by:
        getDestinationPorts in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The destinationPorts.
      • getDestinationPortsBytes

        public com.google.protobuf.ByteString getDestinationPortsBytes()
         An optional string containing a comma-separated list of port numbers
         or ranges. The criteria is satisfied if the destination port of the
         downstream connection is contained in at least one of the specified
         ranges. If the parameter is not specified, the destination port is
         ignored. The destination port address of the downstream connection
         might be different from the port on which the proxy is listening if
         the connection has been redirected.
         
        string destination_ports = 3;
        Specified by:
        getDestinationPortsBytes in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The bytes for destinationPorts.
      • getSourceIpListList

        public List<CidrRange> getSourceIpListList()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the source IP address
         of the downstream connection is contained in at least one of the
         specified subnets. If the parameter is not specified or the list is
         empty, the source IP address is ignored.
         
        repeated .envoy.api.v2.core.CidrRange source_ip_list = 4;
        Specified by:
        getSourceIpListList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getSourceIpListOrBuilderList

        public List<? extends CidrRangeOrBuilder> getSourceIpListOrBuilderList()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the source IP address
         of the downstream connection is contained in at least one of the
         specified subnets. If the parameter is not specified or the list is
         empty, the source IP address is ignored.
         
        repeated .envoy.api.v2.core.CidrRange source_ip_list = 4;
        Specified by:
        getSourceIpListOrBuilderList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getSourceIpListCount

        public int getSourceIpListCount()
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the source IP address
         of the downstream connection is contained in at least one of the
         specified subnets. If the parameter is not specified or the list is
         empty, the source IP address is ignored.
         
        repeated .envoy.api.v2.core.CidrRange source_ip_list = 4;
        Specified by:
        getSourceIpListCount in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getSourceIpList

        public CidrRange getSourceIpList​(int index)
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the source IP address
         of the downstream connection is contained in at least one of the
         specified subnets. If the parameter is not specified or the list is
         empty, the source IP address is ignored.
         
        repeated .envoy.api.v2.core.CidrRange source_ip_list = 4;
        Specified by:
        getSourceIpList in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getSourceIpListOrBuilder

        public CidrRangeOrBuilder getSourceIpListOrBuilder​(int index)
         An optional list of IP address subnets in the form
         “ip_address/xx”. The criteria is satisfied if the source IP address
         of the downstream connection is contained in at least one of the
         specified subnets. If the parameter is not specified or the list is
         empty, the source IP address is ignored.
         
        repeated .envoy.api.v2.core.CidrRange source_ip_list = 4;
        Specified by:
        getSourceIpListOrBuilder in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
      • getSourcePorts

        public String getSourcePorts()
         An optional string containing a comma-separated list of port numbers
         or ranges. The criteria is satisfied if the source port of the
         downstream connection is contained in at least one of the specified
         ranges. If the parameter is not specified, the source port is
         ignored.
         
        string source_ports = 5;
        Specified by:
        getSourcePorts in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The sourcePorts.
      • getSourcePortsBytes

        public com.google.protobuf.ByteString getSourcePortsBytes()
         An optional string containing a comma-separated list of port numbers
         or ranges. The criteria is satisfied if the source port of the
         downstream connection is contained in at least one of the specified
         ranges. If the parameter is not specified, the source port is
         ignored.
         
        string source_ports = 5;
        Specified by:
        getSourcePortsBytes in interface TcpProxy.DeprecatedV1.TCPRouteOrBuilder
        Returns:
        The bytes for sourcePorts.
      • 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 TcpProxy.DeprecatedV1.TCPRoute parseFrom​(ByteBuffer data)
                                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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