Class CelMatcher.Builder

  • All Implemented Interfaces:
    CelMatcherOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CelMatcher

    public static final class CelMatcher.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
    implements CelMatcherOrBuilder
     Performs a match by evaluating a `Common Expression Language
     <https://github.com/google/cel-spec>`_ (CEL) expression against the standardized set of
     :ref:`HTTP attributes <arch_overview_attributes>` specified via ``HttpAttributesCelMatchInput``.
     .. attention::
       The match is ``true``, iff the result of the evaluation is a bool AND true.
       In all other cases, the match is ``false``, including but not limited to: non-bool types,
       ``false``, ``null``,`` int(1)``, etc.
       In case CEL expression raises an error, the result of the evaluation is interpreted "no match".
     Refer to :ref:`Unified Matcher API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>` documentation
     for usage details.
     [#comment:TODO(sergiitk): Link HttpAttributesMatchInput + usage example.]
     [#comment:TODO(sergiitk): When implemented, add the extension tag.]
     
    Protobuf type xds.type.matcher.v3.CelMatcher
    • Method Detail

      • getDescriptor

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

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

        public CelMatcher.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.GeneratedMessageV3.Builder<CelMatcher.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.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • getDefaultInstanceForType

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

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

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

        public CelMatcher.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • setField

        public CelMatcher.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • clearField

        public CelMatcher.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • clearOneof

        public CelMatcher.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • setRepeatedField

        public CelMatcher.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • addRepeatedField

        public CelMatcher.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • mergeFrom

        public CelMatcher.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<CelMatcher.Builder>
      • isInitialized

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

        public CelMatcher.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws 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<CelMatcher.Builder>
        Throws:
        IOException
      • hasExprMatch

        public boolean hasExprMatch()
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
        Specified by:
        hasExprMatch in interface CelMatcherOrBuilder
        Returns:
        Whether the exprMatch field is set.
      • getExprMatch

        public CelExpression getExprMatch()
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
        Specified by:
        getExprMatch in interface CelMatcherOrBuilder
        Returns:
        The exprMatch.
      • setExprMatch

        public CelMatcher.Builder setExprMatch​(CelExpression value)
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
      • setExprMatch

        public CelMatcher.Builder setExprMatch​(CelExpression.Builder builderForValue)
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
      • mergeExprMatch

        public CelMatcher.Builder mergeExprMatch​(CelExpression value)
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
      • clearExprMatch

        public CelMatcher.Builder clearExprMatch()
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
      • getExprMatchBuilder

        public CelExpression.Builder getExprMatchBuilder()
         Either parsed or checked representation of the CEL program.
         
        .xds.type.v3.CelExpression expr_match = 1 [(.validate.rules) = { ... }
      • setUnknownFields

        public final CelMatcher.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>
      • mergeUnknownFields

        public final CelMatcher.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CelMatcher.Builder>