Package com.github.xds.type.matcher.v3
Class Matcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Matcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
com.github.xds.type.matcher.v3.Matcher.Builder
- All Implemented Interfaces:
MatcherOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
Matcher
public static final class Matcher.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
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.Protobuf type
xds.type.matcher.v3.Matcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.SingleFieldBuilder
<Matcher.MatcherList, Matcher.MatcherList.Builder, Matcher.MatcherListOrBuilder> private com.google.protobuf.SingleFieldBuilder
<Matcher.MatcherTree, Matcher.MatcherTree.Builder, Matcher.MatcherTreeOrBuilder> private Object
private int
private Matcher.OnMatch
private com.google.protobuf.SingleFieldBuilder
<Matcher.OnMatch, Matcher.OnMatch.Builder, Matcher.OnMatchOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(Matcher result) private void
buildPartialOneofs
(Matcher result) clear()
A linear list of matchers to evaluate.A match tree to evaluate.Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
A linear list of matchers to evaluate.A linear list of matchers to evaluate.A linear list of matchers to evaluate.A match tree to evaluate.A match tree to evaluate.A match tree to evaluate.Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).boolean
A linear list of matchers to evaluate.boolean
A match tree to evaluate.boolean
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<Matcher.MatcherList, Matcher.MatcherList.Builder, Matcher.MatcherListOrBuilder> A linear list of matchers to evaluate.private com.google.protobuf.SingleFieldBuilder
<Matcher.MatcherTree, Matcher.MatcherTree.Builder, Matcher.MatcherTreeOrBuilder> A match tree to evaluate.private com.google.protobuf.SingleFieldBuilder
<Matcher.OnMatch, Matcher.OnMatch.Builder, Matcher.OnMatchOrBuilder> Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) A linear list of matchers to evaluate.A match tree to evaluate.mergeOnNoMatch
(Matcher.OnMatch value) Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).A linear list of matchers to evaluate.setMatcherList
(Matcher.MatcherList.Builder builderForValue) A linear list of matchers to evaluate.A match tree to evaluate.setMatcherTree
(Matcher.MatcherTree.Builder builderForValue) A match tree to evaluate.setOnNoMatch
(Matcher.OnMatch value) Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).setOnNoMatch
(Matcher.OnMatch.Builder builderForValue) Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
matcherTypeCase_
private int matcherTypeCase_ -
matcherType_
-
bitField0_
private int bitField0_ -
matcherListBuilder_
private com.google.protobuf.SingleFieldBuilder<Matcher.MatcherList,Matcher.MatcherList.Builder, matcherListBuilder_Matcher.MatcherListOrBuilder> -
matcherTreeBuilder_
private com.google.protobuf.SingleFieldBuilder<Matcher.MatcherTree,Matcher.MatcherTree.Builder, matcherTreeBuilder_Matcher.MatcherTreeOrBuilder> -
onNoMatch_
-
onNoMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<Matcher.OnMatch,Matcher.OnMatch.Builder, onNoMatchBuilder_Matcher.OnMatchOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Matcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Matcher.Builder>
-
mergeFrom
public Matcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Matcher.Builder>
- Throws:
IOException
-
getMatcherTypeCase
- Specified by:
getMatcherTypeCase
in interfaceMatcherOrBuilder
-
clearMatcherType
-
hasMatcherList
public boolean hasMatcherList()A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
- Specified by:
hasMatcherList
in interfaceMatcherOrBuilder
- Returns:
- Whether the matcherList field is set.
-
getMatcherList
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
- Specified by:
getMatcherList
in interfaceMatcherOrBuilder
- Returns:
- The matcherList.
-
setMatcherList
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
setMatcherList
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
mergeMatcherList
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
clearMatcherList
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
getMatcherListBuilder
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
getMatcherListOrBuilder
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
- Specified by:
getMatcherListOrBuilder
in interfaceMatcherOrBuilder
-
internalGetMatcherListFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Matcher.MatcherList,Matcher.MatcherList.Builder, internalGetMatcherListFieldBuilder()Matcher.MatcherListOrBuilder> A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
hasMatcherTree
public boolean hasMatcherTree()A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
- Specified by:
hasMatcherTree
in interfaceMatcherOrBuilder
- Returns:
- Whether the matcherTree field is set.
-
getMatcherTree
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
- Specified by:
getMatcherTree
in interfaceMatcherOrBuilder
- Returns:
- The matcherTree.
-
setMatcherTree
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
setMatcherTree
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
mergeMatcherTree
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
clearMatcherTree
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
getMatcherTreeBuilder
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
getMatcherTreeOrBuilder
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
- Specified by:
getMatcherTreeOrBuilder
in interfaceMatcherOrBuilder
-
internalGetMatcherTreeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Matcher.MatcherTree,Matcher.MatcherTree.Builder, internalGetMatcherTreeFieldBuilder()Matcher.MatcherTreeOrBuilder> A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
hasOnNoMatch
public boolean hasOnNoMatch()Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
- Specified by:
hasOnNoMatch
in interfaceMatcherOrBuilder
- Returns:
- Whether the onNoMatch field is set.
-
getOnNoMatch
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
- Specified by:
getOnNoMatch
in interfaceMatcherOrBuilder
- Returns:
- The onNoMatch.
-
setOnNoMatch
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-
setOnNoMatch
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-
mergeOnNoMatch
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-
clearOnNoMatch
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-
getOnNoMatchBuilder
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-
getOnNoMatchOrBuilder
Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
- Specified by:
getOnNoMatchOrBuilder
in interfaceMatcherOrBuilder
-
internalGetOnNoMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Matcher.OnMatch,Matcher.OnMatch.Builder, internalGetOnNoMatchFieldBuilder()Matcher.OnMatchOrBuilder> Optional OnMatch to use if no matcher above matched (e.g., if there are no matchers specified above, or if none of the matches specified above succeeded). If no matcher above matched and this field is not populated, the match will be considered unsuccessful.
.xds.type.matcher.v3.Matcher.OnMatch on_no_match = 3;
-