Package io.envoyproxy.envoy.type.matcher
Class ValueMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
io.envoyproxy.envoy.type.matcher.ValueMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ValueMatcherOrBuilder,Cloneable
- Enclosing class:
- ValueMatcher
public static final class ValueMatcher.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
implements ValueMatcherOrBuilder
Specifies the way to match a Protobuf::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]Protobuf type
envoy.type.matcher.ValueMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If specified, a match occurs if and only if the target value is a bool value and is equal to this field.If specified, a match occurs if and only if the target value is a double value and is matched to this field.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a NullValue.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata.If specified, a match occurs if and only if the target value is a string value and is matched to this field.clone()booleanIf specified, a match occurs if and only if the target value is a bool value and is equal to this field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf specified, a match occurs if and only if the target value is a double value and is matched to this field.If specified, a match occurs if and only if the target value is a double value and is matched to this field.If specified, a match occurs if and only if the target value is a double value and is matched to this field.If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a NullValue.If specified, a match occurs if and only if the target value is a NullValue.If specified, a match occurs if and only if the target value is a NullValue.booleanIf specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata.If specified, a match occurs if and only if the target value is a string value and is matched to this field.If specified, a match occurs if and only if the target value is a string value and is matched to this field.If specified, a match occurs if and only if the target value is a string value and is matched to this field.booleanIf specified, a match occurs if and only if the target value is a bool value and is equal to this field.booleanIf specified, a match occurs if and only if the target value is a double value and is matched to this field.booleanIf specified, a match occurs if and only if the target value is a list value and is matched to this field.booleanIf specified, a match occurs if and only if the target value is a NullValue.booleanIf specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata.booleanIf specified, a match occurs if and only if the target value is a string value and is matched to this field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDoubleMatch(DoubleMatcher value) If specified, a match occurs if and only if the target value is a double value and is matched to this field.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ValueMatcher other) mergeListMatch(ListMatcher value) If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a NullValue.mergeStringMatch(StringMatcher value) If specified, a match occurs if and only if the target value is a string value and is matched to this field.final ValueMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBoolMatch(boolean value) If specified, a match occurs if and only if the target value is a bool value and is equal to this field.setDoubleMatch(DoubleMatcher value) If specified, a match occurs if and only if the target value is a double value and is matched to this field.setDoubleMatch(DoubleMatcher.Builder builderForValue) If specified, a match occurs if and only if the target value is a double value and is matched to this field.setListMatch(ListMatcher value) If specified, a match occurs if and only if the target value is a list value and is matched to this field.setListMatch(ListMatcher.Builder builderForValue) If specified, a match occurs if and only if the target value is a list value and is matched to this field.If specified, a match occurs if and only if the target value is a NullValue.setNullMatch(ValueMatcher.NullMatch.Builder builderForValue) If specified, a match occurs if and only if the target value is a NullValue.setPresentMatch(boolean value) If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStringMatch(StringMatcher value) If specified, a match occurs if and only if the target value is a string value and is matched to this field.setStringMatch(StringMatcher.Builder builderForValue) If specified, a match occurs if and only if the target value is a string value and is matched to this field.final ValueMatcher.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<ValueMatcher.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<ValueMatcher.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<ValueMatcher.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<ValueMatcher.Builder>
-
setField
public ValueMatcher.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<ValueMatcher.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
setRepeatedField
public ValueMatcher.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<ValueMatcher.Builder>
-
addRepeatedField
public ValueMatcher.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<ValueMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ValueMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
mergeFrom
public ValueMatcher.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<ValueMatcher.Builder>- Throws:
IOException
-
getMatchPatternCase
- Specified by:
getMatchPatternCasein interfaceValueMatcherOrBuilder
-
clearMatchPattern
-
hasNullMatch
public boolean hasNullMatch()If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1;- Specified by:
hasNullMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the nullMatch field is set.
-
getNullMatch
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1;- Specified by:
getNullMatchin interfaceValueMatcherOrBuilder- Returns:
- The nullMatch.
-
setNullMatch
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1; -
setNullMatch
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1; -
mergeNullMatch
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1; -
clearNullMatch
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1; -
getNullMatchBuilder
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1; -
getNullMatchOrBuilder
If specified, a match occurs if and only if the target value is a NullValue.
.envoy.type.matcher.ValueMatcher.NullMatch null_match = 1;- Specified by:
getNullMatchOrBuilderin interfaceValueMatcherOrBuilder
-
hasDoubleMatch
public boolean hasDoubleMatch()If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2;- Specified by:
hasDoubleMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the doubleMatch field is set.
-
getDoubleMatch
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2;- Specified by:
getDoubleMatchin interfaceValueMatcherOrBuilder- Returns:
- The doubleMatch.
-
setDoubleMatch
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2; -
setDoubleMatch
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2; -
mergeDoubleMatch
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2; -
clearDoubleMatch
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2; -
getDoubleMatchBuilder
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2; -
getDoubleMatchOrBuilder
If specified, a match occurs if and only if the target value is a double value and is matched to this field.
.envoy.type.matcher.DoubleMatcher double_match = 2;- Specified by:
getDoubleMatchOrBuilderin interfaceValueMatcherOrBuilder
-
hasStringMatch
public boolean hasStringMatch()If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3;- Specified by:
hasStringMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the stringMatch field is set.
-
getStringMatch
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3;- Specified by:
getStringMatchin interfaceValueMatcherOrBuilder- Returns:
- The stringMatch.
-
setStringMatch
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3; -
setStringMatch
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3; -
mergeStringMatch
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3; -
clearStringMatch
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3; -
getStringMatchBuilder
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3; -
getStringMatchOrBuilder
If specified, a match occurs if and only if the target value is a string value and is matched to this field.
.envoy.type.matcher.StringMatcher string_match = 3;- Specified by:
getStringMatchOrBuilderin interfaceValueMatcherOrBuilder
-
hasBoolMatch
public boolean hasBoolMatch()If specified, a match occurs if and only if the target value is a bool value and is equal to this field.
bool bool_match = 4;- Specified by:
hasBoolMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the boolMatch field is set.
-
getBoolMatch
public boolean getBoolMatch()If specified, a match occurs if and only if the target value is a bool value and is equal to this field.
bool bool_match = 4;- Specified by:
getBoolMatchin interfaceValueMatcherOrBuilder- Returns:
- The boolMatch.
-
setBoolMatch
If specified, a match occurs if and only if the target value is a bool value and is equal to this field.
bool bool_match = 4;- Parameters:
value- The boolMatch to set.- Returns:
- This builder for chaining.
-
clearBoolMatch
If specified, a match occurs if and only if the target value is a bool value and is equal to this field.
bool bool_match = 4;- Returns:
- This builder for chaining.
-
hasPresentMatch
public boolean hasPresentMatch()If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.
bool present_match = 5;- Specified by:
hasPresentMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public boolean getPresentMatch()If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.
bool present_match = 5;- Specified by:
getPresentMatchin interfaceValueMatcherOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.
bool present_match = 5;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
clearPresentMatch
If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the result is always not matched.
bool present_match = 5;- Returns:
- This builder for chaining.
-
hasListMatch
public boolean hasListMatch()If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6;- Specified by:
hasListMatchin interfaceValueMatcherOrBuilder- Returns:
- Whether the listMatch field is set.
-
getListMatch
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6;- Specified by:
getListMatchin interfaceValueMatcherOrBuilder- Returns:
- The listMatch.
-
setListMatch
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6; -
setListMatch
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6; -
mergeListMatch
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6; -
clearListMatch
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6; -
getListMatchBuilder
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6; -
getListMatchOrBuilder
If specified, a match occurs if and only if the target value is a list value and is matched to this field.
.envoy.type.matcher.ListMatcher list_match = 6;- Specified by:
getListMatchOrBuilderin interfaceValueMatcherOrBuilder
-
setUnknownFields
public final ValueMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-
mergeUnknownFields
public final ValueMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ValueMatcher.Builder>
-