- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class Rule.Builder extends GeneratedMessageV3.Builder<Rule.Builder> implements RuleOrBuilder
Represents the rule for a content warehouse trigger.
Protobuf type google.cloud.contentwarehouse.v1.Rule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Rule.BuilderImplements
RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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;
Name | Description |
value | Action |
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;
Name | Description |
builderForValue | Action.Builder |
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;
Name | Description |
index | int |
value | Action |
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;
Name | Description |
index | int |
builderForValue | Action.Builder |
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;
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;
Name | Description |
index | int |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.contentwarehouse.v1.Action> |
Type | Description |
Rule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Rule.Builder |
build()
public Rule build()
Type | Description |
Rule |
buildPartial()
public Rule buildPartial()
Type | Description |
Rule |
clear()
public Rule.Builder clear()
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;
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;
Type | Description |
Rule.Builder | This builder for chaining. |
clearDescription()
public Rule.Builder clearDescription()
Short description of the rule and its context.
string description = 1;
Type | Description |
Rule.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Rule.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Rule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Rule.Builder |
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;
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;
Type | Description |
Rule.Builder | This builder for chaining. |
clone()
public Rule.Builder clone()
Type | Description |
Rule.Builder |
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;
Name | Description |
index | int |
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;
Name | Description |
index | int |
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;
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;
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;
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;
Name | Description |
index | int |
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;
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;
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;
Type | Description |
ByteString | The bytes for condition. |
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()
Type | Description |
Rule |
getDescription()
public String getDescription()
Short description of the rule and its context.
string description = 1;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Short description of the rule and its context.
string description = 1;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
Type | Description |
int | The enum numeric value on the wire for triggerType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Rule other)
public Rule.Builder mergeFrom(Rule other)
Name | Description |
other | Rule |
Type | Description |
Rule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Rule.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Rule.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Rule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
index | int |
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;
Name | Description |
index | int |
value | Action |
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;
Name | Description |
index | int |
builderForValue | Action.Builder |
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;
Name | Description |
value | String The condition to set. |
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;
Name | Description |
value | ByteString The bytes for condition to set. |
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;
Name | Description |
value | String The description to set. |
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;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Rule.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Rule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Rule.Builder |
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;
Name | Description |
value | String The ruleId to set. |
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;
Name | Description |
value | ByteString The bytes for ruleId to set. |
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;
Name | Description |
value | Rule.TriggerType The triggerType to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for triggerType to set. |
Type | Description |
Rule.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Rule.Builder |