Package com.github.xds.type.matcher.v3
Class Matcher.OnMatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Matcher.OnMatch.Builder>
-
- com.github.xds.type.matcher.v3.Matcher.OnMatch.Builder
-
- All Implemented Interfaces:
Matcher.OnMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Matcher.OnMatch
public static final class Matcher.OnMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<Matcher.OnMatch.Builder> implements Matcher.OnMatchOrBuilder
What to do if a match is successful.
Protobuf typexds.type.matcher.v3.Matcher.OnMatch
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>actionBuilder_private intbitField0_private com.google.protobuf.SingleFieldBuilder<Matcher,Matcher.Builder,MatcherOrBuilder>matcherBuilder_private java.lang.ObjectonMatch_private intonMatchCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcher.OnMatchbuild()Matcher.OnMatchbuildPartial()private voidbuildPartial0(Matcher.OnMatch result)private voidbuildPartialOneofs(Matcher.OnMatch result)Matcher.OnMatch.Builderclear()Matcher.OnMatch.BuilderclearAction()Protocol-specific action to take.Matcher.OnMatch.BuilderclearMatcher()Nested matcher to evaluate.Matcher.OnMatch.BuilderclearOnMatch()TypedExtensionConfiggetAction()Protocol-specific action to take.TypedExtensionConfig.BuildergetActionBuilder()Protocol-specific action to take.private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>getActionFieldBuilder()Protocol-specific action to take.TypedExtensionConfigOrBuildergetActionOrBuilder()Protocol-specific action to take.Matcher.OnMatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MatchergetMatcher()Nested matcher to evaluate.Matcher.BuildergetMatcherBuilder()Nested matcher to evaluate.private com.google.protobuf.SingleFieldBuilder<Matcher,Matcher.Builder,MatcherOrBuilder>getMatcherFieldBuilder()Nested matcher to evaluate.MatcherOrBuildergetMatcherOrBuilder()Nested matcher to evaluate.Matcher.OnMatch.OnMatchCasegetOnMatchCase()booleanhasAction()Protocol-specific action to take.booleanhasMatcher()Nested matcher to evaluate.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Matcher.OnMatch.BuildermergeAction(TypedExtensionConfig value)Protocol-specific action to take.Matcher.OnMatch.BuildermergeFrom(Matcher.OnMatch other)Matcher.OnMatch.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Matcher.OnMatch.BuildermergeFrom(com.google.protobuf.Message other)Matcher.OnMatch.BuildermergeMatcher(Matcher value)Nested matcher to evaluate.Matcher.OnMatch.BuildersetAction(TypedExtensionConfig value)Protocol-specific action to take.Matcher.OnMatch.BuildersetAction(TypedExtensionConfig.Builder builderForValue)Protocol-specific action to take.Matcher.OnMatch.BuildersetMatcher(Matcher value)Nested matcher to evaluate.Matcher.OnMatch.BuildersetMatcher(Matcher.Builder builderForValue)Nested matcher to evaluate.-
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
-
-
-
-
Field Detail
-
onMatchCase_
private int onMatchCase_
-
onMatch_
private java.lang.Object onMatch_
-
bitField0_
private int bitField0_
-
matcherBuilder_
private com.google.protobuf.SingleFieldBuilder<Matcher,Matcher.Builder,MatcherOrBuilder> matcherBuilder_
-
actionBuilder_
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> actionBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Matcher.OnMatch.Builder>
-
clear
public Matcher.OnMatch.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Matcher.OnMatch.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.GeneratedMessage.Builder<Matcher.OnMatch.Builder>
-
getDefaultInstanceForType
public Matcher.OnMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Matcher.OnMatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Matcher.OnMatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Matcher.OnMatch result)
-
buildPartialOneofs
private void buildPartialOneofs(Matcher.OnMatch result)
-
mergeFrom
public Matcher.OnMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Matcher.OnMatch.Builder>
-
mergeFrom
public Matcher.OnMatch.Builder mergeFrom(Matcher.OnMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Matcher.OnMatch.Builder>
-
mergeFrom
public Matcher.OnMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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.OnMatch.Builder>- Throws:
java.io.IOException
-
getOnMatchCase
public Matcher.OnMatch.OnMatchCase getOnMatchCase()
- Specified by:
getOnMatchCasein interfaceMatcher.OnMatchOrBuilder
-
clearOnMatch
public Matcher.OnMatch.Builder clearOnMatch()
-
hasMatcher
public boolean hasMatcher()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;- Specified by:
hasMatcherin interfaceMatcher.OnMatchOrBuilder- Returns:
- Whether the matcher field is set.
-
getMatcher
public Matcher getMatcher()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;- Specified by:
getMatcherin interfaceMatcher.OnMatchOrBuilder- Returns:
- The matcher.
-
setMatcher
public Matcher.OnMatch.Builder setMatcher(Matcher value)
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
setMatcher
public Matcher.OnMatch.Builder setMatcher(Matcher.Builder builderForValue)
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
mergeMatcher
public Matcher.OnMatch.Builder mergeMatcher(Matcher value)
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
clearMatcher
public Matcher.OnMatch.Builder clearMatcher()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
getMatcherBuilder
public Matcher.Builder getMatcherBuilder()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
getMatcherOrBuilder
public MatcherOrBuilder getMatcherOrBuilder()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;- Specified by:
getMatcherOrBuilderin interfaceMatcher.OnMatchOrBuilder
-
getMatcherFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Matcher,Matcher.Builder,MatcherOrBuilder> getMatcherFieldBuilder()
Nested matcher to evaluate. If the nested matcher does not match and does not specify on_no_match, then this matcher is considered not to have matched, even if a predicate at this level or above returned true.
.xds.type.matcher.v3.Matcher matcher = 1;
-
hasAction
public boolean hasAction()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;- Specified by:
hasActionin interfaceMatcher.OnMatchOrBuilder- Returns:
- Whether the action field is set.
-
getAction
public TypedExtensionConfig getAction()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;- Specified by:
getActionin interfaceMatcher.OnMatchOrBuilder- Returns:
- The action.
-
setAction
public Matcher.OnMatch.Builder setAction(TypedExtensionConfig value)
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
setAction
public Matcher.OnMatch.Builder setAction(TypedExtensionConfig.Builder builderForValue)
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
mergeAction
public Matcher.OnMatch.Builder mergeAction(TypedExtensionConfig value)
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
clearAction
public Matcher.OnMatch.Builder clearAction()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
getActionBuilder
public TypedExtensionConfig.Builder getActionBuilder()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
getActionOrBuilder
public TypedExtensionConfigOrBuilder getActionOrBuilder()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;- Specified by:
getActionOrBuilderin interfaceMatcher.OnMatchOrBuilder
-
getActionFieldBuilder
private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> getActionFieldBuilder()
Protocol-specific action to take.
.xds.core.v3.TypedExtensionConfig action = 2;
-
-