Class PolicyEvaluationSummary.Builder (0.58.0)

public static final class PolicyEvaluationSummary.Builder extends GeneratedMessage.Builder<PolicyEvaluationSummary.Builder> implements PolicyEvaluationSummaryOrBuilder

PolicyEvaluationSummary contains the summary of the last run of job that applies policy to matching resources.

Protobuf type google.cloud.backupdr.v1beta.PolicyEvaluationSummary

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PolicyEvaluationSummary.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PolicyEvaluationSummary.Builder
Overrides

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 long

The 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 long

The 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 long

The protectedResourceCount to set.

Returns
Type Description
PolicyEvaluationSummary.Builder

This builder for chaining.