- 0.48.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RuleSet.BuilderImplements
RuleSetOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public RuleSet.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
RuleSet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
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;
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 |
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 |
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 |