Class Counters.Builder (0.23.0)

public static final class Counters.Builder extends GeneratedMessage.Builder<Counters.Builder> implements CountersOrBuilder

Describes details about the progress of the job.

Protobuf type google.cloud.storagebatchoperations.v1.Counters

Implements

CountersOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Counters build()
Returns
Type Description
Counters

buildPartial()

public Counters buildPartial()
Returns
Type Description
Counters

clear()

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

clearFailedObjectCount()

public Counters.Builder clearFailedObjectCount()

Output only. Number of objects failed.

int64 failed_object_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Counters.Builder

This builder for chaining.

clearSucceededObjectCount()

public Counters.Builder clearSucceededObjectCount()

Output only. Number of objects completed.

int64 succeeded_object_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Counters.Builder

This builder for chaining.

clearTotalBytesFound()

public Counters.Builder clearTotalBytesFound()

Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.

optional int64 total_bytes_found = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Counters.Builder

This builder for chaining.

clearTotalObjectCount()

public Counters.Builder clearTotalObjectCount()

Output only. Number of objects listed.

int64 total_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Counters.Builder

This builder for chaining.

getDefaultInstanceForType()

public Counters getDefaultInstanceForType()
Returns
Type Description
Counters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFailedObjectCount()

public long getFailedObjectCount()

Output only. Number of objects failed.

int64 failed_object_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The failedObjectCount.

getSucceededObjectCount()

public long getSucceededObjectCount()

Output only. Number of objects completed.

int64 succeeded_object_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The succeededObjectCount.

getTotalBytesFound()

public long getTotalBytesFound()

Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.

optional int64 total_bytes_found = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The totalBytesFound.

getTotalObjectCount()

public long getTotalObjectCount()

Output only. Number of objects listed.

int64 total_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The totalObjectCount.

hasTotalBytesFound()

public boolean hasTotalBytesFound()

Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.

optional int64 total_bytes_found = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the totalBytesFound field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Counters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFailedObjectCount(long value)

public Counters.Builder setFailedObjectCount(long value)

Output only. Number of objects failed.

int64 failed_object_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The failedObjectCount to set.

Returns
Type Description
Counters.Builder

This builder for chaining.

setSucceededObjectCount(long value)

public Counters.Builder setSucceededObjectCount(long value)

Output only. Number of objects completed.

int64 succeeded_object_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The succeededObjectCount to set.

Returns
Type Description
Counters.Builder

This builder for chaining.

setTotalBytesFound(long value)

public Counters.Builder setTotalBytesFound(long value)

Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.

optional int64 total_bytes_found = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The totalBytesFound to set.

Returns
Type Description
Counters.Builder

This builder for chaining.

setTotalObjectCount(long value)

public Counters.Builder setTotalObjectCount(long value)

Output only. Number of objects listed.

int64 total_object_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The totalObjectCount to set.

Returns
Type Description
Counters.Builder

This builder for chaining.