public static final class OrgPolicyViolationsPreview.ResourceCounts extends GeneratedMessage implements OrgPolicyViolationsPreview.ResourceCountsOrBuilderA summary of the state of all resources scanned for compliance with the changed OrgPolicy.
Protobuf type google.cloud.policysimulator.v1.OrgPolicyViolationsPreview.ResourceCounts
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > OrgPolicyViolationsPreview.ResourceCountsStatic 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()| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static OrgPolicyViolationsPreview.ResourceCounts.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts.Builder |
|
newBuilder(OrgPolicyViolationsPreview.ResourceCounts prototype)
public static OrgPolicyViolationsPreview.ResourceCounts.Builder newBuilder(OrgPolicyViolationsPreview.ResourceCounts prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
OrgPolicyViolationsPreview.ResourceCounts |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts.Builder |
|
parseDelimitedFrom(InputStream input)
public static OrgPolicyViolationsPreview.ResourceCounts parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OrgPolicyViolationsPreview.ResourceCounts parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<OrgPolicyViolationsPreview.ResourceCounts> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ResourceCounts> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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()| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts |
|
getErrors()
public int 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()| Returns | |
|---|---|
| Type | Description |
Parser<ResourceCounts> |
|
getScanned()
public int 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 |
|
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()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public OrgPolicyViolationsPreview.ResourceCounts.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected OrgPolicyViolationsPreview.ResourceCounts.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts.Builder |
|
toBuilder()
public OrgPolicyViolationsPreview.ResourceCounts.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview.ResourceCounts.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|