Class Matcher.OnMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Matcher.OnMatchOrBuilder,Cloneable
- Enclosing class:
- Matcher.OnMatch
public static final class Matcher.OnMatch.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
implements Matcher.OnMatchOrBuilder
What to do if a match is successful.Protobuf type
envoy.config.common.matcher.v3.Matcher.OnMatch-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Protocol-specific action to take.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If true, the action will be taken but the caller will behave as if no match was found.Nested matcher to evaluate.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Protocol-specific action to take.Protocol-specific action to take.Protocol-specific action to take.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, the action will be taken but the caller will behave as if no match was found.Nested matcher to evaluate.Nested matcher to evaluate.Nested matcher to evaluate.booleanProtocol-specific action to take.booleanNested matcher to evaluate.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeAction(TypedExtensionConfig value) Protocol-specific action to take.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Matcher.OnMatch other) mergeMatcher(Matcher value) Nested matcher to evaluate.final Matcher.OnMatch.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAction(TypedExtensionConfig value) Protocol-specific action to take.setAction(TypedExtensionConfig.Builder builderForValue) Protocol-specific action to take.setKeepMatching(boolean value) If true, the action will be taken but the caller will behave as if no match was found.setMatcher(Matcher value) Nested matcher to evaluate.setMatcher(Matcher.Builder builderForValue) Nested matcher to evaluate.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Matcher.OnMatch.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.OnMatch.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.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.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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.OnMatch.Builder>
-
setField
public Matcher.OnMatch.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.OnMatch.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-
setRepeatedField
public Matcher.OnMatch.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.OnMatch.Builder>
-
addRepeatedField
public Matcher.OnMatch.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.OnMatch.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Matcher.OnMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-
mergeFrom
public Matcher.OnMatch.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.OnMatch.Builder>- Throws:
IOException
-
getOnMatchCase
- Specified by:
getOnMatchCasein interfaceMatcher.OnMatchOrBuilder
-
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1;- Specified by:
hasMatcherin interfaceMatcher.OnMatchOrBuilder- Returns:
- Whether the matcher field is set.
-
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1;- Specified by:
getMatcherin interfaceMatcher.OnMatchOrBuilder- Returns:
- The matcher.
-
setMatcher
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1; -
setMatcher
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1; -
mergeMatcher
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1; -
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1; -
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1; -
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.
.envoy.config.common.matcher.v3.Matcher matcher = 1;- Specified by:
getMatcherOrBuilderin interfaceMatcher.OnMatchOrBuilder
-
hasAction
public boolean hasAction()Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2;- Specified by:
hasActionin interfaceMatcher.OnMatchOrBuilder- Returns:
- Whether the action field is set.
-
getAction
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2;- Specified by:
getActionin interfaceMatcher.OnMatchOrBuilder- Returns:
- The action.
-
setAction
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2; -
setAction
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2; -
mergeAction
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2; -
clearAction
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2; -
getActionBuilder
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2; -
getActionOrBuilder
Protocol-specific action to take.
.envoy.config.core.v3.TypedExtensionConfig action = 2;- Specified by:
getActionOrBuilderin interfaceMatcher.OnMatchOrBuilder
-
getKeepMatching
public boolean getKeepMatching()If true, the action will be taken but the caller will behave as if no match was found. This applies both to actions directly encoded in the action field and to actions returned from a nested matcher tree in the matcher field. A subsequent matcher on_no_match action will be used instead. This field is not supported in all contexts in which the matcher API is used. If this field is set in a context in which it's not supported, the resource will be rejected.
bool keep_matching = 3;- Specified by:
getKeepMatchingin interfaceMatcher.OnMatchOrBuilder- Returns:
- The keepMatching.
-
setKeepMatching
If true, the action will be taken but the caller will behave as if no match was found. This applies both to actions directly encoded in the action field and to actions returned from a nested matcher tree in the matcher field. A subsequent matcher on_no_match action will be used instead. This field is not supported in all contexts in which the matcher API is used. If this field is set in a context in which it's not supported, the resource will be rejected.
bool keep_matching = 3;- Parameters:
value- The keepMatching to set.- Returns:
- This builder for chaining.
-
clearKeepMatching
If true, the action will be taken but the caller will behave as if no match was found. This applies both to actions directly encoded in the action field and to actions returned from a nested matcher tree in the matcher field. A subsequent matcher on_no_match action will be used instead. This field is not supported in all contexts in which the matcher API is used. If this field is set in a context in which it's not supported, the resource will be rejected.
bool keep_matching = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Matcher.OnMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-
mergeUnknownFields
public final Matcher.OnMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
-