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 type
envoy.type.matcher.RegexMatcher.GoogleRE2| Modifier and Type | Method and Description |
|---|---|
RegexMatcher.GoogleRE2.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RegexMatcher.GoogleRE2 |
build() |
RegexMatcher.GoogleRE2 |
buildPartial() |
RegexMatcher.GoogleRE2.Builder |
clear() |
RegexMatcher.GoogleRE2.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RegexMatcher.GoogleRE2.Builder |
clearMaxProgramSize()
Deprecated.
|
RegexMatcher.GoogleRE2.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RegexMatcher.GoogleRE2.Builder |
clone() |
RegexMatcher.GoogleRE2 |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.UInt32Value |
getMaxProgramSize()
Deprecated.
|
com.google.protobuf.UInt32Value.Builder |
getMaxProgramSizeBuilder()
Deprecated.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMaxProgramSizeOrBuilder()
Deprecated.
|
boolean |
hasMaxProgramSize()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RegexMatcher.GoogleRE2.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RegexMatcher.GoogleRE2.Builder |
mergeFrom(com.google.protobuf.Message other) |
RegexMatcher.GoogleRE2.Builder |
mergeFrom(RegexMatcher.GoogleRE2 other) |
RegexMatcher.GoogleRE2.Builder |
mergeMaxProgramSize(com.google.protobuf.UInt32Value value)
Deprecated.
|
RegexMatcher.GoogleRE2.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RegexMatcher.GoogleRE2.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RegexMatcher.GoogleRE2.Builder |
setMaxProgramSize(com.google.protobuf.UInt32Value.Builder builderForValue)
Deprecated.
|
RegexMatcher.GoogleRE2.Builder |
setMaxProgramSize(com.google.protobuf.UInt32Value value)
Deprecated.
|
RegexMatcher.GoogleRE2.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RegexMatcher.GoogleRE2.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2 getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RegexMatcher.GoogleRE2 build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RegexMatcher.GoogleRE2 buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RegexMatcher.GoogleRE2.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder mergeFrom(RegexMatcher.GoogleRE2 other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public RegexMatcher.GoogleRE2.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RegexMatcher.GoogleRE2.Builder>IOException@Deprecated public boolean hasMaxProgramSize()
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];hasMaxProgramSize in interface RegexMatcher.GoogleRE2OrBuilder@Deprecated public com.google.protobuf.UInt32Value getMaxProgramSize()
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];getMaxProgramSize in interface RegexMatcher.GoogleRE2OrBuilder@Deprecated public RegexMatcher.GoogleRE2.Builder setMaxProgramSize(com.google.protobuf.UInt32Value value)
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];@Deprecated public RegexMatcher.GoogleRE2.Builder setMaxProgramSize(com.google.protobuf.UInt32Value.Builder builderForValue)
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];@Deprecated public RegexMatcher.GoogleRE2.Builder mergeMaxProgramSize(com.google.protobuf.UInt32Value value)
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];@Deprecated public RegexMatcher.GoogleRE2.Builder clearMaxProgramSize()
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];@Deprecated public com.google.protobuf.UInt32Value.Builder getMaxProgramSizeBuilder()
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];@Deprecated public com.google.protobuf.UInt32ValueOrBuilder getMaxProgramSizeOrBuilder()
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 in interface RegexMatcher.GoogleRE2OrBuilderpublic final RegexMatcher.GoogleRE2.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>public final RegexMatcher.GoogleRE2.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RegexMatcher.GoogleRE2.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.