public static final class Rule.Builder extends GeneratedMessage.Builder<Rule.Builder> implements RuleOrBuilderRepresents the rule for a content warehouse trigger.
Protobuf type google.cloud.contentwarehouse.v1.Rule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Rule.BuilderImplements
RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addActions(Action value)
public Rule.Builder addActions(Action value)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
addActions(Action.Builder builderForValue)
public Rule.Builder addActions(Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Action.Builder |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
addActions(int index, Action value)
public Rule.Builder addActions(int index, Action value)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
addActions(int index, Action.Builder builderForValue)
public Rule.Builder addActions(int index, Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Action.Builder |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
addActionsBuilder()
public Action.Builder addActionsBuilder()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
Action.Builder |
|
addActionsBuilder(int index)
public Action.Builder addActionsBuilder(int index)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Action.Builder |
|
addAllActions(Iterable<? extends Action> values)
public Rule.Builder addAllActions(Iterable<? extends Action> values)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.contentwarehouse.v1.Action> |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
build()
public Rule build()| Returns | |
|---|---|
| Type | Description |
Rule |
|
buildPartial()
public Rule buildPartial()| Returns | |
|---|---|
| Type | Description |
Rule |
|
clear()
public Rule.Builder clear()| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
clearActions()
public Rule.Builder clearActions()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
clearCondition()
public Rule.Builder clearCondition()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 | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearDescription()
public Rule.Builder clearDescription()Short description of the rule and its context.
string description = 1;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearRuleId()
public Rule.Builder clearRuleId()ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearTriggerType()
public Rule.Builder clearTriggerType()Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
getActions(int index)
public Action getActions(int index)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Action |
|
getActionsBuilder(int index)
public Action.Builder getActionsBuilder(int index)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Action.Builder |
|
getActionsBuilderList()
public List<Action.Builder> getActionsBuilderList()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getActionsCount()
public int getActionsCount()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
int |
|
getActionsList()
public List<Action> getActionsList()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
List<Action> |
|
getActionsOrBuilder(int index)
public ActionOrBuilder getActionsOrBuilder(int index)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ActionOrBuilder |
|
getActionsOrBuilderList()
public List<? extends ActionOrBuilder> getActionsOrBuilderList()List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.contentwarehouse.v1.ActionOrBuilder> |
|
getCondition()
public 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 | |
|---|---|
| Type | Description |
String |
The condition. |
getConditionBytes()
public 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for condition. |
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Rule |
|
getDescription()
public String getDescription()Short description of the rule and its context.
string description = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Short description of the rule and its context.
string description = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRuleId()
public String getRuleId()ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The ruleId. |
getRuleIdBytes()
public ByteString getRuleIdBytes()ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ruleId. |
getTriggerType()
public Rule.TriggerType getTriggerType()Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;
| Returns | |
|---|---|
| Type | Description |
Rule.TriggerType |
The triggerType. |
getTriggerTypeValue()
public int getTriggerTypeValue()Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for triggerType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Rule other)
public Rule.Builder mergeFrom(Rule other)| Parameter | |
|---|---|
| Name | Description |
other |
Rule |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Rule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
removeActions(int index)
public Rule.Builder removeActions(int index)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
setActions(int index, Action value)
public Rule.Builder setActions(int index, Action value)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Action |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
setActions(int index, Action.Builder builderForValue)
public Rule.Builder setActions(int index, Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Action.Builder |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
|
setCondition(String value)
public Rule.Builder setCondition(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe condition to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setConditionBytes(ByteString value)
public Rule.Builder setConditionBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for condition to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDescription(String value)
public Rule.Builder setDescription(String value)Short description of the rule and its context.
string description = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Rule.Builder setDescriptionBytes(ByteString value)Short description of the rule and its context.
string description = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRuleId(String value)
public Rule.Builder setRuleId(String value)ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ruleId to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRuleIdBytes(ByteString value)
public Rule.Builder setRuleIdBytes(ByteString value)ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ruleId to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setTriggerType(Rule.TriggerType value)
public Rule.Builder setTriggerType(Rule.TriggerType value)Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Rule.TriggerTypeThe triggerType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setTriggerTypeValue(int value)
public Rule.Builder setTriggerTypeValue(int value)Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for triggerType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |