Class HttpGenericBodyMatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.config.common.matcher.v3.HttpGenericBodyMatch
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<HttpGenericBodyMatch.Builder>
-
clear
public HttpGenericBodyMatch.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<HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
-
getDefaultInstanceForType
public HttpGenericBodyMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpGenericBodyMatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpGenericBodyMatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
-
setField
public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
-
clearField
public HttpGenericBodyMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
-
clearOneof
public HttpGenericBodyMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
-
setRepeatedField
public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
-
addRepeatedField
public HttpGenericBodyMatch.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<HttpGenericBodyMatch.Builder>
-
mergeFrom
public HttpGenericBodyMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpGenericBodyMatch.Builder>
-
mergeFrom
public HttpGenericBodyMatch.Builder mergeFrom(HttpGenericBodyMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getBytesLimitin interfaceHttpGenericBodyMatchOrBuilder- 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:
getPatternsListin interfaceHttpGenericBodyMatchOrBuilder
-
getPatternsCount
public int getPatternsCount()
List of patterns to match.
repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }- Specified by:
getPatternsCountin interfaceHttpGenericBodyMatchOrBuilder
-
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:
getPatternsin interfaceHttpGenericBodyMatchOrBuilder
-
setPatterns
public HttpGenericBodyMatch.Builder setPatterns(int index, HttpGenericBodyMatch.GenericTextMatch value)
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
public HttpGenericBodyMatch.Builder addPatterns(HttpGenericBodyMatch.GenericTextMatch value)
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 value)
List of patterns to match.
repeated .envoy.config.common.matcher.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }
-
addPatterns
public HttpGenericBodyMatch.Builder addPatterns(HttpGenericBodyMatch.GenericTextMatch.Builder builderForValue)
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
public HttpGenericBodyMatch.Builder addAllPatterns(Iterable<? extends HttpGenericBodyMatch.GenericTextMatch> values)
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:
getPatternsOrBuilderin interfaceHttpGenericBodyMatchOrBuilder
-
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:
getPatternsOrBuilderListin interfaceHttpGenericBodyMatchOrBuilder
-
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
-
mergeUnknownFields
public final HttpGenericBodyMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpGenericBodyMatch.Builder>
-
-