public interface RegexRewriteOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getPathPattern()
public abstract String getPathPattern()Required. The regular expression used to match against the URL path. It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g. .*
Any char repetition, e.g. .*, is only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns | |
|---|---|
| Type | Description |
String |
The pathPattern. |
getPathPatternBytes()
public abstract ByteString getPathPatternBytes()Required. The regular expression used to match against the URL path. It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g. .*
Any char repetition, e.g. .*, is only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pathPattern. |
getPathSubstitution()
public abstract String getPathSubstitution()Required. Required when path pattern is specified. Used to rewrite matching parts of the path.
optional string path_substitution = 268020951;
| Returns | |
|---|---|
| Type | Description |
String |
The pathSubstitution. |
getPathSubstitutionBytes()
public abstract ByteString getPathSubstitutionBytes()Required. Required when path pattern is specified. Used to rewrite matching parts of the path.
optional string path_substitution = 268020951;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pathSubstitution. |
hasPathPattern()
public abstract boolean hasPathPattern()Required. The regular expression used to match against the URL path. It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g. .*
Any char repetition, e.g. .*, is only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pathPattern field is set. |
hasPathSubstitution()
public abstract boolean hasPathSubstitution()Required. Required when path pattern is specified. Used to rewrite matching parts of the path.
optional string path_substitution = 268020951;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pathSubstitution field is set. |