Class MatchPredicate

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.service.tap.v2alpha.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
 Tap match configuration. This is a recursive structure which allows complex nested match
 configurations to be built using various logical operators.
 [#next-free-field: 9]
 
Protobuf type envoy.service.tap.v2alpha.MatchPredicate
See Also:
  • Field Details

    • OR_MATCH_FIELD_NUMBER

      public static final int OR_MATCH_FIELD_NUMBER
      See Also:
    • AND_MATCH_FIELD_NUMBER

      public static final int AND_MATCH_FIELD_NUMBER
      See Also:
    • NOT_MATCH_FIELD_NUMBER

      public static final int NOT_MATCH_FIELD_NUMBER
      See Also:
    • ANY_MATCH_FIELD_NUMBER

      public static final int ANY_MATCH_FIELD_NUMBER
      See Also:
    • HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER

      public static final int HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER
      See Also:
    • HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER

      public static final int HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER
      See Also:
    • HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER

      public static final int HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER
      See Also:
    • HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER

      public static final int HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance 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
    • getRuleCase

      public MatchPredicate.RuleCase getRuleCase()
      Specified by:
      getRuleCase in interface MatchPredicateOrBuilder
    • hasOrMatch

      public boolean hasOrMatch()
       A set that describes a logical OR. If any member of the set matches, the match configuration
       matches.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
      Specified by:
      getOrMatch in interface MatchPredicateOrBuilder
      Returns:
      The orMatch.
    • getOrMatchOrBuilder

      public MatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder()
       A set that describes a logical OR. If any member of the set matches, the match configuration
       matches.
       
      .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
      Specified by:
      getOrMatchOrBuilder in interface MatchPredicateOrBuilder
    • hasAndMatch

      public boolean hasAndMatch()
       A set that describes a logical AND. If all members of the set match, the match configuration
       matches.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.MatchPredicate.MatchSet and_match = 2;
      Specified by:
      getAndMatch in interface MatchPredicateOrBuilder
      Returns:
      The andMatch.
    • getAndMatchOrBuilder

      public MatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder()
       A set that describes a logical AND. If all members of the set match, the match configuration
       matches.
       
      .envoy.service.tap.v2alpha.MatchPredicate.MatchSet and_match = 2;
      Specified by:
      getAndMatchOrBuilder in interface MatchPredicateOrBuilder
    • hasNotMatch

      public boolean hasNotMatch()
       A negation match. The match configuration will match if the negated match condition matches.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.MatchPredicate not_match = 3;
      Specified by:
      getNotMatch in interface MatchPredicateOrBuilder
      Returns:
      The notMatch.
    • getNotMatchOrBuilder

      public MatchPredicateOrBuilder getNotMatchOrBuilder()
       A negation match. The match configuration will match if the negated match condition matches.
       
      .envoy.service.tap.v2alpha.MatchPredicate not_match = 3;
      Specified by:
      getNotMatchOrBuilder in interface MatchPredicateOrBuilder
    • 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.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
      Specified by:
      hasHttpRequestHeadersMatch in interface MatchPredicateOrBuilder
      Returns:
      Whether the httpRequestHeadersMatch field is set.
    • getHttpRequestHeadersMatch

      public HttpHeadersMatch getHttpRequestHeadersMatch()
       HTTP request headers match configuration.
       
      .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
      Specified by:
      getHttpRequestHeadersMatch in interface MatchPredicateOrBuilder
      Returns:
      The httpRequestHeadersMatch.
    • getHttpRequestHeadersMatchOrBuilder

      public HttpHeadersMatchOrBuilder getHttpRequestHeadersMatchOrBuilder()
       HTTP request headers match configuration.
       
      .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
      Specified by:
      getHttpRequestHeadersMatchOrBuilder in interface MatchPredicateOrBuilder
    • hasHttpRequestTrailersMatch

      public boolean hasHttpRequestTrailersMatch()
       HTTP request trailers match configuration.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6;
      Specified by:
      getHttpRequestTrailersMatch in interface MatchPredicateOrBuilder
      Returns:
      The httpRequestTrailersMatch.
    • getHttpRequestTrailersMatchOrBuilder

      public HttpHeadersMatchOrBuilder getHttpRequestTrailersMatchOrBuilder()
       HTTP request trailers match configuration.
       
      .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6;
      Specified by:
      getHttpRequestTrailersMatchOrBuilder in interface MatchPredicateOrBuilder
    • hasHttpResponseHeadersMatch

      public boolean hasHttpResponseHeadersMatch()
       HTTP response headers match configuration.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7;
      Specified by:
      getHttpResponseHeadersMatch in interface MatchPredicateOrBuilder
      Returns:
      The httpResponseHeadersMatch.
    • getHttpResponseHeadersMatchOrBuilder

      public HttpHeadersMatchOrBuilder getHttpResponseHeadersMatchOrBuilder()
       HTTP response headers match configuration.
       
      .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7;
      Specified by:
      getHttpResponseHeadersMatchOrBuilder in interface MatchPredicateOrBuilder
    • hasHttpResponseTrailersMatch

      public boolean hasHttpResponseTrailersMatch()
       HTTP response trailers match configuration.
       
      .envoy.service.tap.v2alpha.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.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8;
      Specified by:
      getHttpResponseTrailersMatch in interface MatchPredicateOrBuilder
      Returns:
      The httpResponseTrailersMatch.
    • getHttpResponseTrailersMatchOrBuilder

      public HttpHeadersMatchOrBuilder getHttpResponseTrailersMatchOrBuilder()
       HTTP response trailers match configuration.
       
      .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8;
      Specified by:
      getHttpResponseTrailersMatchOrBuilder in interface MatchPredicateOrBuilder
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MatchPredicate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MatchPredicate parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MatchPredicate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MatchPredicate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static MatchPredicate.Builder newBuilder()
    • newBuilder

      public static MatchPredicate.Builder newBuilder(MatchPredicate prototype)
    • 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