Interface ExclusionRuleOrBuilder (0.44.0)

public interface ExclusionRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDictionary()

public abstract Dictionary getDictionary()

Dictionary which defines the rule.

.google.cloud.modelarmor.v1.Dictionary dictionary = 1;

Returns
Type Description
Dictionary

The dictionary.

getDictionaryOrBuilder()

public abstract DictionaryOrBuilder getDictionaryOrBuilder()

Dictionary which defines the rule.

.google.cloud.modelarmor.v1.Dictionary dictionary = 1;

Returns
Type Description
DictionaryOrBuilder

getMatchingScope()

public abstract MatchingScope getMatchingScope()

Optional. Specifies the scope of the input that should be matched against the exclusion rule. If unspecified, defaults to MATCHING_SCOPE_PARTIAL_MATCH.

optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MatchingScope

The matchingScope.

getMatchingScopeValue()

public abstract int getMatchingScopeValue()

Optional. Specifies the scope of the input that should be matched against the exclusion rule. If unspecified, defaults to MATCHING_SCOPE_PARTIAL_MATCH.

optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for matchingScope.

getRegex()

public abstract Regex getRegex()

Regular expression which defines the rule.

.google.cloud.modelarmor.v1.Regex regex = 2;

Returns
Type Description
Regex

The regex.

getRegexOrBuilder()

public abstract RegexOrBuilder getRegexOrBuilder()

Regular expression which defines the rule.

.google.cloud.modelarmor.v1.Regex regex = 2;

Returns
Type Description
RegexOrBuilder

getTypeCase()

public abstract ExclusionRule.TypeCase getTypeCase()
Returns
Type Description
ExclusionRule.TypeCase

hasDictionary()

public abstract boolean hasDictionary()

Dictionary which defines the rule.

.google.cloud.modelarmor.v1.Dictionary dictionary = 1;

Returns
Type Description
boolean

Whether the dictionary field is set.

hasMatchingScope()

public abstract boolean hasMatchingScope()

Optional. Specifies the scope of the input that should be matched against the exclusion rule. If unspecified, defaults to MATCHING_SCOPE_PARTIAL_MATCH.

optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the matchingScope field is set.

hasRegex()

public abstract boolean hasRegex()

Regular expression which defines the rule.

.google.cloud.modelarmor.v1.Regex regex = 2;

Returns
Type Description
boolean

Whether the regex field is set.