Class MatchPredicate
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.config.common.matcher.v3.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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMatch configuration.static final classA set of match configurations used for logical operations.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanA set that describes a logical AND.A set that describes a logical AND.booleanThe match configuration will always match.static MatchPredicatestatic final com.google.protobuf.Descriptors.DescriptorHTTP request generic body match configuration.HTTP request generic body match configuration.HTTP request headers match configuration.HTTP request headers match configuration.HTTP request trailers match configuration.HTTP request trailers match configuration.HTTP response generic body match configuration.HTTP response generic body match configuration.HTTP response headers match configuration.HTTP response headers match configuration.HTTP response trailers match configuration.HTTP response trailers match configuration.A negation match.A negation match.A set that describes a logical OR.A set that describes a logical OR.com.google.protobuf.Parser<MatchPredicate>intbooleanA set that describes a logical AND.booleanThe match configuration will always match.inthashCode()booleanHTTP request generic body match configuration.booleanHTTP request headers match configuration.booleanHTTP request trailers match configuration.booleanHTTP response generic body match configuration.booleanHTTP response headers match configuration.booleanHTTP response trailers match configuration.booleanA negation match.booleanA set that describes a logical OR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic MatchPredicate.Builderstatic MatchPredicate.BuildernewBuilder(MatchPredicate prototype) protected MatchPredicate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MatchPredicateparseDelimitedFrom(InputStream input) static MatchPredicateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchPredicateparseFrom(byte[] data) static MatchPredicateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchPredicateparseFrom(com.google.protobuf.ByteString data) static MatchPredicateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchPredicateparseFrom(com.google.protobuf.CodedInputStream input) static MatchPredicateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchPredicateparseFrom(InputStream input) static MatchPredicateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchPredicateparseFrom(ByteBuffer data) static MatchPredicateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MatchPredicate>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
-
HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER
public static final int HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER- See Also:
-
HTTP_RESPONSE_GENERIC_BODY_MATCH_FIELD_NUMBER
public static final int HTTP_RESPONSE_GENERIC_BODY_MATCH_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRuleCase
- Specified by:
getRuleCasein interfaceMatchPredicateOrBuilder
-
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:
hasOrMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the orMatch field is set.
-
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:
getOrMatchin interfaceMatchPredicateOrBuilder- Returns:
- The orMatch.
-
getOrMatchOrBuilder
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:
getOrMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
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:
hasAndMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the andMatch field is set.
-
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:
getAndMatchin interfaceMatchPredicateOrBuilder- Returns:
- The andMatch.
-
getAndMatchOrBuilder
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:
getAndMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
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:
hasNotMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the notMatch field is set.
-
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:
getNotMatchin interfaceMatchPredicateOrBuilder- Returns:
- The notMatch.
-
getNotMatchOrBuilder
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:
getNotMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasAnyMatch
public boolean hasAnyMatch()The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }- Specified by:
hasAnyMatchin interfaceMatchPredicateOrBuilder- 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:
getAnyMatchin interfaceMatchPredicateOrBuilder- 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:
hasHttpRequestHeadersMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpRequestHeadersMatch field is set.
-
getHttpRequestHeadersMatch
HTTP request headers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_request_headers_match = 5;- Specified by:
getHttpRequestHeadersMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpRequestHeadersMatch.
-
getHttpRequestHeadersMatchOrBuilder
HTTP request headers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_request_headers_match = 5;- Specified by:
getHttpRequestHeadersMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasHttpRequestTrailersMatch
public boolean hasHttpRequestTrailersMatch()HTTP request trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_request_trailers_match = 6;- Specified by:
hasHttpRequestTrailersMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpRequestTrailersMatch field is set.
-
getHttpRequestTrailersMatch
HTTP request trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_request_trailers_match = 6;- Specified by:
getHttpRequestTrailersMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpRequestTrailersMatch.
-
getHttpRequestTrailersMatchOrBuilder
HTTP request trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_request_trailers_match = 6;- Specified by:
getHttpRequestTrailersMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasHttpResponseHeadersMatch
public boolean hasHttpResponseHeadersMatch()HTTP response headers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_headers_match = 7;- Specified by:
hasHttpResponseHeadersMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpResponseHeadersMatch field is set.
-
getHttpResponseHeadersMatch
HTTP response headers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_headers_match = 7;- Specified by:
getHttpResponseHeadersMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpResponseHeadersMatch.
-
getHttpResponseHeadersMatchOrBuilder
HTTP response headers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_headers_match = 7;- Specified by:
getHttpResponseHeadersMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasHttpResponseTrailersMatch
public boolean hasHttpResponseTrailersMatch()HTTP response trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_trailers_match = 8;- Specified by:
hasHttpResponseTrailersMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpResponseTrailersMatch field is set.
-
getHttpResponseTrailersMatch
HTTP response trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_trailers_match = 8;- Specified by:
getHttpResponseTrailersMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpResponseTrailersMatch.
-
getHttpResponseTrailersMatchOrBuilder
HTTP response trailers match configuration.
.envoy.config.common.matcher.v3.HttpHeadersMatch http_response_trailers_match = 8;- Specified by:
getHttpResponseTrailersMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasHttpRequestGenericBodyMatch
public boolean hasHttpRequestGenericBodyMatch()HTTP request generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_request_generic_body_match = 9;- Specified by:
hasHttpRequestGenericBodyMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpRequestGenericBodyMatch field is set.
-
getHttpRequestGenericBodyMatch
HTTP request generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_request_generic_body_match = 9;- Specified by:
getHttpRequestGenericBodyMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpRequestGenericBodyMatch.
-
getHttpRequestGenericBodyMatchOrBuilder
HTTP request generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_request_generic_body_match = 9;- Specified by:
getHttpRequestGenericBodyMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
hasHttpResponseGenericBodyMatch
public boolean hasHttpResponseGenericBodyMatch()HTTP response generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_response_generic_body_match = 10;- Specified by:
hasHttpResponseGenericBodyMatchin interfaceMatchPredicateOrBuilder- Returns:
- Whether the httpResponseGenericBodyMatch field is set.
-
getHttpResponseGenericBodyMatch
HTTP response generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_response_generic_body_match = 10;- Specified by:
getHttpResponseGenericBodyMatchin interfaceMatchPredicateOrBuilder- Returns:
- The httpResponseGenericBodyMatch.
-
getHttpResponseGenericBodyMatchOrBuilder
HTTP response generic body match configuration.
.envoy.config.common.matcher.v3.HttpGenericBodyMatch http_response_generic_body_match = 10;- Specified by:
getHttpResponseGenericBodyMatchOrBuilderin interfaceMatchPredicateOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static MatchPredicate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MatchPredicate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-