public final class Matcher extends com.google.protobuf.GeneratedMessageV3 implements MatcherOrBuilder
A matcher, which may traverse a matching tree in order to result in a match action. During matching, the tree will be traversed until a match is found, or if no match is found the action specified by the most specific on_no_match will be evaluated. As an on_no_match might result in another matching tree being evaluated, this process might repeat several times until the final OnMatch (or no match) is decided. This API is a work in progress.Protobuf type
envoy.config.common.matcher.v4alpha.Matcher| Modifier and Type | Class and Description |
|---|---|
static class |
Matcher.Builder
A matcher, which may traverse a matching tree in order to result in a match action.
|
static class |
Matcher.MatcherList
A linear list of field matchers.
|
static interface |
Matcher.MatcherListOrBuilder |
static class |
Matcher.MatcherTree
Protobuf type
envoy.config.common.matcher.v4alpha.Matcher.MatcherTree |
static interface |
Matcher.MatcherTreeOrBuilder |
static class |
Matcher.MatcherTypeCase |
static class |
Matcher.OnMatch
What to do if a match is successful.
|
static interface |
Matcher.OnMatchOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
MATCHER_LIST_FIELD_NUMBER |
static int |
MATCHER_TREE_FIELD_NUMBER |
static int |
ON_NO_MATCH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Matcher |
getDefaultInstance() |
Matcher |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Matcher.MatcherList |
getMatcherList()
A linear list of matchers to evaluate.
|
Matcher.MatcherListOrBuilder |
getMatcherListOrBuilder()
A linear list of matchers to evaluate.
|
Matcher.MatcherTree |
getMatcherTree()
A match tree to evaluate.
|
Matcher.MatcherTreeOrBuilder |
getMatcherTreeOrBuilder()
A match tree to evaluate.
|
Matcher.MatcherTypeCase |
getMatcherTypeCase() |
Matcher.OnMatch |
getOnNoMatch()
Optional OnMatch to use if the matcher failed.
|
Matcher.OnMatchOrBuilder |
getOnNoMatchOrBuilder()
Optional OnMatch to use if the matcher failed.
|
com.google.protobuf.Parser<Matcher> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMatcherList()
A linear list of matchers to evaluate.
|
boolean |
hasMatcherTree()
A match tree to evaluate.
|
boolean |
hasOnNoMatch()
Optional OnMatch to use if the matcher failed.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Matcher.Builder |
newBuilder() |
static Matcher.Builder |
newBuilder(Matcher prototype) |
Matcher.Builder |
newBuilderForType() |
protected Matcher.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Matcher |
parseDelimitedFrom(InputStream input) |
static Matcher |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Matcher |
parseFrom(byte[] data) |
static Matcher |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Matcher |
parseFrom(ByteBuffer data) |
static Matcher |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Matcher |
parseFrom(com.google.protobuf.ByteString data) |
static Matcher |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Matcher |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Matcher |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Matcher |
parseFrom(InputStream input) |
static Matcher |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Matcher> |
parser() |
Matcher.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MATCHER_LIST_FIELD_NUMBER
public static final int MATCHER_TREE_FIELD_NUMBER
public static final int ON_NO_MATCH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Matcher.MatcherTypeCase getMatcherTypeCase()
getMatcherTypeCase in interface MatcherOrBuilderpublic boolean hasMatcherList()
A linear list of matchers to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherList matcher_list = 1;hasMatcherList in interface MatcherOrBuilderpublic Matcher.MatcherList getMatcherList()
A linear list of matchers to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherList matcher_list = 1;getMatcherList in interface MatcherOrBuilderpublic Matcher.MatcherListOrBuilder getMatcherListOrBuilder()
A linear list of matchers to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherList matcher_list = 1;getMatcherListOrBuilder in interface MatcherOrBuilderpublic boolean hasMatcherTree()
A match tree to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherTree matcher_tree = 2;hasMatcherTree in interface MatcherOrBuilderpublic Matcher.MatcherTree getMatcherTree()
A match tree to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherTree matcher_tree = 2;getMatcherTree in interface MatcherOrBuilderpublic Matcher.MatcherTreeOrBuilder getMatcherTreeOrBuilder()
A match tree to evaluate.
.envoy.config.common.matcher.v4alpha.Matcher.MatcherTree matcher_tree = 2;getMatcherTreeOrBuilder in interface MatcherOrBuilderpublic boolean hasOnNoMatch()
Optional OnMatch to use if the matcher failed. If specified, the OnMatch is used, and the matcher is considered to have matched. If not specified, the matcher is considered not to have matched.
.envoy.config.common.matcher.v4alpha.Matcher.OnMatch on_no_match = 3;hasOnNoMatch in interface MatcherOrBuilderpublic Matcher.OnMatch getOnNoMatch()
Optional OnMatch to use if the matcher failed. If specified, the OnMatch is used, and the matcher is considered to have matched. If not specified, the matcher is considered not to have matched.
.envoy.config.common.matcher.v4alpha.Matcher.OnMatch on_no_match = 3;getOnNoMatch in interface MatcherOrBuilderpublic Matcher.OnMatchOrBuilder getOnNoMatchOrBuilder()
Optional OnMatch to use if the matcher failed. If specified, the OnMatch is used, and the matcher is considered to have matched. If not specified, the matcher is considered not to have matched.
.envoy.config.common.matcher.v4alpha.Matcher.OnMatch on_no_match = 3;getOnNoMatchOrBuilder in interface MatcherOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Matcher parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Matcher parseFrom(InputStream input) throws IOException
IOExceptionpublic static Matcher parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Matcher parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Matcher parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Matcher parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Matcher parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Matcher.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Matcher.Builder newBuilder()
public static Matcher.Builder newBuilder(Matcher prototype)
public Matcher.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Matcher.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Matcher getDefaultInstance()
public static com.google.protobuf.Parser<Matcher> parser()
public com.google.protobuf.Parser<Matcher> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Matcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.