Class HttpGenericBodyMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
io.envoyproxy.envoy.config.common.matcher.v3.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 Details

    • 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

      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

      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>
    • mergeFrom

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

    • 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.
    • getPatternsList

      public List<HttpGenericBodyMatch.GenericTextMatch> getPatternsList()
       List of patterns to match.
       
      repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      Specified by:
      getPatternsList in interface HttpGenericBodyMatchOrBuilder
    • 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
    • getPatterns

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

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

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

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

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

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

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

       List of patterns to match.
       
      repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
    • 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) = { ... }
    • getPatternsOrBuilder

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

      public List<? extends HttpGenericBodyMatch.GenericTextMatchOrBuilder> getPatternsOrBuilderList()
       List of patterns to match.
       
      repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
      Specified by:
      getPatternsOrBuilderList in interface HttpGenericBodyMatchOrBuilder
    • 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>