- 0.50.0 (latest)
- 0.49.0
- 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()
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 |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
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. |
clearField(Descriptors.FieldDescriptor field)
public Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
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;
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. |
clone()
public Rule.Builder clone()
Returns | |
---|---|
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;
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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 |
String The 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 |
ByteString The 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 |
String The 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 |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The 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 |
ByteString The 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.TriggerType The 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 |
int The enum numeric value on the wire for triggerType to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Rule.Builder |