- 0.57.0 (latest)
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class OrgPolicyViolationsPreview.ResourceCounts.Builder extends GeneratedMessageV3.Builder<OrgPolicyViolationsPreview.ResourceCounts.Builder> 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.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OrgPolicyViolationsPreview.ResourceCounts.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
build()
public OrgPolicyViolationsPreview.ResourceCounts build()| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts | |
buildPartial()
public OrgPolicyViolationsPreview.ResourceCounts buildPartial()| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts | |
clear()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
clearCompliant()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearCompliant()Output only. Number of scanned resources with zero violations.
 int32 compliant = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
clearErrors()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearErrors()Output only. Number of resources that returned an error when scanned.
 int32 errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
clearNoncompliant()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearNoncompliant()Output only. Number of scanned resources with at least one violation.
 int32 noncompliant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
clearScanned()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearScanned()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 | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
clearUnenforced()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clearUnenforced() 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 | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
clone()
public OrgPolicyViolationsPreview.ResourceCounts.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
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 | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
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. | 
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. | 
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. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(OrgPolicyViolationsPreview.ResourceCounts other)
public OrgPolicyViolationsPreview.ResourceCounts.Builder mergeFrom(OrgPolicyViolationsPreview.ResourceCounts other)| Parameter | |
|---|---|
| Name | Description | 
| other | OrgPolicyViolationsPreview.ResourceCounts | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OrgPolicyViolationsPreview.ResourceCounts.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public OrgPolicyViolationsPreview.ResourceCounts.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationsPreview.ResourceCounts.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
setCompliant(int value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setCompliant(int value)Output only. Number of scanned resources with zero violations.
 int32 compliant = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe compliant to set. | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
setErrors(int value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setErrors(int value)Output only. Number of resources that returned an error when scanned.
 int32 errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe errors to set. | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
setNoncompliant(int value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setNoncompliant(int value)Output only. Number of scanned resources with at least one violation.
 int32 noncompliant = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe noncompliant to set. | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |
setScanned(int value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setScanned(int value)Output only. Number of resources checked for compliance.
Must equal: unenforced + noncompliant + compliant + error
 int32 scanned = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe scanned to set. | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
setUnenforced(int value)
public OrgPolicyViolationsPreview.ResourceCounts.Builder setUnenforced(int value) 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];
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe unenforced to set. | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | This builder for chaining. | 
setUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationsPreview.ResourceCounts.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| OrgPolicyViolationsPreview.ResourceCounts.Builder | |