Class HttpGenericBodyMatch.Builder

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

    public static final class HttpGenericBodyMatch.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
    implements HttpGenericBodyMatchOrBuilder
     HTTP generic body match configuration.
     List of text strings and hex strings to be located in HTTP body.
     All specified strings must be found in the HTTP body for positive match.
     The search may be limited to specified number of bytes from the body start.
     .. attention::
       Searching for patterns in HTTP body is potentially cpu intensive. For each specified pattern, http body is scanned byte by byte to find a match.
       If multiple patterns are specified, the process is repeated for each pattern. If location of a pattern is known, ``bytes_limit`` should be specified
       to scan only part of the http body.
     
    Protobuf type envoy.config.common.matcher.v3.HttpGenericBodyMatch
    • 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<HttpGenericBodyMatch.Builder>
      • clear

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

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

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

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

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • setField

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • clearField

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • clearOneof

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • setRepeatedField

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • addRepeatedField

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

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

        public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
        Throws:
        IOException
      • getBytesLimit

        public int getBytesLimit()
         Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).
         
        uint32 bytes_limit = 1;
        Specified by:
        getBytesLimit in interface HttpGenericBodyMatchOrBuilder
        Returns:
        The bytesLimit.
      • setBytesLimit

        public HttpGenericBodyMatch.Builder setBytesLimit​(int value)
         Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).
         
        uint32 bytes_limit = 1;
        Parameters:
        value - The bytesLimit to set.
        Returns:
        This builder for chaining.
      • clearBytesLimit

        public HttpGenericBodyMatch.Builder clearBytesLimit()
         Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).
         
        uint32 bytes_limit = 1;
        Returns:
        This builder for chaining.
      • getPatternsCount

        public int getPatternsCount()
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
        Specified by:
        getPatternsCount in interface HttpGenericBodyMatchOrBuilder
      • clearPatterns

        public HttpGenericBodyMatch.Builder clearPatterns()
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • removePatterns

        public HttpGenericBodyMatch.Builder removePatterns​(int index)
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • getPatternsBuilder

        public HttpGenericBodyMatch.GenericTextMatch.Builder getPatternsBuilder​(int index)
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • addPatternsBuilder

        public HttpGenericBodyMatch.GenericTextMatch.Builder addPatternsBuilder()
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • addPatternsBuilder

        public HttpGenericBodyMatch.GenericTextMatch.Builder addPatternsBuilder​(int index)
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • getPatternsBuilderList

        public List<HttpGenericBodyMatch.GenericTextMatch.Builder> getPatternsBuilderList()
         List of patterns to match.
         
        repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      • setUnknownFields

        public final HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
      • mergeUnknownFields

        public final HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>