Class Rule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
- com.google.cloud.contentwarehouse.v1.Rule.Builder
-
- All Implemented Interfaces:
RuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rule
public static final class Rule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder> implements RuleOrBuilder
Represents the rule for a content warehouse trigger.
Protobuf typegoogle.cloud.contentwarehouse.v1.Rule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.BuilderaddActions(int index, Action value)List of actions that are executed when the rule is satisfied.Rule.BuilderaddActions(int index, Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.Rule.BuilderaddActions(Action value)List of actions that are executed when the rule is satisfied.Rule.BuilderaddActions(Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.Action.BuilderaddActionsBuilder()List of actions that are executed when the rule is satisfied.Action.BuilderaddActionsBuilder(int index)List of actions that are executed when the rule is satisfied.Rule.BuilderaddAllActions(Iterable<? extends Action> values)List of actions that are executed when the rule is satisfied.Rule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Rulebuild()RulebuildPartial()Rule.Builderclear()Rule.BuilderclearActions()List of actions that are executed when the rule is satisfied.Rule.BuilderclearCondition()Represents the conditional expression to be evaluated.Rule.BuilderclearDescription()Short description of the rule and its context.Rule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Rule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Rule.BuilderclearRuleId()ID of the rule.Rule.BuilderclearTriggerType()Identifies the trigger type for running the policy.Rule.Builderclone()ActiongetActions(int index)List of actions that are executed when the rule is satisfied.Action.BuildergetActionsBuilder(int index)List of actions that are executed when the rule is satisfied.List<Action.Builder>getActionsBuilderList()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.RulegetDefaultInstanceForType()StringgetDescription()Short description of the rule and its context.com.google.protobuf.ByteStringgetDescriptionBytes()Short description of the rule and its context.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Rule.BuildermergeFrom(Rule other)Rule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Rule.BuildermergeFrom(com.google.protobuf.Message other)Rule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Rule.BuilderremoveActions(int index)List of actions that are executed when the rule is satisfied.Rule.BuildersetActions(int index, Action value)List of actions that are executed when the rule is satisfied.Rule.BuildersetActions(int index, Action.Builder builderForValue)List of actions that are executed when the rule is satisfied.Rule.BuildersetCondition(String value)Represents the conditional expression to be evaluated.Rule.BuildersetConditionBytes(com.google.protobuf.ByteString value)Represents the conditional expression to be evaluated.Rule.BuildersetDescription(String value)Short description of the rule and its context.Rule.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Short description of the rule and its context.Rule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Rule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Rule.BuildersetRuleId(String value)ID of the rule.Rule.BuildersetRuleIdBytes(com.google.protobuf.ByteString value)ID of the rule.Rule.BuildersetTriggerType(Rule.TriggerType value)Identifies the trigger type for running the policy.Rule.BuildersetTriggerTypeValue(int value)Identifies the trigger type for running the policy.Rule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clear
public Rule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
getDefaultInstanceForType
public Rule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Rule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Rule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Rule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
setField
public Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearField
public Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
clearOneof
public Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
setRepeatedField
public Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
addRepeatedField
public Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(Rule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeFrom
public Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.Builder>- Throws:
IOException
-
getDescription
public String getDescription()
Short description of the rule and its context.
string description = 1;- Specified by:
getDescriptionin interfaceRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Short description of the rule and its context.
string description = 1;- Specified by:
getDescriptionBytesin interfaceRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Rule.Builder setDescription(String value)
Short description of the rule and its context.
string description = 1;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Rule.Builder clearDescription()
Short description of the rule and its context.
string description = 1;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Rule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Short description of the rule and its context.
string description = 1;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRuleIdin interfaceRuleOrBuilder- Returns:
- The ruleId.
-
getRuleIdBytes
public 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;- Specified by:
getRuleIdBytesin interfaceRuleOrBuilder- Returns:
- The bytes for ruleId.
-
setRuleId
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;- Parameters:
value- The ruleId to set.- Returns:
- 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:
- This builder for chaining.
-
setRuleIdBytes
public Rule.Builder setRuleIdBytes(com.google.protobuf.ByteString value)
ID of the rule. It has to be unique across all the examples. This is managed internally.
string rule_id = 2;- Parameters:
value- The bytes for ruleId to set.- Returns:
- This builder for chaining.
-
getTriggerTypeValue
public int getTriggerTypeValue()
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Specified by:
getTriggerTypeValuein interfaceRuleOrBuilder- Returns:
- The enum numeric value on the wire for triggerType.
-
setTriggerTypeValue
public Rule.Builder setTriggerTypeValue(int value)
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Parameters:
value- The enum numeric value on the wire for triggerType to set.- Returns:
- This builder for chaining.
-
getTriggerType
public Rule.TriggerType getTriggerType()
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Specified by:
getTriggerTypein interfaceRuleOrBuilder- Returns:
- The triggerType.
-
setTriggerType
public Rule.Builder setTriggerType(Rule.TriggerType value)
Identifies the trigger type for running the policy.
.google.cloud.contentwarehouse.v1.Rule.TriggerType trigger_type = 3;- Parameters:
value- The triggerType to set.- Returns:
- 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:
- This builder for chaining.
-
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;- Specified by:
getConditionin interfaceRuleOrBuilder- Returns:
- The condition.
-
getConditionBytes
public 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;- Specified by:
getConditionBytesin interfaceRuleOrBuilder- Returns:
- The bytes for condition.
-
setCondition
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;- Parameters:
value- The condition to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setConditionBytes
public Rule.Builder setConditionBytes(com.google.protobuf.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;- Parameters:
value- The bytes for condition to set.- Returns:
- This builder for chaining.
-
getActionsList
public List<Action> getActionsList()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;- Specified by:
getActionsListin interfaceRuleOrBuilder
-
getActionsCount
public int getActionsCount()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;- Specified by:
getActionsCountin interfaceRuleOrBuilder
-
getActions
public Action getActions(int index)
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;- Specified by:
getActionsin interfaceRuleOrBuilder
-
setActions
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;
-
setActions
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;
-
addActions
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;
-
addActions
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;
-
addActions
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;
-
addActions
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;
-
addAllActions
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;
-
clearActions
public Rule.Builder clearActions()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
removeActions
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;
-
getActionsBuilder
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;
-
getActionsOrBuilder
public ActionOrBuilder getActionsOrBuilder(int index)
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;- Specified by:
getActionsOrBuilderin interfaceRuleOrBuilder
-
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;- Specified by:
getActionsOrBuilderListin interfaceRuleOrBuilder
-
addActionsBuilder
public Action.Builder addActionsBuilder()
List of actions that are executed when the rule is satisfied.
repeated .google.cloud.contentwarehouse.v1.Action actions = 5;
-
addActionsBuilder
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;
-
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;
-
setUnknownFields
public final Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
mergeUnknownFields
public final Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.Builder>
-
-