public static interface ContentPolicy.PolicyRuleOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAction()
public abstract ContentPolicy.PolicyAction getAction()Required. Action to take if this rule applies.
.google.privacy.dlp.v2.ContentPolicy.PolicyAction action = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
The action. |
getActionOrBuilder()
public abstract ContentPolicy.PolicyActionOrBuilder getActionOrBuilder()Required. Action to take if this rule applies.
.google.privacy.dlp.v2.ContentPolicy.PolicyAction action = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyActionOrBuilder |
|
getConditions(int index)
public abstract ContentPolicy.PolicyRule.PolicyCondition getConditions(int index) Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition conditions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyRule.PolicyCondition |
|
getConditionsCount()
public abstract int getConditionsCount() Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition conditions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getConditionsList()
public abstract List<ContentPolicy.PolicyRule.PolicyCondition> getConditionsList() Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition conditions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<PolicyCondition> |
|
getConditionsOrBuilder(int index)
public abstract ContentPolicy.PolicyRule.PolicyConditionOrBuilder getConditionsOrBuilder(int index) Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition conditions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyRule.PolicyConditionOrBuilder |
|
getConditionsOrBuilderList()
public abstract List<? extends ContentPolicy.PolicyRule.PolicyConditionOrBuilder> getConditionsOrBuilderList() Optional. Conditions that must match for this rule to apply.
All conditions must match (AND). For OR conditions, use multiple
rules.
repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition conditions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyConditionOrBuilder> |
|
hasAction()
public abstract boolean hasAction()Required. Action to take if this rule applies.
.google.privacy.dlp.v2.ContentPolicy.PolicyAction action = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the action field is set. |