Class Rule (0.3.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.3.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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  
      
        prototypeRule  
     
  
  
  
    
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  
      
        databyte [] 
     
  
  
    
      
        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  
      
        objObject  
     
  
  
  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  
      
        indexint 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  
      
        indexint 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 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]