Send feedback
Class OrgPolicyViolationsPreview.ResourceCounts (0.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class OrgPolicyViolationsPreview . ResourceCounts extends GeneratedMessageV3 implements OrgPolicyViolationsPreview . ResourceCountsOrBuilder
A summary of the state of all resources scanned for compliance with the
changed OrgPolicy.
Protobuf type google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts
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
COMPLIANT_FIELD_NUMBER
public static final int COMPLIANT_FIELD_NUMBER
Field Value
Type
Description
int
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value
Type
Description
int
NONCOMPLIANT_FIELD_NUMBER
public static final int NONCOMPLIANT_FIELD_NUMBER
Field Value
Type
Description
int
SCANNED_FIELD_NUMBER
public static final int SCANNED_FIELD_NUMBER
Field Value
Type
Description
int
UNENFORCED_FIELD_NUMBER
public static final int UNENFORCED_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static OrgPolicyViolationsPreview . ResourceCounts getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static OrgPolicyViolationsPreview . ResourceCounts . Builder newBuilder ()
newBuilder(OrgPolicyViolationsPreview.ResourceCounts prototype)
public static OrgPolicyViolationsPreview . ResourceCounts . Builder newBuilder ( OrgPolicyViolationsPreview . ResourceCounts prototype )
public static OrgPolicyViolationsPreview . ResourceCounts parseDelimitedFrom ( InputStream input )
public static OrgPolicyViolationsPreview . ResourceCounts parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( CodedInputStream input )
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( InputStream input )
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview . ResourceCounts parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<OrgPolicyViolationsPreview . ResourceCounts > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getCompliant()
public int getCompliant ()
Output only. Number of scanned resources with zero violations.
int32 compliant = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The compliant.
getDefaultInstanceForType()
public OrgPolicyViolationsPreview . ResourceCounts getDefaultInstanceForType ()
getErrors()
Output only. Number of resources that returned an error when scanned.
int32 errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The errors.
getNoncompliant()
public int getNoncompliant ()
Output only. Number of scanned resources with at least one violation.
int32 noncompliant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The noncompliant.
getParserForType()
public Parser<OrgPolicyViolationsPreview . ResourceCounts > getParserForType ()
Overrides
getScanned()
Output only. Number of resources checked for compliance.
Must equal: unenforced + noncompliant + compliant + error
int32 scanned = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The scanned.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getUnenforced()
public int getUnenforced ()
Output only. Number of resources where the constraint was not enforced,
i.e. the Policy set enforced: false
for that resource.
int32 unenforced = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The unenforced.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public OrgPolicyViolationsPreview . ResourceCounts . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OrgPolicyViolationsPreview . ResourceCounts . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public OrgPolicyViolationsPreview . ResourceCounts . 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-08-02 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-08-02 UTC."],[],[]]