Send feedback
Class Rule (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Rule extends GeneratedMessageV3 implements RuleOrBuilder
A rule of the cloud control.
Protobuf type google.cloud.cloudsecuritycompliance.v1.Rule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CEL_EXPRESSION_FIELD_NUMBER
public static final int CEL_EXPRESSION_FIELD_NUMBER
Field Value
Type
Description
int
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type
Description
int
RULE_ACTION_TYPES_FIELD_NUMBER
public static final int RULE_ACTION_TYPES_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
getCelExpression()
public CELExpression getCelExpression ()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
getCelExpressionOrBuilder()
public CELExpressionOrBuilder getCelExpressionOrBuilder ()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
getDefaultInstanceForType()
public Rule getDefaultInstanceForType ()
Returns
Type
Description
Rule
getDescription()
public String getDescription ()
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Optional. Description of the Rule. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for description.
getImplementationCase()
public Rule . ImplementationCase getImplementationCase ()
getParserForType()
public Parser<Rule> getParserForType ()
Overrides
getRuleActionTypes(int index)
public RuleActionType getRuleActionTypes ( int index )
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
RuleActionType
The ruleActionTypes at the given index.
getRuleActionTypesCount()
public int getRuleActionTypesCount ()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The count of ruleActionTypes.
getRuleActionTypesList()
public List<RuleActionType> getRuleActionTypesList ()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
getRuleActionTypesValue(int index)
public int getRuleActionTypesValue ( int index )
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
int
The enum numeric value on the wire of ruleActionTypes at the given index.
getRuleActionTypesValueList()
public List<Integer> getRuleActionTypesValueList ()
Required. The functionality enabled by the Rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <Integer >
A list containing the enum numeric values on the wire for ruleActionTypes.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasCelExpression()
public boolean hasCelExpression ()
Logic expression in CEL language.
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
Returns
Type
Description
boolean
Whether the celExpression field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Rule . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Rule . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Rule . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-17 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-17 UTC."],[],[],null,[]]