java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.workloadmanager.v1.Rule
All Implemented Interfaces:
RuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Rule extends com.google.protobuf.GeneratedMessage implements RuleOrBuilder
 A rule to be evaluated.
 
Protobuf type google.cloud.workloadmanager.v1.Rule
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A rule to be evaluated.
    static enum 
    The type of the rule.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
    com.google.protobuf.ByteString
    The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
    static Rule
     
     
    Describe rule in plain language.
    com.google.protobuf.ByteString
    Describe rule in plain language.
    static final com.google.protobuf.Descriptors.Descriptor
     
    The name display in UI.
    com.google.protobuf.ByteString
    The name display in UI.
    The message template for rule.
    com.google.protobuf.ByteString
    The message template for rule.
    Rule name.
    com.google.protobuf.ByteString
    Rule name.
    com.google.protobuf.Parser<Rule>
     
    The primary category.
    com.google.protobuf.ByteString
    The primary category.
    The remediation for the rule.
    com.google.protobuf.ByteString
    The remediation for the rule.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    The type of the rule.
    int
    The type of the rule.
    The secondary category.
    com.google.protobuf.ByteString
    The secondary category.
    int
     
    The severity of the rule.
    com.google.protobuf.ByteString
    The severity of the rule.
    getTags(int index)
    List of user-defined tags.
    com.google.protobuf.ByteString
    getTagsBytes(int index)
    List of user-defined tags.
    int
    List of user-defined tags.
    com.google.protobuf.ProtocolStringList
    List of user-defined tags.
    The document url for the rule.
    com.google.protobuf.ByteString
    The document url for the rule.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Rule prototype)
     
     
    protected Rule.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Rule
     
    static Rule
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Rule
    parseFrom(byte[] data)
     
    static Rule
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Rule
    parseFrom(com.google.protobuf.ByteString data)
     
    static Rule
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Rule
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Rule
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Rule
     
    static Rule
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Rule
     
    static Rule
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Rule>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • REVISION_ID_FIELD_NUMBER

      public static final int REVISION_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • SEVERITY_FIELD_NUMBER

      public static final int SEVERITY_FIELD_NUMBER
      See Also:
    • PRIMARY_CATEGORY_FIELD_NUMBER

      public static final int PRIMARY_CATEGORY_FIELD_NUMBER
      See Also:
    • SECONDARY_CATEGORY_FIELD_NUMBER

      public static final int SECONDARY_CATEGORY_FIELD_NUMBER
      See Also:
    • ERROR_MESSAGE_FIELD_NUMBER

      public static final int ERROR_MESSAGE_FIELD_NUMBER
      See Also:
    • URI_FIELD_NUMBER

      public static final int URI_FIELD_NUMBER
      See Also:
    • REMEDIATION_FIELD_NUMBER

      public static final int REMEDIATION_FIELD_NUMBER
      See Also:
    • TAGS_FIELD_NUMBER

      public static final int TAGS_FIELD_NUMBER
      See Also:
    • RULE_TYPE_FIELD_NUMBER

      public static final int RULE_TYPE_FIELD_NUMBER
      See Also:
    • ASSET_TYPE_FIELD_NUMBER

      public static final int ASSET_TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Rule name.
       
      string name = 1;
      Specified by:
      getName in interface RuleOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Rule name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface RuleOrBuilder
      Returns:
      The bytes for name.
    • getRevisionId

      public String getRevisionId()
       Output only. The version of the rule.
       
      string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionId in interface RuleOrBuilder
      Returns:
      The revisionId.
    • getRevisionIdBytes

      public com.google.protobuf.ByteString getRevisionIdBytes()
       Output only. The version of the rule.
       
      string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRevisionIdBytes in interface RuleOrBuilder
      Returns:
      The bytes for revisionId.
    • getDisplayName

      public String getDisplayName()
       The name display in UI.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface RuleOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The name display in UI.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface RuleOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       Describe rule in plain language.
       
      string description = 4;
      Specified by:
      getDescription in interface RuleOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Describe rule in plain language.
       
      string description = 4;
      Specified by:
      getDescriptionBytes in interface RuleOrBuilder
      Returns:
      The bytes for description.
    • getSeverity

      public String getSeverity()
       The severity of the rule.
       
      string severity = 5;
      Specified by:
      getSeverity in interface RuleOrBuilder
      Returns:
      The severity.
    • getSeverityBytes

      public com.google.protobuf.ByteString getSeverityBytes()
       The severity of the rule.
       
      string severity = 5;
      Specified by:
      getSeverityBytes in interface RuleOrBuilder
      Returns:
      The bytes for severity.
    • getPrimaryCategory

      public String getPrimaryCategory()
       The primary category.
       
      string primary_category = 6;
      Specified by:
      getPrimaryCategory in interface RuleOrBuilder
      Returns:
      The primaryCategory.
    • getPrimaryCategoryBytes

      public com.google.protobuf.ByteString getPrimaryCategoryBytes()
       The primary category.
       
      string primary_category = 6;
      Specified by:
      getPrimaryCategoryBytes in interface RuleOrBuilder
      Returns:
      The bytes for primaryCategory.
    • getSecondaryCategory

      public String getSecondaryCategory()
       The secondary category.
       
      string secondary_category = 7;
      Specified by:
      getSecondaryCategory in interface RuleOrBuilder
      Returns:
      The secondaryCategory.
    • getSecondaryCategoryBytes

      public com.google.protobuf.ByteString getSecondaryCategoryBytes()
       The secondary category.
       
      string secondary_category = 7;
      Specified by:
      getSecondaryCategoryBytes in interface RuleOrBuilder
      Returns:
      The bytes for secondaryCategory.
    • getErrorMessage

      public String getErrorMessage()
       The message template for rule.
       
      string error_message = 8;
      Specified by:
      getErrorMessage in interface RuleOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       The message template for rule.
       
      string error_message = 8;
      Specified by:
      getErrorMessageBytes in interface RuleOrBuilder
      Returns:
      The bytes for errorMessage.
    • getUri

      public String getUri()
       The document url for the rule.
       
      string uri = 9;
      Specified by:
      getUri in interface RuleOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       The document url for the rule.
       
      string uri = 9;
      Specified by:
      getUriBytes in interface RuleOrBuilder
      Returns:
      The bytes for uri.
    • getRemediation

      public String getRemediation()
       The remediation for the rule.
       
      string remediation = 10;
      Specified by:
      getRemediation in interface RuleOrBuilder
      Returns:
      The remediation.
    • getRemediationBytes

      public com.google.protobuf.ByteString getRemediationBytes()
       The remediation for the rule.
       
      string remediation = 10;
      Specified by:
      getRemediationBytes in interface RuleOrBuilder
      Returns:
      The bytes for remediation.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       List of user-defined tags.
       
      repeated string tags = 11;
      Specified by:
      getTagsList in interface RuleOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       List of user-defined tags.
       
      repeated string tags = 11;
      Specified by:
      getTagsCount in interface RuleOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       List of user-defined tags.
       
      repeated string tags = 11;
      Specified by:
      getTags in interface RuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       List of user-defined tags.
       
      repeated string tags = 11;
      Specified by:
      getTagsBytes in interface RuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • getRuleTypeValue

      public int getRuleTypeValue()
       The type of the rule.
       
      .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
      Specified by:
      getRuleTypeValue in interface RuleOrBuilder
      Returns:
      The enum numeric value on the wire for ruleType.
    • getRuleType

      public Rule.RuleType getRuleType()
       The type of the rule.
       
      .google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;
      Specified by:
      getRuleType in interface RuleOrBuilder
      Returns:
      The ruleType.
    • 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;
      Specified by:
      getAssetType in interface RuleOrBuilder
      Returns:
      The assetType.
    • getAssetTypeBytes

      public 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;
      Specified by:
      getAssetTypeBytes in interface RuleOrBuilder
      Returns:
      The bytes for assetType.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Rule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Rule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Rule.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Rule.Builder newBuilder()
    • newBuilder

      public static Rule.Builder newBuilder(Rule prototype)
    • toBuilder

      public Rule.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Rule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Rule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Rule> parser()
    • getParserForType

      public com.google.protobuf.Parser<Rule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder