public static interface AuthzPolicy.AuthzRule.StringMatchOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getContains()
public abstract String getContains()The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The contains. |
getContainsBytes()
public abstract ByteString getContainsBytes()The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contains. |
getExact()
public abstract String getExact()The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The exact. |
getExactBytes()
public abstract ByteString getExactBytes()The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for exact. |
getIgnoreCase()
public abstract boolean getIgnoreCase() If true, indicates the exact/prefix/suffix/contains matching should be
case insensitive. For example, the matcher if set to true.data will match both
input string Data and data
bool ignore_case = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
The ignoreCase. |
getMatchPatternCase()
public abstract AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase getMatchPatternCase()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase |
|
getPrefix()
public abstract String getPrefix()The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
string prefix = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The prefix. |
getPrefixBytes()
public abstract ByteString getPrefixBytes()The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
string prefix = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for prefix. |
getSuffix()
public abstract String getSuffix()The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The suffix. |
getSuffixBytes()
public abstract ByteString getSuffixBytes()The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for suffix. |
hasContains()
public abstract boolean hasContains()The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
string contains = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contains field is set. |
hasExact()
public abstract boolean hasExact()The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the exact field is set. |
hasPrefix()
public abstract boolean hasPrefix()The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
string prefix = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the prefix field is set. |
hasSuffix()
public abstract boolean hasSuffix()The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
string suffix = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the suffix field is set. |