public static final class Rule.Builder extends GeneratedMessageV3.Builder<Rule.Builder> implements RuleOrBuilder
A rule of the cloud control.
Protobuf type google.cloud.cloudsecuritycompliance.v1.Rule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Rule.BuilderImplements
RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllRuleActionTypes(Iterable<? extends RuleActionType> values)
public Rule.Builder addAllRuleActionTypes(Iterable<? extends RuleActionType> values)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.cloudsecuritycompliance.v1.RuleActionType> The ruleActionTypes to add. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
addAllRuleActionTypesValue(Iterable<Integer> values)
public Rule.Builder addAllRuleActionTypesValue(Iterable<Integer> values)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for ruleActionTypes to add. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Rule.Builder |
addRuleActionTypes(RuleActionType value)
public Rule.Builder addRuleActionTypes(RuleActionType value)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
RuleActionType The ruleActionTypes to add. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
addRuleActionTypesValue(int value)
public Rule.Builder addRuleActionTypesValue(int value)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for ruleActionTypes to add. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
build()
public Rule build()
Returns | |
---|---|
Type | Description |
Rule |
buildPartial()
public Rule buildPartial()
Returns | |
---|---|
Type | Description |
Rule |
clear()
public Rule.Builder clear()
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearCelExpression()
public Rule.Builder clearCelExpression()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearDescription()
public Rule.Builder clearDescription()
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Rule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearImplementation()
public Rule.Builder clearImplementation()
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Rule.Builder |
clearRuleActionTypes()
public Rule.Builder clearRuleActionTypes()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
clone()
public Rule.Builder clone()
Returns | |
---|---|
Type | Description |
Rule.Builder |
getCelExpression()
public CELExpression getCelExpression()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns | |
---|---|
Type | Description |
CELExpression |
The celExpression. |
getCelExpressionBuilder()
public CELExpression.Builder getCelExpressionBuilder()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns | |
---|---|
Type | Description |
CELExpression.Builder |
getCelExpressionOrBuilder()
public CELExpressionOrBuilder getCelExpressionOrBuilder()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns | |
---|---|
Type | Description |
CELExpressionOrBuilder |
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Rule |
getDescription()
public String getDescription()
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getImplementationCase()
public Rule.ImplementationCase getImplementationCase()
Returns | |
---|---|
Type | Description |
Rule.ImplementationCase |
getRuleActionTypes(int index)
public RuleActionType getRuleActionTypes(int index)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
RuleActionType |
The ruleActionTypes at the given index. |
getRuleActionTypesCount()
public int getRuleActionTypesCount()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The count of ruleActionTypes. |
getRuleActionTypesList()
public List<RuleActionType> getRuleActionTypesList()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<RuleActionType> |
A list containing the ruleActionTypes. |
getRuleActionTypesValue(int index)
public int getRuleActionTypesValue(int index)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire of ruleActionTypes at the given index. |
getRuleActionTypesValueList()
public List<Integer> getRuleActionTypesValueList()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for ruleActionTypes. |
hasCelExpression()
public boolean hasCelExpression()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the celExpression field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCelExpression(CELExpression value)
public Rule.Builder mergeCelExpression(CELExpression value)
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Parameter | |
---|---|
Name | Description |
value |
CELExpression |
Returns | |
---|---|
Type | Description |
Rule.Builder |
mergeFrom(Rule other)
public Rule.Builder mergeFrom(Rule other)
Parameter | |
---|---|
Name | Description |
other |
Rule |
Returns | |
---|---|
Type | Description |
Rule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Rule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Rule.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Rule.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Rule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setCelExpression(CELExpression value)
public Rule.Builder setCelExpression(CELExpression value)
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Parameter | |
---|---|
Name | Description |
value |
CELExpression |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setCelExpression(CELExpression.Builder builderForValue)
public Rule.Builder setCelExpression(CELExpression.Builder builderForValue)
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
CELExpression.Builder |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setDescription(String value)
public Rule.Builder setDescription(String value)
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Rule.Builder setDescriptionBytes(ByteString value)
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Rule.Builder |
setRuleActionTypes(int index, RuleActionType value)
public Rule.Builder setRuleActionTypes(int index, RuleActionType value)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
RuleActionType The ruleActionTypes to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setRuleActionTypesValue(int index, int value)
public Rule.Builder setRuleActionTypesValue(int index, int value)
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for ruleActionTypes to set. |
Returns | |
---|---|
Type | Description |
Rule.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Rule.Builder |