public static final class String.StringMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder> implements String.StringMatcherOrBuilder
Specifies the way to match a string.Protobuf type
envoy.type.matcher.StringMatcher| Modifier and Type | Method and Description |
|---|---|
String.StringMatcher.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
String.StringMatcher |
build() |
String.StringMatcher |
buildPartial() |
String.StringMatcher.Builder |
clear() |
String.StringMatcher.Builder |
clearExact()
The input string must match exactly the string specified here.
|
String.StringMatcher.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
String.StringMatcher.Builder |
clearMatchPattern() |
String.StringMatcher.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
String.StringMatcher.Builder |
clearPrefix()
The input string must have the prefix specified here.
|
String.StringMatcher.Builder |
clearRegex()
The input string must match the regular expression specified here.
|
String.StringMatcher.Builder |
clearSuffix()
The input string must have the suffix specified here.
|
String.StringMatcher.Builder |
clone() |
String.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.
|
String.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() |
String.StringMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
String.StringMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
String.StringMatcher.Builder |
mergeFrom(String.StringMatcher other) |
String.StringMatcher.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
String.StringMatcher.Builder |
setExact(String value)
The input string must match exactly the string specified here.
|
String.StringMatcher.Builder |
setExactBytes(com.google.protobuf.ByteString value)
The input string must match exactly the string specified here.
|
String.StringMatcher.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
String.StringMatcher.Builder |
setPrefix(String value)
The input string must have the prefix specified here.
|
String.StringMatcher.Builder |
setPrefixBytes(com.google.protobuf.ByteString value)
The input string must have the prefix specified here.
|
String.StringMatcher.Builder |
setRegex(String value)
The input string must match the regular expression specified here.
|
String.StringMatcher.Builder |
setRegexBytes(com.google.protobuf.ByteString value)
The input string must match the regular expression specified here.
|
String.StringMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
String.StringMatcher.Builder |
setSuffix(String value)
The input string must have the suffix specified here.
|
String.StringMatcher.Builder |
setSuffixBytes(com.google.protobuf.ByteString value)
The input string must have the suffix specified here.
|
String.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<String.StringMatcher.Builder>public String.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<String.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<String.StringMatcher.Builder>public String.StringMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic String.StringMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic String.StringMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic String.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<String.StringMatcher.Builder>public String.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<String.StringMatcher.Builder>public String.StringMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder>public String.StringMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder>public String.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<String.StringMatcher.Builder>public String.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<String.StringMatcher.Builder>public String.StringMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<String.StringMatcher.Builder>public String.StringMatcher.Builder mergeFrom(String.StringMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder>public String.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<String.StringMatcher.Builder>IOExceptionpublic String.StringMatcher.MatchPatternCase getMatchPatternCase()
getMatchPatternCase in interface String.StringMatcherOrBuilderpublic String.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 String.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 String.StringMatcherOrBuilderpublic String.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 String.StringMatcher.Builder clearExact()
The input string must match exactly the string specified here. Examples: * *abc* only matches the value *abc*.
string exact = 1;public String.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 String.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 String.StringMatcherOrBuilderpublic String.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 String.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 String.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 String.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 String.StringMatcherOrBuilderpublic String.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 String.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 String.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 String.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 String.StringMatcherOrBuilderpublic String.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 String.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 String.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 String.StringMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder>public final String.StringMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<String.StringMatcher.Builder>Copyright © 2018 The Envoy Project. All rights reserved.