Class RegexMatchAndSubstitute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
- io.envoyproxy.envoy.type.matcher.v3.RegexMatchAndSubstitute.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RegexMatchAndSubstituteOrBuilder,Cloneable
- Enclosing class:
- RegexMatchAndSubstitute
public static final class RegexMatchAndSubstitute.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder> implements RegexMatchAndSubstituteOrBuilder
Describes how to match a string and then produce a new string using a regular expression and a substitution string.
Protobuf typeenvoy.type.matcher.v3.RegexMatchAndSubstitute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexMatchAndSubstitute.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RegexMatchAndSubstitutebuild()RegexMatchAndSubstitutebuildPartial()RegexMatchAndSubstitute.Builderclear()RegexMatchAndSubstitute.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RegexMatchAndSubstitute.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RegexMatchAndSubstitute.BuilderclearPattern()The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatchAndSubstitute.BuilderclearSubstitution()The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.RegexMatchAndSubstitute.Builderclone()RegexMatchAndSubstitutegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()RegexMatchergetPattern()The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatcher.BuildergetPatternBuilder()The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatcherOrBuildergetPatternOrBuilder()The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.StringgetSubstitution()The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.com.google.protobuf.ByteStringgetSubstitutionBytes()The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.booleanhasPattern()The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RegexMatchAndSubstitute.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RegexMatchAndSubstitute.BuildermergeFrom(com.google.protobuf.Message other)RegexMatchAndSubstitute.BuildermergeFrom(RegexMatchAndSubstitute other)RegexMatchAndSubstitute.BuildermergePattern(RegexMatcher value)The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatchAndSubstitute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RegexMatchAndSubstitute.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RegexMatchAndSubstitute.BuildersetPattern(RegexMatcher value)The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatchAndSubstitute.BuildersetPattern(RegexMatcher.Builder builderForValue)The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatchAndSubstitute.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RegexMatchAndSubstitute.BuildersetSubstitution(String value)The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.RegexMatchAndSubstitute.BuildersetSubstitutionBytes(com.google.protobuf.ByteString value)The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
clear
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
getDefaultInstanceForType
public RegexMatchAndSubstitute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RegexMatchAndSubstitute build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RegexMatchAndSubstitute buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
setField
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
clearField
public RegexMatchAndSubstitute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
clearOneof
public RegexMatchAndSubstitute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
setRepeatedField
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
addRepeatedField
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>
-
mergeFrom
public RegexMatchAndSubstitute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RegexMatchAndSubstitute.Builder>
-
mergeFrom
public RegexMatchAndSubstitute.Builder mergeFrom(RegexMatchAndSubstitute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
mergeFrom
public RegexMatchAndSubstitute.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<RegexMatchAndSubstitute.Builder>- Throws:
IOException
-
hasPattern
public boolean hasPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }- Specified by:
hasPatternin interfaceRegexMatchAndSubstituteOrBuilder- Returns:
- Whether the pattern field is set.
-
getPattern
public RegexMatcher getPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }- Specified by:
getPatternin interfaceRegexMatchAndSubstituteOrBuilder- Returns:
- The pattern.
-
setPattern
public RegexMatchAndSubstitute.Builder setPattern(RegexMatcher value)
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }
-
setPattern
public RegexMatchAndSubstitute.Builder setPattern(RegexMatcher.Builder builderForValue)
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }
-
mergePattern
public RegexMatchAndSubstitute.Builder mergePattern(RegexMatcher value)
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }
-
clearPattern
public RegexMatchAndSubstitute.Builder clearPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }
-
getPatternBuilder
public RegexMatcher.Builder getPatternBuilder()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }
-
getPatternOrBuilder
public RegexMatcherOrBuilder getPatternOrBuilder()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced. When a new string is produced during the substitution operation, the new string is initially the same as the subject string, but then all matches in the subject string are replaced by the substitution string. If replacing all matches isn't desired, regular expression anchors can be used to ensure a single match, so as to replace just one occurrence of a pattern. Capture groups can be used in the pattern to extract portions of the subject string, and then referenced in the substitution string.
.envoy.type.matcher.v3.RegexMatcher pattern = 1 [(.validate.rules) = { ... }- Specified by:
getPatternOrBuilderin interfaceRegexMatchAndSubstituteOrBuilder
-
getSubstitution
public String getSubstitution()
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string. Capture groups in the pattern can be referenced in the substitution string. Note, however, that the syntax for referring to capture groups is defined by the chosen regular expression engine. Google's `RE2 <https://github.com/google/re2>`_ regular expression engine uses a backslash followed by the capture group number to denote a numbered capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers to capture group 2.
string substitution = 2;- Specified by:
getSubstitutionin interfaceRegexMatchAndSubstituteOrBuilder- Returns:
- The substitution.
-
getSubstitutionBytes
public com.google.protobuf.ByteString getSubstitutionBytes()
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string. Capture groups in the pattern can be referenced in the substitution string. Note, however, that the syntax for referring to capture groups is defined by the chosen regular expression engine. Google's `RE2 <https://github.com/google/re2>`_ regular expression engine uses a backslash followed by the capture group number to denote a numbered capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers to capture group 2.
string substitution = 2;- Specified by:
getSubstitutionBytesin interfaceRegexMatchAndSubstituteOrBuilder- Returns:
- The bytes for substitution.
-
setSubstitution
public RegexMatchAndSubstitute.Builder setSubstitution(String value)
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string. Capture groups in the pattern can be referenced in the substitution string. Note, however, that the syntax for referring to capture groups is defined by the chosen regular expression engine. Google's `RE2 <https://github.com/google/re2>`_ regular expression engine uses a backslash followed by the capture group number to denote a numbered capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers to capture group 2.
string substitution = 2;- Parameters:
value- The substitution to set.- Returns:
- This builder for chaining.
-
clearSubstitution
public RegexMatchAndSubstitute.Builder clearSubstitution()
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string. Capture groups in the pattern can be referenced in the substitution string. Note, however, that the syntax for referring to capture groups is defined by the chosen regular expression engine. Google's `RE2 <https://github.com/google/re2>`_ regular expression engine uses a backslash followed by the capture group number to denote a numbered capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers to capture group 2.
string substitution = 2;- Returns:
- This builder for chaining.
-
setSubstitutionBytes
public RegexMatchAndSubstitute.Builder setSubstitutionBytes(com.google.protobuf.ByteString value)
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string. Capture groups in the pattern can be referenced in the substitution string. Note, however, that the syntax for referring to capture groups is defined by the chosen regular expression engine. Google's `RE2 <https://github.com/google/re2>`_ regular expression engine uses a backslash followed by the capture group number to denote a numbered capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers to capture group 2.
string substitution = 2;- Parameters:
value- The bytes for substitution to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RegexMatchAndSubstitute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
mergeUnknownFields
public final RegexMatchAndSubstitute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RegexMatchAndSubstitute.Builder>
-
-