Package com.google.cloud.asset.v1
Class AnalyzerOrgPolicy.Rule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
com.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.Builder
- All Implemented Interfaces:
AnalyzerOrgPolicy.RuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnalyzerOrgPolicy.Rule
public static final class AnalyzerOrgPolicy.Rule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Setting this to true means that all values are allowed.The evaluating condition for this rule.The condition evaluation result for this rule.Setting this to true means that all values are denied.If `true`, then the `Policy` is enforced.List of values to be used for this policy rule.booleanSetting this to true means that all values are allowed.The evaluating condition for this rule.The evaluating condition for this rule.The condition evaluation result for this rule.The condition evaluation result for this rule.The condition evaluation result for this rule.The evaluating condition for this rule.booleanSetting this to true means that all values are denied.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf `true`, then the `Policy` is enforced.List of values to be used for this policy rule.List of values to be used for this policy rule.List of values to be used for this policy rule.booleanSetting this to true means that all values are allowed.booleanThe evaluating condition for this rule.booleanThe condition evaluation result for this rule.booleanSetting this to true means that all values are denied.booleanIf `true`, then the `Policy` is enforced.booleanList of values to be used for this policy rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCondition(Expr value) The evaluating condition for this rule.The condition evaluation result for this rule.mergeFrom(AnalyzerOrgPolicy.Rule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) List of values to be used for this policy rule.setAllowAll(boolean value) Setting this to true means that all values are allowed.setCondition(Expr value) The evaluating condition for this rule.setCondition(Expr.Builder builderForValue) The evaluating condition for this rule.The condition evaluation result for this rule.setConditionEvaluation(ConditionEvaluation.Builder builderForValue) The condition evaluation result for this rule.setDenyAll(boolean value) Setting this to true means that all values are denied.setEnforce(boolean value) If `true`, then the `Policy` is enforced.List of values to be used for this policy rule.setValues(AnalyzerOrgPolicy.Rule.StringValues.Builder builderForValue) List of values to be used for this policy rule.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<AnalyzerOrgPolicy.Rule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>
-
mergeFrom
public AnalyzerOrgPolicy.Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnalyzerOrgPolicy.Rule.Builder>- Throws:
IOException
-
getKindCase
- Specified by:
getKindCasein interfaceAnalyzerOrgPolicy.RuleOrBuilder
-
clearKind
-
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:
hasValuesin interfaceAnalyzerOrgPolicy.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:
getValuesin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The values.
-
setValues
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; -
setValues
public AnalyzerOrgPolicy.Rule.Builder setValues(AnalyzerOrgPolicy.Rule.StringValues.Builder builderForValue) 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; -
mergeValues
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; -
clearValues
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; -
getValuesBuilder
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; -
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:
getValuesOrBuilderin interfaceAnalyzerOrgPolicy.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:
hasAllowAllin interfaceAnalyzerOrgPolicy.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:
getAllowAllin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The allowAll.
-
setAllowAll
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;- Parameters:
value- The allowAll to set.- Returns:
- This builder for chaining.
-
clearAllowAll
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;- Returns:
- This builder for chaining.
-
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:
hasDenyAllin interfaceAnalyzerOrgPolicy.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:
getDenyAllin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The denyAll.
-
setDenyAll
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;- Parameters:
value- The denyAll to set.- Returns:
- This builder for chaining.
-
clearDenyAll
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;- Returns:
- This builder for chaining.
-
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:
hasEnforcein interfaceAnalyzerOrgPolicy.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:
getEnforcein interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The enforce.
-
setEnforce
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;- Parameters:
value- The enforce to set.- Returns:
- This builder for chaining.
-
clearEnforce
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;- Returns:
- This builder for chaining.
-
hasCondition
public boolean hasCondition()The evaluating condition for this rule.
.google.type.Expr condition = 7;- Specified by:
hasConditionin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- Whether the condition field is set.
-
getCondition
The evaluating condition for this rule.
.google.type.Expr condition = 7;- Specified by:
getConditionin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The condition.
-
setCondition
The evaluating condition for this rule.
.google.type.Expr condition = 7; -
setCondition
The evaluating condition for this rule.
.google.type.Expr condition = 7; -
mergeCondition
The evaluating condition for this rule.
.google.type.Expr condition = 7; -
clearCondition
The evaluating condition for this rule.
.google.type.Expr condition = 7; -
getConditionBuilder
The evaluating condition for this rule.
.google.type.Expr condition = 7; -
getConditionOrBuilder
The evaluating condition for this rule.
.google.type.Expr condition = 7;- Specified by:
getConditionOrBuilderin interfaceAnalyzerOrgPolicy.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:
hasConditionEvaluationin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- Whether the conditionEvaluation field is set.
-
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:
getConditionEvaluationin interfaceAnalyzerOrgPolicy.RuleOrBuilder- Returns:
- The conditionEvaluation.
-
setConditionEvaluation
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; -
setConditionEvaluation
public AnalyzerOrgPolicy.Rule.Builder setConditionEvaluation(ConditionEvaluation.Builder builderForValue) 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; -
mergeConditionEvaluation
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; -
clearConditionEvaluation
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; -
getConditionEvaluationBuilder
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; -
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:
getConditionEvaluationOrBuilderin interfaceAnalyzerOrgPolicy.RuleOrBuilder
-