public static final class PolicyEvaluationSummary.Builder extends GeneratedMessage.Builder<PolicyEvaluationSummary.Builder> implements PolicyEvaluationSummaryOrBuilderPolicyEvaluationSummary contains the summary of the last run of job that applies policy to matching resources.
Protobuf type google.cloud.backupdr.v1beta.PolicyEvaluationSummary
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PolicyEvaluationSummary.BuilderImplements
PolicyEvaluationSummaryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PolicyEvaluationSummary build()| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary |
|
buildPartial()
public PolicyEvaluationSummary buildPartial()| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary |
|
clear()
public PolicyEvaluationSummary.Builder clear()| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
|
clearFailedResourceCount()
public PolicyEvaluationSummary.Builder clearFailedResourceCount()Output only. The number of matching resources whose protection failed during job run.
int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |
clearMatchingResourceCount()
public PolicyEvaluationSummary.Builder clearMatchingResourceCount()Output only. The number of resources that currently match the policy's criteria.
int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |
clearProtectedResourceCount()
public PolicyEvaluationSummary.Builder clearProtectedResourceCount()Output only. The number of matching resources that are successfully protected.
int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PolicyEvaluationSummary getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFailedResourceCount()
public long getFailedResourceCount()Output only. The number of matching resources whose protection failed during job run.
int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The failedResourceCount. |
getMatchingResourceCount()
public long getMatchingResourceCount()Output only. The number of resources that currently match the policy's criteria.
int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The matchingResourceCount. |
getProtectedResourceCount()
public long getProtectedResourceCount()Output only. The number of matching resources that are successfully protected.
int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The protectedResourceCount. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PolicyEvaluationSummary other)
public PolicyEvaluationSummary.Builder mergeFrom(PolicyEvaluationSummary other)| Parameter | |
|---|---|
| Name | Description |
other |
PolicyEvaluationSummary |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicyEvaluationSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PolicyEvaluationSummary.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
|
setFailedResourceCount(long value)
public PolicyEvaluationSummary.Builder setFailedResourceCount(long value)Output only. The number of matching resources whose protection failed during job run.
int64 failed_resource_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe failedResourceCount to set. |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |
setMatchingResourceCount(long value)
public PolicyEvaluationSummary.Builder setMatchingResourceCount(long value)Output only. The number of resources that currently match the policy's criteria.
int64 matching_resource_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe matchingResourceCount to set. |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |
setProtectedResourceCount(long value)
public PolicyEvaluationSummary.Builder setProtectedResourceCount(long value)Output only. The number of matching resources that are successfully protected.
int64 protected_resource_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe protectedResourceCount to set. |
| Returns | |
|---|---|
| Type | Description |
PolicyEvaluationSummary.Builder |
This builder for chaining. |