Class BindingEvaluationSummary.Builder (0.58.0)

public static final class BindingEvaluationSummary.Builder extends GeneratedMessage.Builder<BindingEvaluationSummary.Builder> implements BindingEvaluationSummaryOrBuilder

BindingEvaluationSummary contains the summary of the last run of job that applies policy to matching resources for a given binding.

Protobuf type google.cloud.backupdr.v1beta.BindingEvaluationSummary

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public BindingEvaluationSummary build()
Returns
Type Description
BindingEvaluationSummary

buildPartial()

public BindingEvaluationSummary buildPartial()
Returns
Type Description
BindingEvaluationSummary

clear()

public BindingEvaluationSummary.Builder clear()
Returns
Type Description
BindingEvaluationSummary.Builder
Overrides

clearFailedResourceCount()

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.

clearMatchingResourceCount()

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.

clearProtectedResourceCount()

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.

getDefaultInstanceForType()

public BindingEvaluationSummary getDefaultInstanceForType()
Returns
Type Description
BindingEvaluationSummary

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(BindingEvaluationSummary other)

public BindingEvaluationSummary.Builder mergeFrom(BindingEvaluationSummary other)
Parameter
Name Description
other BindingEvaluationSummary
Returns
Type Description
BindingEvaluationSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BindingEvaluationSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BindingEvaluationSummary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setFailedResourceCount(long value)

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.

setMatchingResourceCount(long value)

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.

setProtectedResourceCount(long value)

public BindingEvaluationSummary.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
BindingEvaluationSummary.Builder

This builder for chaining.