Package io.envoyproxy.envoy.type.matcher
Class RegexMatcher.GoogleRE2.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
- io.envoyproxy.envoy.type.matcher.RegexMatcher.GoogleRE2.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RegexMatcher.GoogleRE2OrBuilder,Cloneable
- Enclosing class:
- RegexMatcher.GoogleRE2
public static final class RegexMatcher.GoogleRE2.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder> implements RegexMatcher.GoogleRE2OrBuilder
Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex string must adhere to the documented `syntax <https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys ``re2.max_program_size.error_level`` and ``re2.max_program_size.warn_level`` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. ``re2.max_program_size.error_level`` defaults to 100, and ``re2.max_program_size.warn_level`` has no default if unset (will not check/log a warning). Envoy emits two stats for tracking the program size of regexes: the histogram `re2.program_size`, which records the program size, and the counter `re2.exceeded_warn_level`, which is incremented each time the program size exceeds the warn level threshold.
Protobuf typeenvoy.type.matcher.RegexMatcher.GoogleRE2
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RegexMatcher.GoogleRE2.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RegexMatcher.GoogleRE2build()RegexMatcher.GoogleRE2buildPartial()RegexMatcher.GoogleRE2.Builderclear()RegexMatcher.GoogleRE2.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RegexMatcher.GoogleRE2.BuilderclearMaxProgramSize()Deprecated.RegexMatcher.GoogleRE2.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RegexMatcher.GoogleRE2.Builderclone()RegexMatcher.GoogleRE2getDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.UInt32ValuegetMaxProgramSize()Deprecated.envoy.type.matcher.RegexMatcher.GoogleRE2.max_program_size is deprecated.com.google.protobuf.UInt32Value.BuildergetMaxProgramSizeBuilder()Deprecated.com.google.protobuf.UInt32ValueOrBuildergetMaxProgramSizeOrBuilder()Deprecated.booleanhasMaxProgramSize()Deprecated.envoy.type.matcher.RegexMatcher.GoogleRE2.max_program_size is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RegexMatcher.GoogleRE2.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RegexMatcher.GoogleRE2.BuildermergeFrom(com.google.protobuf.Message other)RegexMatcher.GoogleRE2.BuildermergeFrom(RegexMatcher.GoogleRE2 other)RegexMatcher.GoogleRE2.BuildermergeMaxProgramSize(com.google.protobuf.UInt32Value value)Deprecated.RegexMatcher.GoogleRE2.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RegexMatcher.GoogleRE2.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RegexMatcher.GoogleRE2.BuildersetMaxProgramSize(com.google.protobuf.UInt32Value value)Deprecated.RegexMatcher.GoogleRE2.BuildersetMaxProgramSize(com.google.protobuf.UInt32Value.Builder builderForValue)Deprecated.RegexMatcher.GoogleRE2.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RegexMatcher.GoogleRE2.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<RegexMatcher.GoogleRE2.Builder>
-
clear
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>
-
getDefaultInstanceForType
public RegexMatcher.GoogleRE2 getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RegexMatcher.GoogleRE2 build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RegexMatcher.GoogleRE2 buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>
-
setField
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>
-
clearField
public RegexMatcher.GoogleRE2.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
clearOneof
public RegexMatcher.GoogleRE2.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
setRepeatedField
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>
-
addRepeatedField
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>
-
mergeFrom
public RegexMatcher.GoogleRE2.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RegexMatcher.GoogleRE2.Builder>
-
mergeFrom
public RegexMatcher.GoogleRE2.Builder mergeFrom(RegexMatcher.GoogleRE2 other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
mergeFrom
public RegexMatcher.GoogleRE2.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<RegexMatcher.GoogleRE2.Builder>- Throws:
IOException
-
hasMaxProgramSize
@Deprecated public boolean hasMaxProgramSize()
Deprecated.envoy.type.matcher.RegexMatcher.GoogleRE2.max_program_size is deprecated. See envoy/type/matcher/regex.proto;l=40This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];- Specified by:
hasMaxProgramSizein interfaceRegexMatcher.GoogleRE2OrBuilder- Returns:
- Whether the maxProgramSize field is set.
-
getMaxProgramSize
@Deprecated public com.google.protobuf.UInt32Value getMaxProgramSize()
Deprecated.envoy.type.matcher.RegexMatcher.GoogleRE2.max_program_size is deprecated. See envoy/type/matcher/regex.proto;l=40This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];- Specified by:
getMaxProgramSizein interfaceRegexMatcher.GoogleRE2OrBuilder- Returns:
- The maxProgramSize.
-
setMaxProgramSize
@Deprecated public RegexMatcher.GoogleRE2.Builder setMaxProgramSize(com.google.protobuf.UInt32Value value)
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
-
setMaxProgramSize
@Deprecated public RegexMatcher.GoogleRE2.Builder setMaxProgramSize(com.google.protobuf.UInt32Value.Builder builderForValue)
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
-
mergeMaxProgramSize
@Deprecated public RegexMatcher.GoogleRE2.Builder mergeMaxProgramSize(com.google.protobuf.UInt32Value value)
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
-
clearMaxProgramSize
@Deprecated public RegexMatcher.GoogleRE2.Builder clearMaxProgramSize()
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
-
getMaxProgramSizeBuilder
@Deprecated public com.google.protobuf.UInt32Value.Builder getMaxProgramSizeBuilder()
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
-
getMaxProgramSizeOrBuilder
@Deprecated public com.google.protobuf.UInt32ValueOrBuilder getMaxProgramSizeOrBuilder()
Deprecated.This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is deprecated; regexp validation should be performed on the management server instead of being done by each individual client.
.google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];- Specified by:
getMaxProgramSizeOrBuilderin interfaceRegexMatcher.GoogleRE2OrBuilder
-
setUnknownFields
public final RegexMatcher.GoogleRE2.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
mergeUnknownFields
public final RegexMatcher.GoogleRE2.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>
-
-