public static final class Rule.Builder extends GeneratedMessage.Builder<Rule.Builder> implements RuleOrBuilderA rule to be evaluated.
Protobuf type google.cloud.workloadmanager.v1.Rule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Rule.BuilderImplements
RuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTags(Iterable<String> values)
public Rule.Builder addAllTags(Iterable<String> values)List of user-defined tags.
repeated string tags = 11;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The tags to add. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
addTags(String value)
public Rule.Builder addTags(String value)List of user-defined tags.
repeated string tags = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tags to add. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
addTagsBytes(ByteString value)
public Rule.Builder addTagsBytes(ByteString value)List of user-defined tags.
repeated string tags = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the tags 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 |
|
clearAssetType()
public Rule.Builder clearAssetType()The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string asset_type = 13;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearDescription()
public Rule.Builder clearDescription()Describe rule in plain language.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearDisplayName()
public Rule.Builder clearDisplayName()The name display in UI.
string display_name = 3;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearErrorMessage()
public Rule.Builder clearErrorMessage()The message template for rule.
string error_message = 8;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearName()
public Rule.Builder clearName()Rule name.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearPrimaryCategory()
public Rule.Builder clearPrimaryCategory()The primary category.
string primary_category = 6;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearRemediation()
public Rule.Builder clearRemediation()The remediation for the rule.
string remediation = 10;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearRevisionId()
public Rule.Builder clearRevisionId()Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearRuleType()
public Rule.Builder clearRuleType()The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearSecondaryCategory()
public Rule.Builder clearSecondaryCategory()The secondary category.
string secondary_category = 7;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearSeverity()
public Rule.Builder clearSeverity()The severity of the rule.
string severity = 5;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearTags()
public Rule.Builder clearTags()List of user-defined tags.
repeated string tags = 11;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
clearUri()
public Rule.Builder clearUri()The document url for the rule.
string uri = 9;
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
getAssetType()
public String getAssetType()The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string asset_type = 13;
| Returns | |
|---|---|
| Type | Description |
String |
The assetType. |
getAssetTypeBytes()
public ByteString getAssetTypeBytes()The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string asset_type = 13;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for assetType. |
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Rule |
|
getDescription()
public String getDescription()Describe rule in plain language.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Describe rule in plain language.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()The name display in UI.
string display_name = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()The name display in UI.
string display_name = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getErrorMessage()
public String getErrorMessage()The message template for rule.
string error_message = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The errorMessage. |
getErrorMessageBytes()
public ByteString getErrorMessageBytes()The message template for rule.
string error_message = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for errorMessage. |
getName()
public String getName()Rule name.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Rule name.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPrimaryCategory()
public String getPrimaryCategory()The primary category.
string primary_category = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The primaryCategory. |
getPrimaryCategoryBytes()
public ByteString getPrimaryCategoryBytes()The primary category.
string primary_category = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for primaryCategory. |
getRemediation()
public String getRemediation()The remediation for the rule.
string remediation = 10;
| Returns | |
|---|---|
| Type | Description |
String |
The remediation. |
getRemediationBytes()
public ByteString getRemediationBytes()The remediation for the rule.
string remediation = 10;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for remediation. |
getRevisionId()
public String getRevisionId()Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The revisionId. |
getRevisionIdBytes()
public ByteString getRevisionIdBytes()Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revisionId. |
getRuleType()
public Rule.RuleType getRuleType()The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
| Returns | |
|---|---|
| Type | Description |
Rule.RuleType |
The ruleType. |
getRuleTypeValue()
public int getRuleTypeValue()The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for ruleType. |
getSecondaryCategory()
public String getSecondaryCategory()The secondary category.
string secondary_category = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The secondaryCategory. |
getSecondaryCategoryBytes()
public ByteString getSecondaryCategoryBytes()The secondary category.
string secondary_category = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for secondaryCategory. |
getSeverity()
public String getSeverity()The severity of the rule.
string severity = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The severity. |
getSeverityBytes()
public ByteString getSeverityBytes()The severity of the rule.
string severity = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for severity. |
getTags(int index)
public String getTags(int index)List of user-defined tags.
repeated string tags = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The tags at the given index. |
getTagsBytes(int index)
public ByteString getTagsBytes(int index)List of user-defined tags.
repeated string tags = 11;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the tags at the given index. |
getTagsCount()
public int getTagsCount()List of user-defined tags.
repeated string tags = 11;
| Returns | |
|---|---|
| Type | Description |
int |
The count of tags. |
getTagsList()
public ProtocolStringList getTagsList()List of user-defined tags.
repeated string tags = 11;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the tags. |
getUri()
public String getUri()The document url for the rule.
string uri = 9;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes()The document url for the rule.
string uri = 9;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
setAssetType(String value)
public Rule.Builder setAssetType(String value)The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string asset_type = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe assetType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setAssetTypeBytes(ByteString value)
public Rule.Builder setAssetTypeBytes(ByteString value)The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
string asset_type = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for assetType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDescription(String value)
public Rule.Builder setDescription(String value)Describe rule in plain language.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Rule.Builder setDescriptionBytes(ByteString value)Describe rule in plain language.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDisplayName(String value)
public Rule.Builder setDisplayName(String value)The name display in UI.
string display_name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Rule.Builder setDisplayNameBytes(ByteString value)The name display in UI.
string display_name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setErrorMessage(String value)
public Rule.Builder setErrorMessage(String value)The message template for rule.
string error_message = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe errorMessage to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setErrorMessageBytes(ByteString value)
public Rule.Builder setErrorMessageBytes(ByteString value)The message template for rule.
string error_message = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for errorMessage to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setName(String value)
public Rule.Builder setName(String value)Rule name.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Rule.Builder setNameBytes(ByteString value)Rule name.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setPrimaryCategory(String value)
public Rule.Builder setPrimaryCategory(String value)The primary category.
string primary_category = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe primaryCategory to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setPrimaryCategoryBytes(ByteString value)
public Rule.Builder setPrimaryCategoryBytes(ByteString value)The primary category.
string primary_category = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for primaryCategory to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRemediation(String value)
public Rule.Builder setRemediation(String value)The remediation for the rule.
string remediation = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe remediation to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRemediationBytes(ByteString value)
public Rule.Builder setRemediationBytes(ByteString value)The remediation for the rule.
string remediation = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for remediation to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRevisionId(String value)
public Rule.Builder setRevisionId(String value)Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe revisionId to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRevisionIdBytes(ByteString value)
public Rule.Builder setRevisionIdBytes(ByteString value)Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for revisionId to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRuleType(Rule.RuleType value)
public Rule.Builder setRuleType(Rule.RuleType value)The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
Rule.RuleTypeThe ruleType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setRuleTypeValue(int value)
public Rule.Builder setRuleTypeValue(int value)The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for ruleType to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setSecondaryCategory(String value)
public Rule.Builder setSecondaryCategory(String value)The secondary category.
string secondary_category = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe secondaryCategory to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setSecondaryCategoryBytes(ByteString value)
public Rule.Builder setSecondaryCategoryBytes(ByteString value)The secondary category.
string secondary_category = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for secondaryCategory to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setSeverity(String value)
public Rule.Builder setSeverity(String value)The severity of the rule.
string severity = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe severity to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setSeverityBytes(ByteString value)
public Rule.Builder setSeverityBytes(ByteString value)The severity of the rule.
string severity = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for severity to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setTags(int index, String value)
public Rule.Builder setTags(int index, String value)List of user-defined tags.
repeated string tags = 11;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe tags to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setUri(String value)
public Rule.Builder setUri(String value)The document url for the rule.
string uri = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public Rule.Builder setUriBytes(ByteString value)The document url for the rule.
string uri = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
Rule.Builder |
This builder for chaining. |