Class AnalyzerOrgPolicy.Rule

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

public static final class AnalyzerOrgPolicy.Rule extends com.google.protobuf.GeneratedMessage implements AnalyzerOrgPolicy.RuleOrBuilder
 This rule message is a customized version of the one defined in the
 Organization Policy system. In addition to the fields defined in the
 original organization policy, it contains additional field(s) under
 specific circumstances to support analysis results.
 
Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicy.Rule
See Also:
  • Field Details

    • VALUES_FIELD_NUMBER

      public static final int VALUES_FIELD_NUMBER
      See Also:
    • ALLOW_ALL_FIELD_NUMBER

      public static final int ALLOW_ALL_FIELD_NUMBER
      See Also:
    • DENY_ALL_FIELD_NUMBER

      public static final int DENY_ALL_FIELD_NUMBER
      See Also:
    • ENFORCE_FIELD_NUMBER

      public static final int ENFORCE_FIELD_NUMBER
      See Also:
    • CONDITION_FIELD_NUMBER

      public static final int CONDITION_FIELD_NUMBER
      See Also:
    • CONDITION_EVALUATION_FIELD_NUMBER

      public static final int CONDITION_EVALUATION_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
    • getKindCase

      public AnalyzerOrgPolicy.Rule.KindCase getKindCase()
      Specified by:
      getKindCase in interface AnalyzerOrgPolicy.RuleOrBuilder
    • hasValues

      public boolean hasValues()
       List of values to be used for this policy rule. This field can be set
       only in policies for list constraints.
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
      Specified by:
      hasValues in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the values field is set.
    • getValues

       List of values to be used for this policy rule. This field can be set
       only in policies for list constraints.
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
      Specified by:
      getValues in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The values.
    • getValuesOrBuilder

      public AnalyzerOrgPolicy.Rule.StringValuesOrBuilder getValuesOrBuilder()
       List of values to be used for this policy rule. This field can be set
       only in policies for list constraints.
       
      .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;
      Specified by:
      getValuesOrBuilder in interface AnalyzerOrgPolicy.RuleOrBuilder
    • hasAllowAll

      public boolean hasAllowAll()
       Setting this to true means that all values are allowed. This field can
       be set only in Policies for list constraints.
       
      bool allow_all = 4;
      Specified by:
      hasAllowAll in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the allowAll field is set.
    • getAllowAll

      public boolean getAllowAll()
       Setting this to true means that all values are allowed. This field can
       be set only in Policies for list constraints.
       
      bool allow_all = 4;
      Specified by:
      getAllowAll in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The allowAll.
    • hasDenyAll

      public boolean hasDenyAll()
       Setting this to true means that all values are denied. This field can
       be set only in Policies for list constraints.
       
      bool deny_all = 5;
      Specified by:
      hasDenyAll in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the denyAll field is set.
    • getDenyAll

      public boolean getDenyAll()
       Setting this to true means that all values are denied. This field can
       be set only in Policies for list constraints.
       
      bool deny_all = 5;
      Specified by:
      getDenyAll in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The denyAll.
    • hasEnforce

      public boolean hasEnforce()
       If `true`, then the `Policy` is enforced. If `false`, then any
       configuration is acceptable.
       This field can be set only in Policies for boolean constraints.
       
      bool enforce = 6;
      Specified by:
      hasEnforce in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the enforce field is set.
    • getEnforce

      public boolean getEnforce()
       If `true`, then the `Policy` is enforced. If `false`, then any
       configuration is acceptable.
       This field can be set only in Policies for boolean constraints.
       
      bool enforce = 6;
      Specified by:
      getEnforce in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The enforce.
    • hasCondition

      public boolean hasCondition()
       The evaluating condition for this rule.
       
      .google.type.Expr condition = 7;
      Specified by:
      hasCondition in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the condition field is set.
    • getCondition

      public Expr getCondition()
       The evaluating condition for this rule.
       
      .google.type.Expr condition = 7;
      Specified by:
      getCondition in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The condition.
    • getConditionOrBuilder

      public ExprOrBuilder getConditionOrBuilder()
       The evaluating condition for this rule.
       
      .google.type.Expr condition = 7;
      Specified by:
      getConditionOrBuilder in interface AnalyzerOrgPolicy.RuleOrBuilder
    • hasConditionEvaluation

      public boolean hasConditionEvaluation()
       The condition evaluation result for this rule.
       Only populated if it meets all the following criteria:
      
       * There is a
       [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
       defined for this rule.
       * This rule is within
       [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy],
       or
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy]
       when the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset]
       has
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
       
      .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8;
      Specified by:
      hasConditionEvaluation in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      Whether the conditionEvaluation field is set.
    • getConditionEvaluation

      public ConditionEvaluation getConditionEvaluation()
       The condition evaluation result for this rule.
       Only populated if it meets all the following criteria:
      
       * There is a
       [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
       defined for this rule.
       * This rule is within
       [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy],
       or
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy]
       when the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset]
       has
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
       
      .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8;
      Specified by:
      getConditionEvaluation in interface AnalyzerOrgPolicy.RuleOrBuilder
      Returns:
      The conditionEvaluation.
    • getConditionEvaluationOrBuilder

      public ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder()
       The condition evaluation result for this rule.
       Only populated if it meets all the following criteria:
      
       * There is a
       [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
       defined for this rule.
       * This rule is within
       [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy],
       or
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy]
       when the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset]
       has
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
       
      .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8;
      Specified by:
      getConditionEvaluationOrBuilder in interface AnalyzerOrgPolicy.RuleOrBuilder
    • 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 AnalyzerOrgPolicy.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static AnalyzerOrgPolicy.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 AnalyzerOrgPolicy.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static AnalyzerOrgPolicy.Rule.Builder newBuilder()
    • newBuilder

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

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

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

      public static AnalyzerOrgPolicy.Rule getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AnalyzerOrgPolicy.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 AnalyzerOrgPolicy.Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder