Class RegexMatchAndSubstitute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.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
,java.lang.Cloneable
- Enclosing class:
- RegexMatchAndSubstitute
public static final class RegexMatchAndSubstitute.Builder extends com.google.protobuf.GeneratedMessage.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
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private RegexMatcher
pattern_
private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder,RegexMatcherOrBuilder>
patternBuilder_
private java.lang.Object
substitution_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexMatchAndSubstitute
build()
RegexMatchAndSubstitute
buildPartial()
private void
buildPartial0(RegexMatchAndSubstitute result)
RegexMatchAndSubstitute.Builder
clear()
RegexMatchAndSubstitute.Builder
clearPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.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.RegexMatchAndSubstitute
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
RegexMatcher
getPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatcher.Builder
getPatternBuilder()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder,RegexMatcherOrBuilder>
getPatternFieldBuilder()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatcherOrBuilder
getPatternOrBuilder()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.java.lang.String
getSubstitution()
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.ByteString
getSubstitutionBytes()
The string that should be substituted into matching portions of the subject string during a substitution operation to produce a new string.boolean
hasPattern()
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
RegexMatchAndSubstitute.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RegexMatchAndSubstitute.Builder
mergeFrom(com.google.protobuf.Message other)
RegexMatchAndSubstitute.Builder
mergeFrom(RegexMatchAndSubstitute other)
RegexMatchAndSubstitute.Builder
mergePattern(RegexMatcher value)
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.RegexMatchAndSubstitute.Builder
setPattern(RegexMatcher value)
The regular expression used to find portions of a string (hereafter called the "subject string") that should be replaced.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.RegexMatchAndSubstitute.Builder
setSubstitution(java.lang.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.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.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
pattern_
private RegexMatcher pattern_
-
patternBuilder_
private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder,RegexMatcherOrBuilder> patternBuilder_
-
substitution_
private java.lang.Object substitution_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RegexMatchAndSubstitute.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public RegexMatchAndSubstitute.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RegexMatchAndSubstitute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RegexMatchAndSubstitute.Builder>
-
getDefaultInstanceForType
public RegexMatchAndSubstitute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RegexMatchAndSubstitute build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RegexMatchAndSubstitute buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(RegexMatchAndSubstitute result)
-
mergeFrom
public RegexMatchAndSubstitute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RegexMatchAndSubstitute.Builder>
-
mergeFrom
public RegexMatchAndSubstitute.Builder mergeFrom(RegexMatchAndSubstitute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RegexMatchAndSubstitute.Builder>
-
mergeFrom
public RegexMatchAndSubstitute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RegexMatchAndSubstitute.Builder>
- Throws:
java.io.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:
hasPattern
in 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:
getPattern
in 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:
getPatternOrBuilder
in interfaceRegexMatchAndSubstituteOrBuilder
-
getPatternFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RegexMatcher,RegexMatcher.Builder,RegexMatcherOrBuilder> getPatternFieldBuilder()
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) = { ... }
-
getSubstitution
public java.lang.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 [(.validate.rules) = { ... }
- Specified by:
getSubstitution
in 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 [(.validate.rules) = { ... }
- Specified by:
getSubstitutionBytes
in interfaceRegexMatchAndSubstituteOrBuilder
- Returns:
- The bytes for substitution.
-
setSubstitution
public RegexMatchAndSubstitute.Builder setSubstitution(java.lang.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 [(.validate.rules) = { ... }
- 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 [(.validate.rules) = { ... }
- 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 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for substitution to set.- Returns:
- This builder for chaining.
-
-