Class RuleSet.Builder (0.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.Rule>
Returns
TypeDescription
RuleSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRule
Returns
TypeDescription
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
NameDescription
builderForValueRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRule.Builder
Returns
TypeDescription
RuleSet.Builder

addRulesBuilder()

public Rule.Builder addRulesBuilder()

List of rules given by the customer.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Rule.Builder

build()

public RuleSet build()
Returns
TypeDescription
RuleSet

buildPartial()

public RuleSet buildPartial()
Returns
TypeDescription
RuleSet

clear()

public RuleSet.Builder clear()
Returns
TypeDescription
RuleSet.Builder
Overrides

clearDescription()

public RuleSet.Builder clearDescription()

Short description of the rule-set.

string description = 1;

Returns
TypeDescription
RuleSet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RuleSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RuleSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RuleSet.Builder
Overrides

clearRules()

public RuleSet.Builder clearRules()

List of rules given by the customer.

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

Returns
TypeDescription
RuleSet.Builder

clearSource()

public RuleSet.Builder clearSource()

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

string source = 2;

Returns
TypeDescription
RuleSet.Builder

This builder for chaining.

clone()

public RuleSet.Builder clone()
Returns
TypeDescription
RuleSet.Builder
Overrides

getDefaultInstanceForType()

public RuleSet getDefaultInstanceForType()
Returns
TypeDescription
RuleSet

getDescription()

public String getDescription()

Short description of the rule-set.

string description = 1;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the rule-set.

string description = 1;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Rule.Builder

getRulesBuilderList()

public List<Rule.Builder> getRulesBuilderList()

List of rules given by the customer.

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

Returns
TypeDescription
List<Builder>

getRulesCount()

public int getRulesCount()

List of rules given by the customer.

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

Returns
TypeDescription
int

getRulesList()

public List<Rule> getRulesList()

List of rules given by the customer.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RuleOrBuilder

getRulesOrBuilderList()

public List<? extends RuleOrBuilder> getRulesOrBuilderList()

List of rules given by the customer.

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

Returns
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.RuleOrBuilder>

getSource()

public String getSource()

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

string source = 2;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

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

string source = 2;

Returns
TypeDescription
ByteString

The bytes for source.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RuleSet other)

public RuleSet.Builder mergeFrom(RuleSet other)
Parameter
NameDescription
otherRuleSet
Returns
TypeDescription
RuleSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RuleSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RuleSet.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RuleSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RuleSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RuleSet.Builder

setDescription(String value)

public RuleSet.Builder setDescription(String value)

Short description of the rule-set.

string description = 1;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
RuleSet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RuleSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRule.Builder
Returns
TypeDescription
RuleSet.Builder

setSource(String value)

public RuleSet.Builder setSource(String value)

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

string source = 2;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
RuleSet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RuleSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RuleSet.Builder
Overrides