Class ValueMatcher.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValueMatcherOrBuilder, java.lang.Cloneable
    Enclosing class:
    ValueMatcher

    public static final class ValueMatcher.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ValueMatcher.Builder>
    implements ValueMatcherOrBuilder
     Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported.
     StructValue is not supported and is always not matched.
     [#next-free-field: 8]
     
    Protobuf type envoy.type.matcher.v3.ValueMatcher
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ValueMatcher.Builder>
      • clear

        public ValueMatcher.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<ValueMatcher.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ValueMatcher.Builder>
      • getDefaultInstanceForType

        public ValueMatcher getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ValueMatcher build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ValueMatcher buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartial0

        private void buildPartial0​(ValueMatcher result)
      • buildPartialOneofs

        private void buildPartialOneofs​(ValueMatcher result)
      • mergeFrom

        public ValueMatcher.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueMatcher.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ValueMatcher.Builder>
      • mergeFrom

        public ValueMatcher.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValueMatcher.Builder>
        Throws:
        java.io.IOException
      • hasNullMatch

        public boolean hasNullMatch()
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
        Specified by:
        hasNullMatch in interface ValueMatcherOrBuilder
        Returns:
        Whether the nullMatch field is set.
      • getNullMatch

        public ValueMatcher.NullMatch getNullMatch()
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
        Specified by:
        getNullMatch in interface ValueMatcherOrBuilder
        Returns:
        The nullMatch.
      • setNullMatch

        public ValueMatcher.Builder setNullMatch​(ValueMatcher.NullMatch value)
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
      • mergeNullMatch

        public ValueMatcher.Builder mergeNullMatch​(ValueMatcher.NullMatch value)
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
      • clearNullMatch

        public ValueMatcher.Builder clearNullMatch()
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
      • getNullMatchBuilder

        public ValueMatcher.NullMatch.Builder getNullMatchBuilder()
         If specified, a match occurs if and only if the target value is a NullValue.
         
        .envoy.type.matcher.v3.ValueMatcher.NullMatch null_match = 1;
      • 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.v3.DoubleMatcher double_match = 2;
        Specified by:
        hasDoubleMatch in interface ValueMatcherOrBuilder
        Returns:
        Whether the doubleMatch field is set.
      • getDoubleMatch

        public DoubleMatcher 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.v3.DoubleMatcher double_match = 2;
        Specified by:
        getDoubleMatch in interface ValueMatcherOrBuilder
        Returns:
        The doubleMatch.
      • setDoubleMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.DoubleMatcher double_match = 2;
      • setDoubleMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.DoubleMatcher double_match = 2;
      • mergeDoubleMatch

        public ValueMatcher.Builder mergeDoubleMatch​(DoubleMatcher value)
         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.v3.DoubleMatcher double_match = 2;
      • clearDoubleMatch

        public ValueMatcher.Builder 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.v3.DoubleMatcher double_match = 2;
      • getDoubleMatchBuilder

        public DoubleMatcher.Builder 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.v3.DoubleMatcher double_match = 2;
      • getDoubleMatchFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<DoubleMatcher,​DoubleMatcher.Builder,​DoubleMatcherOrBuilder> getDoubleMatchFieldBuilder()
         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.v3.DoubleMatcher double_match = 2;
      • 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.v3.StringMatcher string_match = 3;
        Specified by:
        hasStringMatch in interface ValueMatcherOrBuilder
        Returns:
        Whether the stringMatch field is set.
      • getStringMatch

        public StringMatcher 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.v3.StringMatcher string_match = 3;
        Specified by:
        getStringMatch in interface ValueMatcherOrBuilder
        Returns:
        The stringMatch.
      • setStringMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 3;
      • setStringMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 3;
      • mergeStringMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.StringMatcher string_match = 3;
      • clearStringMatch

        public ValueMatcher.Builder 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.v3.StringMatcher string_match = 3;
      • getStringMatchBuilder

        public StringMatcher.Builder 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.v3.StringMatcher string_match = 3;
      • getStringMatchFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<StringMatcher,​StringMatcher.Builder,​StringMatcherOrBuilder> getStringMatchFieldBuilder()
         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.v3.StringMatcher string_match = 3;
      • 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:
        hasBoolMatch in interface ValueMatcherOrBuilder
        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:
        getBoolMatch in interface ValueMatcherOrBuilder
        Returns:
        The boolMatch.
      • setBoolMatch

        public ValueMatcher.Builder 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.
         
        bool bool_match = 4;
        Parameters:
        value - The boolMatch to set.
        Returns:
        This builder for chaining.
      • clearBoolMatch

        public ValueMatcher.Builder 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:
        hasPresentMatch in interface ValueMatcherOrBuilder
        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:
        getPresentMatch in interface ValueMatcherOrBuilder
        Returns:
        The presentMatch.
      • setPresentMatch

        public ValueMatcher.Builder 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. 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

        public ValueMatcher.Builder 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.v3.ListMatcher list_match = 6;
        Specified by:
        hasListMatch in interface ValueMatcherOrBuilder
        Returns:
        Whether the listMatch field is set.
      • getListMatch

        public ListMatcher 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.v3.ListMatcher list_match = 6;
        Specified by:
        getListMatch in interface ValueMatcherOrBuilder
        Returns:
        The listMatch.
      • setListMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.ListMatcher list_match = 6;
      • setListMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.ListMatcher list_match = 6;
      • mergeListMatch

        public ValueMatcher.Builder 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.
         
        .envoy.type.matcher.v3.ListMatcher list_match = 6;
      • clearListMatch

        public ValueMatcher.Builder 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.v3.ListMatcher list_match = 6;
      • getListMatchBuilder

        public ListMatcher.Builder 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.v3.ListMatcher list_match = 6;
      • getListMatchFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<ListMatcher,​ListMatcher.Builder,​ListMatcherOrBuilder> getListMatchFieldBuilder()
         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.v3.ListMatcher list_match = 6;
      • hasOrMatch

        public boolean hasOrMatch()
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
        Specified by:
        hasOrMatch in interface ValueMatcherOrBuilder
        Returns:
        Whether the orMatch field is set.
      • getOrMatch

        public OrMatcher getOrMatch()
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
        Specified by:
        getOrMatch in interface ValueMatcherOrBuilder
        Returns:
        The orMatch.
      • setOrMatch

        public ValueMatcher.Builder setOrMatch​(OrMatcher value)
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
      • setOrMatch

        public ValueMatcher.Builder setOrMatch​(OrMatcher.Builder builderForValue)
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
      • mergeOrMatch

        public ValueMatcher.Builder mergeOrMatch​(OrMatcher value)
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
      • clearOrMatch

        public ValueMatcher.Builder clearOrMatch()
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
      • getOrMatchBuilder

        public OrMatcher.Builder getOrMatchBuilder()
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;
      • getOrMatchFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<OrMatcher,​OrMatcher.Builder,​OrMatcherOrBuilder> getOrMatchFieldBuilder()
         If specified, a match occurs if and only if any of the alternatives in the match accept the value.
         
        .envoy.type.matcher.v3.OrMatcher or_match = 7;