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.tap.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.tap.v3.HttpGenericBodyMatch-
Method Summary
Modifier and TypeMethodDescriptionaddAllPatterns(Iterable<? extends HttpGenericBodyMatch.GenericTextMatch> values) List of patterns to match.addPatterns(int index, HttpGenericBodyMatch.GenericTextMatch value) List of patterns to match.addPatterns(int index, HttpGenericBodyMatch.GenericTextMatch.Builder builderForValue) List of patterns to match.List of patterns to match.addPatterns(HttpGenericBodyMatch.GenericTextMatch.Builder builderForValue) List of patterns to match.List of patterns to match.addPatternsBuilder(int index) List of patterns to match.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of patterns to match.clone()intLimits search to specified number of bytes - default zero (no limit - match entire captured buffer).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPatterns(int index) List of patterns to match.getPatternsBuilder(int index) List of patterns to match.List of patterns to match.intList of patterns to match.List of patterns to match.getPatternsOrBuilder(int index) List of patterns to match.List of patterns to match.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HttpGenericBodyMatch other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removePatterns(int index) List of patterns to match.setBytesLimit(int value) Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).setPatterns(int index, HttpGenericBodyMatch.GenericTextMatch value) List of patterns to match.setPatterns(int index, HttpGenericBodyMatch.GenericTextMatch.Builder builderForValue) List of patterns to match.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpGenericBodyMatch.Builder>
-
mergeFrom
-
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
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
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
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }- Specified by:
getPatternsListin interfaceHttpGenericBodyMatchOrBuilder
-
getPatternsCount
public int getPatternsCount()List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }- Specified by:
getPatternsCountin interfaceHttpGenericBodyMatchOrBuilder
-
getPatterns
List of patterns to match.
repeated .envoy.config.tap.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.tap.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.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
addPatterns
List of patterns to match.
repeated .envoy.config.tap.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.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
addPatterns
public HttpGenericBodyMatch.Builder addPatterns(HttpGenericBodyMatch.GenericTextMatch.Builder builderForValue) List of patterns to match.
repeated .envoy.config.tap.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.tap.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.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
clearPatterns
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
removePatterns
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
getPatternsBuilder
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
getPatternsOrBuilder
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }- Specified by:
getPatternsOrBuilderin interfaceHttpGenericBodyMatchOrBuilder
-
getPatternsOrBuilderList
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... }- Specified by:
getPatternsOrBuilderListin interfaceHttpGenericBodyMatchOrBuilder
-
addPatternsBuilder
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
addPatternsBuilder
List of patterns to match.
repeated .envoy.config.tap.v3.HttpGenericBodyMatch.GenericTextMatch patterns = 2 [(.validate.rules) = { ... } -
getPatternsBuilderList
List of patterns to match.
repeated .envoy.config.tap.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>
-