Package com.github.xds.type.matcher.v3
Class Matcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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 typexds.type.matcher.v3.Matcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Matcherbuild()MatcherbuildPartial()Matcher.Builderclear()Matcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Matcher.BuilderclearMatcherList()A linear list of matchers to evaluate.Matcher.BuilderclearMatcherTree()A match tree to evaluate.Matcher.BuilderclearMatcherType()Matcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Matcher.BuilderclearOnNoMatch()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).Matcher.Builderclone()MatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Matcher.MatcherListgetMatcherList()A linear list of matchers to evaluate.Matcher.MatcherList.BuildergetMatcherListBuilder()A linear list of matchers to evaluate.Matcher.MatcherListOrBuildergetMatcherListOrBuilder()A linear list of matchers to evaluate.Matcher.MatcherTreegetMatcherTree()A match tree to evaluate.Matcher.MatcherTree.BuildergetMatcherTreeBuilder()A match tree to evaluate.Matcher.MatcherTreeOrBuildergetMatcherTreeOrBuilder()A match tree to evaluate.Matcher.MatcherTypeCasegetMatcherTypeCase()Matcher.OnMatchgetOnNoMatch()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).Matcher.OnMatch.BuildergetOnNoMatchBuilder()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).Matcher.OnMatchOrBuildergetOnNoMatchOrBuilder()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).booleanhasMatcherList()A linear list of matchers to evaluate.booleanhasMatcherTree()A match tree to evaluate.booleanhasOnNoMatch()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.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Matcher.BuildermergeFrom(Matcher other)Matcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Matcher.BuildermergeFrom(com.google.protobuf.Message other)Matcher.BuildermergeMatcherList(Matcher.MatcherList value)A linear list of matchers to evaluate.Matcher.BuildermergeMatcherTree(Matcher.MatcherTree value)A match tree to evaluate.Matcher.BuildermergeOnNoMatch(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).Matcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Matcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Matcher.BuildersetMatcherList(Matcher.MatcherList value)A linear list of matchers to evaluate.Matcher.BuildersetMatcherList(Matcher.MatcherList.Builder builderForValue)A linear list of matchers to evaluate.Matcher.BuildersetMatcherTree(Matcher.MatcherTree value)A match tree to evaluate.Matcher.BuildersetMatcherTree(Matcher.MatcherTree.Builder builderForValue)A match tree to evaluate.Matcher.BuildersetOnNoMatch(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).Matcher.BuildersetOnNoMatch(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).Matcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Matcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
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.Builder<Matcher.Builder>
-
clear
public Matcher.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
getDefaultInstanceForType
public Matcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Matcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Matcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Matcher.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
setField
public Matcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
clearField
public Matcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
clearOneof
public Matcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
setRepeatedField
public Matcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
addRepeatedField
public Matcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
mergeFrom
public Matcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Matcher.Builder>
-
mergeFrom
public Matcher.Builder mergeFrom(Matcher other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
mergeFrom
public Matcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Matcher.Builder>- Throws:
IOException
-
getMatcherTypeCase
public Matcher.MatcherTypeCase getMatcherTypeCase()
- Specified by:
getMatcherTypeCasein interfaceMatcherOrBuilder
-
clearMatcherType
public Matcher.Builder clearMatcherType()
-
hasMatcherList
public boolean hasMatcherList()
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;- Specified by:
hasMatcherListin interfaceMatcherOrBuilder- Returns:
- Whether the matcherList field is set.
-
getMatcherList
public Matcher.MatcherList getMatcherList()
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;- Specified by:
getMatcherListin interfaceMatcherOrBuilder- Returns:
- The matcherList.
-
setMatcherList
public Matcher.Builder setMatcherList(Matcher.MatcherList value)
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
setMatcherList
public Matcher.Builder setMatcherList(Matcher.MatcherList.Builder builderForValue)
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
mergeMatcherList
public Matcher.Builder mergeMatcherList(Matcher.MatcherList value)
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
clearMatcherList
public Matcher.Builder clearMatcherList()
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
getMatcherListBuilder
public Matcher.MatcherList.Builder getMatcherListBuilder()
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;
-
getMatcherListOrBuilder
public Matcher.MatcherListOrBuilder getMatcherListOrBuilder()
A linear list of matchers to evaluate.
.xds.type.matcher.v3.Matcher.MatcherList matcher_list = 1;- Specified by:
getMatcherListOrBuilderin interfaceMatcherOrBuilder
-
hasMatcherTree
public boolean hasMatcherTree()
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;- Specified by:
hasMatcherTreein interfaceMatcherOrBuilder- Returns:
- Whether the matcherTree field is set.
-
getMatcherTree
public Matcher.MatcherTree getMatcherTree()
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;- Specified by:
getMatcherTreein interfaceMatcherOrBuilder- Returns:
- The matcherTree.
-
setMatcherTree
public Matcher.Builder setMatcherTree(Matcher.MatcherTree value)
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
setMatcherTree
public Matcher.Builder setMatcherTree(Matcher.MatcherTree.Builder builderForValue)
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
mergeMatcherTree
public Matcher.Builder mergeMatcherTree(Matcher.MatcherTree value)
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
clearMatcherTree
public Matcher.Builder clearMatcherTree()
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
getMatcherTreeBuilder
public Matcher.MatcherTree.Builder getMatcherTreeBuilder()
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;
-
getMatcherTreeOrBuilder
public Matcher.MatcherTreeOrBuilder getMatcherTreeOrBuilder()
A match tree to evaluate.
.xds.type.matcher.v3.Matcher.MatcherTree matcher_tree = 2;- Specified by:
getMatcherTreeOrBuilderin interfaceMatcherOrBuilder
-
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:
hasOnNoMatchin interfaceMatcherOrBuilder- Returns:
- Whether the onNoMatch field is set.
-
getOnNoMatch
public Matcher.OnMatch 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:
getOnNoMatchin interfaceMatcherOrBuilder- Returns:
- The onNoMatch.
-
setOnNoMatch
public Matcher.Builder 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). 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
public Matcher.Builder 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). 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
public Matcher.Builder 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). 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
public Matcher.Builder 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
public Matcher.OnMatch.Builder 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
public Matcher.OnMatchOrBuilder 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:
getOnNoMatchOrBuilderin interfaceMatcherOrBuilder
-
setUnknownFields
public final Matcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
mergeUnknownFields
public final Matcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.Builder>
-
-