Interface RuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule,Rule.Builder
@Generated
public interface RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.com.google.protobuf.ByteStringThe CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.Describe rule in plain language.com.google.protobuf.ByteStringDescribe rule in plain language.The name display in UI.com.google.protobuf.ByteStringThe name display in UI.The message template for rule.com.google.protobuf.ByteStringThe message template for rule.getName()Rule name.com.google.protobuf.ByteStringRule name.The primary category.com.google.protobuf.ByteStringThe primary category.The remediation for the rule.com.google.protobuf.ByteStringThe remediation for the rule.Output only.com.google.protobuf.ByteStringOutput only.The type of the rule.intThe type of the rule.The secondary category.com.google.protobuf.ByteStringThe secondary category.The severity of the rule.com.google.protobuf.ByteStringThe severity of the rule.getTags(int index) List of user-defined tags.com.google.protobuf.ByteStringgetTagsBytes(int index) List of user-defined tags.intList of user-defined tags.List of user-defined tags.getUri()The document url for the rule.com.google.protobuf.ByteStringThe document url for the rule.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Rule name.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Rule name.
string name = 1;- Returns:
- The bytes for name.
-
getRevisionId
String getRevisionId()Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The revisionId.
-
getRevisionIdBytes
com.google.protobuf.ByteString getRevisionIdBytes()Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for revisionId.
-
getDisplayName
String getDisplayName()The name display in UI.
string display_name = 3;- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()The name display in UI.
string display_name = 3;- Returns:
- The bytes for displayName.
-
getDescription
String getDescription()Describe rule in plain language.
string description = 4;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Describe rule in plain language.
string description = 4;- Returns:
- The bytes for description.
-
getSeverity
String getSeverity()The severity of the rule.
string severity = 5;- Returns:
- The severity.
-
getSeverityBytes
com.google.protobuf.ByteString getSeverityBytes()The severity of the rule.
string severity = 5;- Returns:
- The bytes for severity.
-
getPrimaryCategory
String getPrimaryCategory()The primary category.
string primary_category = 6;- Returns:
- The primaryCategory.
-
getPrimaryCategoryBytes
com.google.protobuf.ByteString getPrimaryCategoryBytes()The primary category.
string primary_category = 6;- Returns:
- The bytes for primaryCategory.
-
getSecondaryCategory
String getSecondaryCategory()The secondary category.
string secondary_category = 7;- Returns:
- The secondaryCategory.
-
getSecondaryCategoryBytes
com.google.protobuf.ByteString getSecondaryCategoryBytes()The secondary category.
string secondary_category = 7;- Returns:
- The bytes for secondaryCategory.
-
getErrorMessage
String getErrorMessage()The message template for rule.
string error_message = 8;- Returns:
- The errorMessage.
-
getErrorMessageBytes
com.google.protobuf.ByteString getErrorMessageBytes()The message template for rule.
string error_message = 8;- Returns:
- The bytes for errorMessage.
-
getUri
String getUri()The document url for the rule.
string uri = 9;- Returns:
- The uri.
-
getUriBytes
com.google.protobuf.ByteString getUriBytes()The document url for the rule.
string uri = 9;- Returns:
- The bytes for uri.
-
getRemediation
String getRemediation()The remediation for the rule.
string remediation = 10;- Returns:
- The remediation.
-
getRemediationBytes
com.google.protobuf.ByteString getRemediationBytes()The remediation for the rule.
string remediation = 10;- Returns:
- The bytes for remediation.
-
getTagsList
List of user-defined tags.
repeated string tags = 11;- Returns:
- A list containing the tags.
-
getTagsCount
int getTagsCount()List of user-defined tags.
repeated string tags = 11;- Returns:
- The count of tags.
-
getTags
List of user-defined tags.
repeated string tags = 11;- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
com.google.protobuf.ByteString getTagsBytes(int index) List of user-defined tags.
repeated string tags = 11;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getRuleTypeValue
int getRuleTypeValue()The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;- Returns:
- The enum numeric value on the wire for ruleType.
-
getRuleType
Rule.RuleType getRuleType()The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;- Returns:
- The ruleType.
-
getAssetType
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:
- The assetType.
-
getAssetTypeBytes
com.google.protobuf.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:
- The bytes for assetType.
-