Interface RuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule,Rule.Builder
public interface RuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActiongetActions(int index)List of actions that are executed when the rule is satisfied.intgetActionsCount()List of actions that are executed when the rule is satisfied.List<Action>getActionsList()List of actions that are executed when the rule is satisfied.ActionOrBuildergetActionsOrBuilder(int index)List of actions that are executed when the rule is satisfied.List<? extends ActionOrBuilder>getActionsOrBuilderList()List of actions that are executed when the rule is satisfied.StringgetCondition()Represents the conditional expression to be evaluated.com.google.protobuf.ByteStringgetConditionBytes()Represents the conditional expression to be evaluated.StringgetDescription()Short description of the rule and its context.com.google.protobuf.ByteStringgetDescriptionBytes()Short description of the rule and its context.StringgetRuleId()ID of the rule.com.google.protobuf.ByteStringgetRuleIdBytes()ID of the rule.Rule.TriggerTypegetTriggerType()Identifies the trigger type for running the policy.intgetTriggerTypeValue()Identifies the trigger type for running the policy.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescription
String getDescription()
Short description of the rule and its context.
string description = 1;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Short description of the rule and its context.
string description = 1;- Returns:
- The bytes for description.
-
getRuleId
String getRuleId()
ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;- Returns:
- The ruleId.
-
getRuleIdBytes
com.google.protobuf.ByteString getRuleIdBytes()
ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;- Returns:
- The bytes for ruleId.
-
getTriggerTypeValue
int getTriggerTypeValue()
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Returns:
- The enum numeric value on the wire for triggerType.
-
getTriggerType
Rule.TriggerType getTriggerType()
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Returns:
- The triggerType.
-
getCondition
String getCondition()
Represents the conditional expression to be evaluated. Expression should evaluate to a boolean result. When the condition is true actions are executed. Example: user_role = "hsbc_role_1" AND doc.salary > 20000
string condition = 4;- Returns:
- The condition.
-
getConditionBytes
com.google.protobuf.ByteString getConditionBytes()
Represents the conditional expression to be evaluated. Expression should evaluate to a boolean result. When the condition is true actions are executed. Example: user_role = "hsbc_role_1" AND doc.salary > 20000
string condition = 4;- Returns:
- The bytes for condition.
-
getActionsList
List<Action> getActionsList()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
getActions
Action getActions(int index)
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
getActionsCount
int getActionsCount()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
getActionsOrBuilderList
List<? extends ActionOrBuilder> getActionsOrBuilderList()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
getActionsOrBuilder
ActionOrBuilder getActionsOrBuilder(int index)
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
-