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 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<String> 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

      String getTags(int index)
       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.