Class Rule
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 ClassesModifier and TypeClassDescriptionstatic final classA rule to be evaluated.static enumThe 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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.static RuleDescribe rule in plain language.com.google.protobuf.ByteStringDescribe rule in plain language.static final com.google.protobuf.Descriptors.DescriptorThe 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.com.google.protobuf.Parser<Rule>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.intThe 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.com.google.protobuf.ProtocolStringListList of user-defined tags.getUri()The document url for the rule.com.google.protobuf.ByteStringThe document url for the rule.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Rule.Builderstatic Rule.BuildernewBuilder(Rule prototype) protected Rule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RuleparseDelimitedFrom(InputStream input) static RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(byte[] data) static RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(com.google.protobuf.ByteString data) static RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(com.google.protobuf.CodedInputStream input) static RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(InputStream input) static RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuleparseFrom(ByteBuffer data) static RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Rule>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Rule name.
string name = 1;- Specified by:
getNamein interfaceRuleOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Rule name.
string name = 1;- Specified by:
getNameBytesin interfaceRuleOrBuilder- Returns:
- The bytes for name.
-
getRevisionId
Output only. The version of the rule.
string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdin interfaceRuleOrBuilder- 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:
getRevisionIdBytesin interfaceRuleOrBuilder- Returns:
- The bytes for revisionId.
-
getDisplayName
The name display in UI.
string display_name = 3;- Specified by:
getDisplayNamein interfaceRuleOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The name display in UI.
string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceRuleOrBuilder- Returns:
- The bytes for displayName.
-
getDescription
Describe rule in plain language.
string description = 4;- Specified by:
getDescriptionin interfaceRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Describe rule in plain language.
string description = 4;- Specified by:
getDescriptionBytesin interfaceRuleOrBuilder- Returns:
- The bytes for description.
-
getSeverity
The severity of the rule.
string severity = 5;- Specified by:
getSeverityin interfaceRuleOrBuilder- Returns:
- The severity.
-
getSeverityBytes
public com.google.protobuf.ByteString getSeverityBytes()The severity of the rule.
string severity = 5;- Specified by:
getSeverityBytesin interfaceRuleOrBuilder- Returns:
- The bytes for severity.
-
getPrimaryCategory
The primary category.
string primary_category = 6;- Specified by:
getPrimaryCategoryin interfaceRuleOrBuilder- Returns:
- The primaryCategory.
-
getPrimaryCategoryBytes
public com.google.protobuf.ByteString getPrimaryCategoryBytes()The primary category.
string primary_category = 6;- Specified by:
getPrimaryCategoryBytesin interfaceRuleOrBuilder- Returns:
- The bytes for primaryCategory.
-
getSecondaryCategory
The secondary category.
string secondary_category = 7;- Specified by:
getSecondaryCategoryin interfaceRuleOrBuilder- Returns:
- The secondaryCategory.
-
getSecondaryCategoryBytes
public com.google.protobuf.ByteString getSecondaryCategoryBytes()The secondary category.
string secondary_category = 7;- Specified by:
getSecondaryCategoryBytesin interfaceRuleOrBuilder- Returns:
- The bytes for secondaryCategory.
-
getErrorMessage
The message template for rule.
string error_message = 8;- Specified by:
getErrorMessagein interfaceRuleOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()The message template for rule.
string error_message = 8;- Specified by:
getErrorMessageBytesin interfaceRuleOrBuilder- Returns:
- The bytes for errorMessage.
-
getUri
The document url for the rule.
string uri = 9;- Specified by:
getUriin interfaceRuleOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The document url for the rule.
string uri = 9;- Specified by:
getUriBytesin interfaceRuleOrBuilder- Returns:
- The bytes for uri.
-
getRemediation
The remediation for the rule.
string remediation = 10;- Specified by:
getRemediationin interfaceRuleOrBuilder- Returns:
- The remediation.
-
getRemediationBytes
public com.google.protobuf.ByteString getRemediationBytes()The remediation for the rule.
string remediation = 10;- Specified by:
getRemediationBytesin interfaceRuleOrBuilder- Returns:
- The bytes for remediation.
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()List of user-defined tags.
repeated string tags = 11;- Specified by:
getTagsListin interfaceRuleOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()List of user-defined tags.
repeated string tags = 11;- Specified by:
getTagsCountin interfaceRuleOrBuilder- Returns:
- The count of tags.
-
getTags
List of user-defined tags.
repeated string tags = 11;- Specified by:
getTagsin interfaceRuleOrBuilder- 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:
getTagsBytesin interfaceRuleOrBuilder- 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:
getRuleTypeValuein interfaceRuleOrBuilder- Returns:
- The enum numeric value on the wire for ruleType.
-
getRuleType
The type of the rule.
.google.cloud.workloadmanager.v1.Rule.RuleType rule_type = 12;- Specified by:
getRuleTypein interfaceRuleOrBuilder- Returns:
- The ruleType.
-
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:
getAssetTypein interfaceRuleOrBuilder- 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:
getAssetTypeBytesin interfaceRuleOrBuilder- Returns:
- The bytes for assetType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- 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
- Throws:
IOException
-
parseFrom
public static Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-