public static final class RuleSet.Builder extends GeneratedMessageV3.Builder<RuleSet.Builder> implements RuleSetOrBuilderRepresents a set of rules from a single customer.
Protobuf type google.cloud.contentwarehouse.v1.RuleSet
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RuleSet.BuilderImplements
RuleSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllRules(Iterable<? extends Rule> values)
public RuleSet.Builder addAllRules(Iterable<? extends Rule> values)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| values | Iterable<? extends com.google.cloud.contentwarehouse.v1.Rule> |
| Type | Description |
| RuleSet.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| RuleSet.Builder |
addRules(Rule value)
public RuleSet.Builder addRules(Rule value)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| value | Rule |
| Type | Description |
| RuleSet.Builder |
addRules(Rule.Builder builderForValue)
public RuleSet.Builder addRules(Rule.Builder builderForValue)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| builderForValue | Rule.Builder |
| Type | Description |
| RuleSet.Builder |
addRules(int index, Rule value)
public RuleSet.Builder addRules(int index, Rule value)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| value | Rule |
| Type | Description |
| RuleSet.Builder |
addRules(int index, Rule.Builder builderForValue)
public RuleSet.Builder addRules(int index, Rule.Builder builderForValue)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| builderForValue | Rule.Builder |
| Type | Description |
| RuleSet.Builder |
addRulesBuilder()
public Rule.Builder addRulesBuilder()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| Rule.Builder |
addRulesBuilder(int index)
public Rule.Builder addRulesBuilder(int index)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| Type | Description |
| Rule.Builder |
build()
public RuleSet build()| Type | Description |
| RuleSet |
buildPartial()
public RuleSet buildPartial()| Type | Description |
| RuleSet |
clear()
public RuleSet.Builder clear()| Type | Description |
| RuleSet.Builder |
clearDescription()
public RuleSet.Builder clearDescription()Short description of the rule-set.
string description = 1;
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RuleSet.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| RuleSet.Builder |
clearName()
public RuleSet.Builder clearName()The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
string name = 6;
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| RuleSet.Builder |
clearRules()
public RuleSet.Builder clearRules()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| RuleSet.Builder |
clearSource()
public RuleSet.Builder clearSource()Source of the rules i.e., customer name.
string source = 2;
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
clone()
public RuleSet.Builder clone()| Type | Description |
| RuleSet.Builder |
getDefaultInstanceForType()
public RuleSet getDefaultInstanceForType()| Type | Description |
| RuleSet |
getDescription()
public String getDescription()Short description of the rule-set.
string description = 1;
| Type | Description |
| String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Short description of the rule-set.
string description = 1;
| Type | Description |
| ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getName()
public String getName()The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
string name = 6;
| Type | Description |
| String | The name. |
getNameBytes()
public ByteString getNameBytes()The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
string name = 6;
| Type | Description |
| ByteString | The bytes for name. |
getRules(int index)
public Rule getRules(int index)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| Type | Description |
| Rule |
getRulesBuilder(int index)
public Rule.Builder getRulesBuilder(int index)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| Type | Description |
| Rule.Builder |
getRulesBuilderList()
public List<Rule.Builder> getRulesBuilderList()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| List<Builder> |
getRulesCount()
public int getRulesCount()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| int |
getRulesList()
public List<Rule> getRulesList()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| List<Rule> |
getRulesOrBuilder(int index)
public RuleOrBuilder getRulesOrBuilder(int index)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| Type | Description |
| RuleOrBuilder |
getRulesOrBuilderList()
public List<? extends RuleOrBuilder> getRulesOrBuilderList()List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Type | Description |
| List<? extends com.google.cloud.contentwarehouse.v1.RuleOrBuilder> |
getSource()
public String getSource()Source of the rules i.e., customer name.
string source = 2;
| Type | Description |
| String | The source. |
getSourceBytes()
public ByteString getSourceBytes()Source of the rules i.e., customer name.
string source = 2;
| Type | Description |
| ByteString | The bytes for source. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(RuleSet other)
public RuleSet.Builder mergeFrom(RuleSet other)| Name | Description |
| other | RuleSet |
| Type | Description |
| RuleSet.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RuleSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| RuleSet.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public RuleSet.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| RuleSet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| RuleSet.Builder |
removeRules(int index)
public RuleSet.Builder removeRules(int index)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| Type | Description |
| RuleSet.Builder |
setDescription(String value)
public RuleSet.Builder setDescription(String value)Short description of the rule-set.
string description = 1;
| Name | Description |
| value | StringThe description to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public RuleSet.Builder setDescriptionBytes(ByteString value)Short description of the rule-set.
string description = 1;
| Name | Description |
| value | ByteStringThe bytes for description to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RuleSet.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| RuleSet.Builder |
setName(String value)
public RuleSet.Builder setName(String value)The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
string name = 6;
| Name | Description |
| value | StringThe name to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public RuleSet.Builder setNameBytes(ByteString value)The resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
string name = 6;
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RuleSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| RuleSet.Builder |
setRules(int index, Rule value)
public RuleSet.Builder setRules(int index, Rule value)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| value | Rule |
| Type | Description |
| RuleSet.Builder |
setRules(int index, Rule.Builder builderForValue)
public RuleSet.Builder setRules(int index, Rule.Builder builderForValue)List of rules given by the customer.
repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;
| Name | Description |
| index | int |
| builderForValue | Rule.Builder |
| Type | Description |
| RuleSet.Builder |
setSource(String value)
public RuleSet.Builder setSource(String value)Source of the rules i.e., customer name.
string source = 2;
| Name | Description |
| value | StringThe source to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setSourceBytes(ByteString value)
public RuleSet.Builder setSourceBytes(ByteString value)Source of the rules i.e., customer name.
string source = 2;
| Name | Description |
| value | ByteStringThe bytes for source to set. |
| Type | Description |
| RuleSet.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RuleSet.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| RuleSet.Builder |