Package com.google.cloud.asset.v1
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis rule message is a customized version of the one defined in the Organization Policy system.static enumstatic final classThe string values for the list constraints.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanSetting this to true means that all values are allowed.The evaluating condition for this rule.The condition evaluation result for this rule.The condition evaluation result for this rule.The evaluating condition for this rule.static AnalyzerOrgPolicy.RulebooleanSetting this to true means that all values are denied.static final com.google.protobuf.Descriptors.DescriptorbooleanIf `true`, then the `Policy` is enforced.com.google.protobuf.Parser<AnalyzerOrgPolicy.Rule>intList 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.inthashCode()booleanList of values to be used for this policy rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(AnalyzerOrgPolicy.Rule prototype) protected AnalyzerOrgPolicy.Rule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AnalyzerOrgPolicy.RuleparseDelimitedFrom(InputStream input) static AnalyzerOrgPolicy.RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnalyzerOrgPolicy.RuleparseFrom(byte[] data) static AnalyzerOrgPolicy.RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnalyzerOrgPolicy.RuleparseFrom(com.google.protobuf.ByteString data) static AnalyzerOrgPolicy.RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnalyzerOrgPolicy.RuleparseFrom(com.google.protobuf.CodedInputStream input) static AnalyzerOrgPolicy.RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnalyzerOrgPolicy.RuleparseFrom(InputStream input) static AnalyzerOrgPolicy.RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnalyzerOrgPolicy.RuleparseFrom(ByteBuffer data) static AnalyzerOrgPolicy.RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnalyzerOrgPolicy.Rule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getKindCase
- Specified by:
getKindCasein interfaceAnalyzerOrgPolicy.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:
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static AnalyzerOrgPolicy.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnalyzerOrgPolicy.Rule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-