public static final class StringMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StringMatcher.Builder> implements StringMatcherOrBuilder
Specifies the way to match a string.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 |
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()
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.
|
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()
The input string must match the regular expression specified here.
|
com.google.protobuf.ByteString |
getRegexBytes()
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.
|
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 |
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 |
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)
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
setRegexBytes(com.google.protobuf.ByteString value)
The input string must match the regular expression specified here.
|
StringMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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) = { ... }public String getRegex()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<http://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*
string regex = 4 [(.validate.rules) = { ... }getRegex in interface StringMatcherOrBuilderpublic com.google.protobuf.ByteString getRegexBytes()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<http://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*
string regex = 4 [(.validate.rules) = { ... }getRegexBytes in interface StringMatcherOrBuilderpublic StringMatcher.Builder setRegex(String value)
The input string must match the regular expression specified here.
The regex grammar is defined `here
<http://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*
string regex = 4 [(.validate.rules) = { ... }public StringMatcher.Builder clearRegex()
The input string must match the regular expression specified here.
The regex grammar is defined `here
<http://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*
string regex = 4 [(.validate.rules) = { ... }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
<http://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*
string regex = 4 [(.validate.rules) = { ... }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–2019 The Envoy Project. All rights reserved.