Class MatchPredicate

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

    public final class MatchPredicate
    extends com.google.protobuf.GeneratedMessageV3
    implements MatchPredicateOrBuilder
     Match configuration. This is a recursive structure which allows complex nested match
     configurations to be built using various logical operators.
     [#next-free-field: 11]
     
    Protobuf type envoy.config.common.matcher.v3.MatchPredicate
    See Also:
    Serialized Form
    • Field Detail

      • HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER

        public static final int HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER

        public static final int HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER

        public static final int HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER

        public static final int HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER

        public static final int HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HTTP_RESPONSE_GENERIC_BODY_MATCH_FIELD_NUMBER

        public static final int HTTP_RESPONSE_GENERIC_BODY_MATCH_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
      • hasOrMatch

        public boolean hasOrMatch()
         A set that describes a logical OR. If any member of the set matches, the match configuration
         matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate.MatchSet or_match = 1;
        Specified by:
        hasOrMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the orMatch field is set.
      • getOrMatch

        public MatchPredicate.MatchSet getOrMatch()
         A set that describes a logical OR. If any member of the set matches, the match configuration
         matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate.MatchSet or_match = 1;
        Specified by:
        getOrMatch in interface MatchPredicateOrBuilder
        Returns:
        The orMatch.
      • hasAndMatch

        public boolean hasAndMatch()
         A set that describes a logical AND. If all members of the set match, the match configuration
         matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate.MatchSet and_match = 2;
        Specified by:
        hasAndMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the andMatch field is set.
      • getAndMatch

        public MatchPredicate.MatchSet getAndMatch()
         A set that describes a logical AND. If all members of the set match, the match configuration
         matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate.MatchSet and_match = 2;
        Specified by:
        getAndMatch in interface MatchPredicateOrBuilder
        Returns:
        The andMatch.
      • hasNotMatch

        public boolean hasNotMatch()
         A negation match. The match configuration will match if the negated match condition matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate not_match = 3;
        Specified by:
        hasNotMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the notMatch field is set.
      • getNotMatch

        public MatchPredicate getNotMatch()
         A negation match. The match configuration will match if the negated match condition matches.
         
        .envoy.config.common.matcher.v3.MatchPredicate not_match = 3;
        Specified by:
        getNotMatch in interface MatchPredicateOrBuilder
        Returns:
        The notMatch.
      • hasAnyMatch

        public boolean hasAnyMatch()
         The match configuration will always match.
         
        bool any_match = 4 [(.validate.rules) = { ... }
        Specified by:
        hasAnyMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the anyMatch field is set.
      • getAnyMatch

        public boolean getAnyMatch()
         The match configuration will always match.
         
        bool any_match = 4 [(.validate.rules) = { ... }
        Specified by:
        getAnyMatch in interface MatchPredicateOrBuilder
        Returns:
        The anyMatch.
      • hasHttpRequestHeadersMatch

        public boolean hasHttpRequestHeadersMatch()
         HTTP request headers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_request_headers_match = 5;
        Specified by:
        hasHttpRequestHeadersMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpRequestHeadersMatch field is set.
      • hasHttpRequestTrailersMatch

        public boolean hasHttpRequestTrailersMatch()
         HTTP request trailers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_request_trailers_match = 6;
        Specified by:
        hasHttpRequestTrailersMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpRequestTrailersMatch field is set.
      • getHttpRequestTrailersMatch

        public HttpHeadersMatch getHttpRequestTrailersMatch()
         HTTP request trailers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_request_trailers_match = 6;
        Specified by:
        getHttpRequestTrailersMatch in interface MatchPredicateOrBuilder
        Returns:
        The httpRequestTrailersMatch.
      • hasHttpResponseHeadersMatch

        public boolean hasHttpResponseHeadersMatch()
         HTTP response headers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_response_headers_match = 7;
        Specified by:
        hasHttpResponseHeadersMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpResponseHeadersMatch field is set.
      • getHttpResponseHeadersMatch

        public HttpHeadersMatch getHttpResponseHeadersMatch()
         HTTP response headers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_response_headers_match = 7;
        Specified by:
        getHttpResponseHeadersMatch in interface MatchPredicateOrBuilder
        Returns:
        The httpResponseHeadersMatch.
      • hasHttpResponseTrailersMatch

        public boolean hasHttpResponseTrailersMatch()
         HTTP response trailers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_response_trailers_match = 8;
        Specified by:
        hasHttpResponseTrailersMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpResponseTrailersMatch field is set.
      • getHttpResponseTrailersMatch

        public HttpHeadersMatch getHttpResponseTrailersMatch()
         HTTP response trailers match configuration.
         
        .envoy.config.common.matcher.v3.HttpHeadersMatch http_response_trailers_match = 8;
        Specified by:
        getHttpResponseTrailersMatch in interface MatchPredicateOrBuilder
        Returns:
        The httpResponseTrailersMatch.
      • hasHttpRequestGenericBodyMatch

        public boolean hasHttpRequestGenericBodyMatch()
         HTTP request generic body match configuration.
         
        .envoy.config.common.matcher.v3.HttpGenericBodyMatch http_request_generic_body_match = 9;
        Specified by:
        hasHttpRequestGenericBodyMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpRequestGenericBodyMatch field is set.
      • hasHttpResponseGenericBodyMatch

        public boolean hasHttpResponseGenericBodyMatch()
         HTTP response generic body match configuration.
         
        .envoy.config.common.matcher.v3.HttpGenericBodyMatch http_response_generic_body_match = 10;
        Specified by:
        hasHttpResponseGenericBodyMatch in interface MatchPredicateOrBuilder
        Returns:
        Whether the httpResponseGenericBodyMatch field is set.
      • 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 MatchPredicate parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static MatchPredicate getDefaultInstance()
      • parser

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

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