public static final class StringMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder> implements StringMatcherOrBuilder
Specifies the way to match a string. [#next-free-field: 7]Protobuf type
envoy.type.matcher.StringMatcher| Modifier and Type | Method and Description |
|---|---|
StringMatcher.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StringMatcher |
build() |
StringMatcher |
buildPartial() |
StringMatcher.Builder |
clear() |
StringMatcher.Builder |
clearExact()
The input string must match exactly the string specified here.
|
StringMatcher.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StringMatcher.Builder |
clearIgnoreCase()
If true, indicates the exact/prefix/suffix matching should be case insensitive.
|
StringMatcher.Builder |
clearMatchPattern() |
StringMatcher.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StringMatcher.Builder |
clearPrefix()
The input string must have the prefix specified here.
|
StringMatcher.Builder |
clearRegex()
Deprecated.
|
StringMatcher.Builder |
clearSafeRegex()
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
clearSuffix()
The input string must have the suffix specified here.
|
StringMatcher.Builder |
clone() |
StringMatcher |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExact()
The input string must match exactly the string specified here.
|
com.google.protobuf.ByteString |
getExactBytes()
The input string must match exactly the string specified here.
|
boolean |
getIgnoreCase()
If true, indicates the exact/prefix/suffix matching should be case insensitive.
|
StringMatcher.MatchPatternCase |
getMatchPatternCase() |
String |
getPrefix()
The input string must have the prefix specified here.
|
com.google.protobuf.ByteString |
getPrefixBytes()
The input string must have the prefix specified here.
|
String |
getRegex()
Deprecated.
|
com.google.protobuf.ByteString |
getRegexBytes()
Deprecated.
|
RegexMatcher |
getSafeRegex()
The input string must match the regular expression specified here.
|
RegexMatcher.Builder |
getSafeRegexBuilder()
The input string must match the regular expression specified here.
|
RegexMatcherOrBuilder |
getSafeRegexOrBuilder()
The input string must match the regular expression specified here.
|
String |
getSuffix()
The input string must have the suffix specified here.
|
com.google.protobuf.ByteString |
getSuffixBytes()
The input string must have the suffix specified here.
|
boolean |
hasSafeRegex()
The input string must match the regular expression specified here.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StringMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StringMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
StringMatcher.Builder |
mergeFrom(StringMatcher other) |
StringMatcher.Builder |
mergeSafeRegex(RegexMatcher value)
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StringMatcher.Builder |
setExact(String value)
The input string must match exactly the string specified here.
|
StringMatcher.Builder |
setExactBytes(com.google.protobuf.ByteString value)
The input string must match exactly the string specified here.
|
StringMatcher.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StringMatcher.Builder |
setIgnoreCase(boolean value)
If true, indicates the exact/prefix/suffix matching should be case insensitive.
|
StringMatcher.Builder |
setPrefix(String value)
The input string must have the prefix specified here.
|
StringMatcher.Builder |
setPrefixBytes(com.google.protobuf.ByteString value)
The input string must have the prefix specified here.
|
StringMatcher.Builder |
setRegex(String value)
Deprecated.
|
StringMatcher.Builder |
setRegexBytes(com.google.protobuf.ByteString value)
Deprecated.
|
StringMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StringMatcher.Builder |
setSafeRegex(RegexMatcher.Builder builderForValue)
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
setSafeRegex(RegexMatcher value)
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
setSuffix(String value)
The input string must have the suffix specified here.
|
StringMatcher.Builder |
setSuffixBytes(com.google.protobuf.ByteString value)
The input string must have the suffix specified here.
|
StringMatcher.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<StringMatcher.Builder>public StringMatcher.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.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<StringMatcher.Builder>public StringMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StringMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StringMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StringMatcher.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>public StringMatcher.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<StringMatcher.Builder>public StringMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>public StringMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>public StringMatcher.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<StringMatcher.Builder>public StringMatcher.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<StringMatcher.Builder>public StringMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StringMatcher.Builder>public StringMatcher.Builder mergeFrom(StringMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>public StringMatcher.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<StringMatcher.Builder>IOExceptionpublic StringMatcher.MatchPatternCase getMatchPatternCase()
getMatchPatternCase in interface StringMatcherOrBuilderpublic StringMatcher.Builder clearMatchPattern()
public String getExact()
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;getExact in interface StringMatcherOrBuilderpublic com.google.protobuf.ByteString getExactBytes()
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;getExactBytes in interface StringMatcherOrBuilderpublic StringMatcher.Builder setExact(String value)
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;public StringMatcher.Builder clearExact()
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;public StringMatcher.Builder setExactBytes(com.google.protobuf.ByteString value)
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;public String getPrefix()
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *abc.xyz*
string prefix = 2 [(.validate.rules) = { ... }getPrefix in interface StringMatcherOrBuilderpublic com.google.protobuf.ByteString getPrefixBytes()
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *abc.xyz*
string prefix = 2 [(.validate.rules) = { ... }getPrefixBytes in interface StringMatcherOrBuilderpublic StringMatcher.Builder setPrefix(String value)
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *abc.xyz*
string prefix = 2 [(.validate.rules) = { ... }public StringMatcher.Builder clearPrefix()
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *abc.xyz*
string prefix = 2 [(.validate.rules) = { ... }public StringMatcher.Builder setPrefixBytes(com.google.protobuf.ByteString value)
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *abc.xyz*
string prefix = 2 [(.validate.rules) = { ... }public String getSuffix()
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *xyz.abc*
string suffix = 3 [(.validate.rules) = { ... }getSuffix in interface StringMatcherOrBuilderpublic com.google.protobuf.ByteString getSuffixBytes()
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *xyz.abc*
string suffix = 3 [(.validate.rules) = { ... }getSuffixBytes in interface StringMatcherOrBuilderpublic StringMatcher.Builder setSuffix(String value)
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *xyz.abc*
string suffix = 3 [(.validate.rules) = { ... }public StringMatcher.Builder clearSuffix()
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *xyz.abc*
string suffix = 3 [(.validate.rules) = { ... }public StringMatcher.Builder setSuffixBytes(com.google.protobuf.ByteString value)
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * *abc* matches the value *xyz.abc*
string suffix = 3 [(.validate.rules) = { ... }@Deprecated public String getRegex()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<https://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex ``\d{3}`` matches the value *123*
* The regex ``\d{3}`` does not match the value *1234*
* The regex ``\d{3}`` does not match the value *123.456*
.. attention::
This field has been deprecated in favor of `safe_regex` as it is not safe for use with
untrusted input in all cases.
string regex = 4 [deprecated = true, (.validate.rules) = { ... }getRegex in interface StringMatcherOrBuilder@Deprecated public com.google.protobuf.ByteString getRegexBytes()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<https://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex ``\d{3}`` matches the value *123*
* The regex ``\d{3}`` does not match the value *1234*
* The regex ``\d{3}`` does not match the value *123.456*
.. attention::
This field has been deprecated in favor of `safe_regex` as it is not safe for use with
untrusted input in all cases.
string regex = 4 [deprecated = true, (.validate.rules) = { ... }getRegexBytes in interface StringMatcherOrBuilder@Deprecated public StringMatcher.Builder setRegex(String value)
The input string must match the regular expression specified here.
The regex grammar is defined `here
<https://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex ``\d{3}`` matches the value *123*
* The regex ``\d{3}`` does not match the value *1234*
* The regex ``\d{3}`` does not match the value *123.456*
.. attention::
This field has been deprecated in favor of `safe_regex` as it is not safe for use with
untrusted input in all cases.
string regex = 4 [deprecated = true, (.validate.rules) = { ... }@Deprecated public StringMatcher.Builder clearRegex()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<https://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex ``\d{3}`` matches the value *123*
* The regex ``\d{3}`` does not match the value *1234*
* The regex ``\d{3}`` does not match the value *123.456*
.. attention::
This field has been deprecated in favor of `safe_regex` as it is not safe for use with
untrusted input in all cases.
string regex = 4 [deprecated = true, (.validate.rules) = { ... }@Deprecated public StringMatcher.Builder setRegexBytes(com.google.protobuf.ByteString value)
The input string must match the regular expression specified here.
The regex grammar is defined `here
<https://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex ``\d{3}`` matches the value *123*
* The regex ``\d{3}`` does not match the value *1234*
* The regex ``\d{3}`` does not match the value *123.456*
.. attention::
This field has been deprecated in favor of `safe_regex` as it is not safe for use with
untrusted input in all cases.
string regex = 4 [deprecated = true, (.validate.rules) = { ... }public boolean hasSafeRegex()
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }hasSafeRegex in interface StringMatcherOrBuilderpublic RegexMatcher getSafeRegex()
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }getSafeRegex in interface StringMatcherOrBuilderpublic StringMatcher.Builder setSafeRegex(RegexMatcher value)
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }public StringMatcher.Builder setSafeRegex(RegexMatcher.Builder builderForValue)
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }public StringMatcher.Builder mergeSafeRegex(RegexMatcher value)
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }public StringMatcher.Builder clearSafeRegex()
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }public RegexMatcher.Builder getSafeRegexBuilder()
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }public RegexMatcherOrBuilder getSafeRegexOrBuilder()
The input string must match the regular expression specified here.
.envoy.type.matcher.RegexMatcher safe_regex = 5 [(.validate.rules) = { ... }getSafeRegexOrBuilder in interface StringMatcherOrBuilderpublic boolean getIgnoreCase()
If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher *data* will match both input string *Data* and *data* if set to true.
bool ignore_case = 6;getIgnoreCase in interface StringMatcherOrBuilderpublic StringMatcher.Builder setIgnoreCase(boolean value)
If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher *data* will match both input string *Data* and *data* if set to true.
bool ignore_case = 6;public StringMatcher.Builder clearIgnoreCase()
If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher *data* will match both input string *Data* and *data* if set to true.
bool ignore_case = 6;public final StringMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>public final StringMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.