public static final class AuthzPolicy.AuthzRule.StringMatch.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.StringMatch.Builder> implements AuthzPolicy.AuthzRule.StringMatchOrBuilderDetermines how a string value should be matched.
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthzPolicy.AuthzRule.StringMatch.BuilderImplements
AuthzPolicy.AuthzRule.StringMatchOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AuthzPolicy.AuthzRule.StringMatch build()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch |
|
buildPartial()
public AuthzPolicy.AuthzRule.StringMatch buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch |
|
clear()
public AuthzPolicy.AuthzRule.StringMatch.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
clearContains()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearContains()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 |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
clearExact()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearExact()The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
clearIgnoreCase()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearIgnoreCase() 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 |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
clearMatchPattern()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearMatchPattern()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
clearPrefix()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearPrefix()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 |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
clearSuffix()
public AuthzPolicy.AuthzRule.StringMatch.Builder clearSuffix()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 |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
getContains()
public 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 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. |
getDefaultInstanceForType()
public AuthzPolicy.AuthzRule.StringMatch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExact()
public 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 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 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 AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase getMatchPatternCase()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.MatchPatternCase |
|
getPrefix()
public 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 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 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 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 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 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthzPolicy.AuthzRule.StringMatch other)
public AuthzPolicy.AuthzRule.StringMatch.Builder mergeFrom(AuthzPolicy.AuthzRule.StringMatch other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthzPolicy.AuthzRule.StringMatch |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthzPolicy.AuthzRule.StringMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthzPolicy.AuthzRule.StringMatch.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
setContains(String value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setContains(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contains to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setContainsBytes(ByteString value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setContainsBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contains to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setExact(String value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setExact(String value)The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe exact to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setExactBytes(ByteString value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setExactBytes(ByteString value)The input string must match exactly the string specified here.
Examples:
.abconly matches the valueabc
string exact = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for exact to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setIgnoreCase(boolean value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setIgnoreCase(boolean value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe ignoreCase to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setPrefix(String value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setPrefix(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe prefix to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setPrefixBytes(ByteString value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setPrefixBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for prefix to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setSuffix(String value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setSuffix(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe suffix to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |
setSuffixBytes(ByteString value)
public AuthzPolicy.AuthzRule.StringMatch.Builder setSuffixBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for suffix to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
This builder for chaining. |