Class RuleSet.Builder (0.49.0)

public static final class RuleSet.Builder extends GeneratedMessageV3.Builder<RuleSet.Builder> implements RuleSetOrBuilder

Represents a set of rules from a single customer.

Protobuf type google.cloud.contentwarehouse.v1.RuleSet

Implements

RuleSetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contentwarehouse.v1.Rule>
Returns
Type Description
RuleSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RuleSet.Builder
Overrides

addRules(Rule value)

public RuleSet.Builder addRules(Rule value)

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Parameter
Name Description
value Rule
Returns
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;

Parameter
Name Description
builderForValue Rule.Builder
Returns
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;

Parameters
Name Description
index int
value Rule
Returns
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;

Parameters
Name Description
index int
builderForValue Rule.Builder
Returns
Type Description
RuleSet.Builder

addRulesBuilder()

public Rule.Builder addRulesBuilder()

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Returns
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;

Parameter
Name Description
index int
Returns
Type Description
Rule.Builder

build()

public RuleSet build()
Returns
Type Description
RuleSet

buildPartial()

public RuleSet buildPartial()
Returns
Type Description
RuleSet

clear()

public RuleSet.Builder clear()
Returns
Type Description
RuleSet.Builder
Overrides

clearDescription()

public RuleSet.Builder clearDescription()

Short description of the rule-set.

string description = 1;

Returns
Type Description
RuleSet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RuleSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RuleSet.Builder
Overrides

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;

Returns
Type Description
RuleSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RuleSet.Builder
Overrides

clearRules()

public RuleSet.Builder clearRules()

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Returns
Type Description
RuleSet.Builder

clearSource()

public RuleSet.Builder clearSource()

Source of the rules i.e., customer name.

string source = 2;

Returns
Type Description
RuleSet.Builder

This builder for chaining.

clone()

public RuleSet.Builder clone()
Returns
Type Description
RuleSet.Builder
Overrides

getDefaultInstanceForType()

public RuleSet getDefaultInstanceForType()
Returns
Type Description
RuleSet

getDescription()

public String getDescription()

Short description of the rule-set.

string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the rule-set.

string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
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;

Returns
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;

Parameter
Name Description
index int
Returns
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;

Parameter
Name Description
index int
Returns
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;

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Returns
Type Description
int

getRulesList()

public List<Rule> getRulesList()

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Returns
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;

Parameter
Name Description
index int
Returns
Type Description
RuleOrBuilder

getRulesOrBuilderList()

public List<? extends RuleOrBuilder> getRulesOrBuilderList()

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Returns
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;

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Source of the rules i.e., customer name.

string source = 2;

Returns
Type Description
ByteString

The bytes for source.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RuleSet other)

public RuleSet.Builder mergeFrom(RuleSet other)
Parameter
Name Description
other RuleSet
Returns
Type Description
RuleSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RuleSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RuleSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RuleSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RuleSet.Builder
Overrides

removeRules(int index)

public RuleSet.Builder removeRules(int index)

List of rules given by the customer.

repeated .google.cloud.contentwarehouse.v1.Rule rules = 3;

Parameter
Name Description
index int
Returns
Type Description
RuleSet.Builder

setDescription(String value)

public RuleSet.Builder setDescription(String value)

Short description of the rule-set.

string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
RuleSet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RuleSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RuleSet.Builder
Overrides

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;

Parameter
Name Description
value String

The name to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RuleSet.Builder
Overrides

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;

Parameters
Name Description
index int
value Rule
Returns
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;

Parameters
Name Description
index int
builderForValue Rule.Builder
Returns
Type Description
RuleSet.Builder

setSource(String value)

public RuleSet.Builder setSource(String value)

Source of the rules i.e., customer name.

string source = 2;

Parameter
Name Description
value String

The source to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
RuleSet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RuleSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RuleSet.Builder
Overrides