public final class Rule extends GeneratedMessage implements RuleOrBuilder
A rule to be evaluated.
Protobuf type google.cloud.workloadmanager.v1.Rule
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ASSET_TYPE_FIELD_NUMBER
public static final int ASSET_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PRIMARY_CATEGORY_FIELD_NUMBER
public static final int PRIMARY_CATEGORY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int REMEDIATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RULE_TYPE_FIELD_NUMBER
public static final int RULE_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SECONDARY_CATEGORY_FIELD_NUMBER
public static final int SECONDARY_CATEGORY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TAGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Rule getDefaultInstance()
| Returns |
| Type |
Description |
Rule |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Rule.Builder newBuilder()
newBuilder(Rule prototype)
public static Rule.Builder newBuilder(Rule prototype)
| Parameter |
| Name |
Description |
prototype |
Rule
|
public static Rule parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(byte[] data)
public static Rule parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Rule |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteString data)
public static Rule parseFrom(ByteString data)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(InputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteBuffer data)
public static Rule parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parser()
public static Parser<Rule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
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()
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.
|
getParserForType()
public Parser<Rule> getParserForType()
Overrides
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.
|
public String getRemediation()
The remediation for the rule.
string remediation = 10;
| Returns |
| Type |
Description |
String |
The remediation.
|
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;
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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
public String getTags(int index)
List of user-defined tags.
repeated string tags = 11;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The tags at the given index.
|
public ByteString getTagsBytes(int index)
List of user-defined tags.
repeated string tags = 11;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the tags at the given index.
|
public int getTagsCount()
List of user-defined tags.
repeated string tags = 11;
| Returns |
| Type |
Description |
int |
The count of tags.
|
public ProtocolStringList getTagsList()
List of user-defined tags.
repeated string tags = 11;
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Rule.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Rule.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Rule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides