Class ErrorCount.Builder (0.24.0)

public static final class ErrorCount.Builder extends GeneratedMessage.Builder<ErrorCount.Builder> implements ErrorCountOrBuilder

The error count for a given error reason.

Protobuf type google.ads.datamanager.v1.ErrorCount

Implements

ErrorCountOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRecordIndices(Iterable<? extends Integer> values)

public ErrorCount.Builder addAllRecordIndices(Iterable<? extends Integer> values)

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The recordIndices to add.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

addRecordIndices(int value)

public ErrorCount.Builder addRecordIndices(int value)

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Parameter
Name Description
value int

The recordIndices to add.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

build()

public ErrorCount build()
Returns
Type Description
ErrorCount

buildPartial()

public ErrorCount buildPartial()
Returns
Type Description
ErrorCount

clear()

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

clearReason()

public ErrorCount.Builder clearReason()

The error reason of the failed records.

.google.ads.datamanager.v1.ProcessingErrorReason reason = 2;

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

clearRecordCount()

public ErrorCount.Builder clearRecordCount()

The count of records that failed to upload for a given reason.

int64 record_count = 1;

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

clearRecordIndices()

public ErrorCount.Builder clearRecordIndices()

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

getDefaultInstanceForType()

public ErrorCount getDefaultInstanceForType()
Returns
Type Description
ErrorCount

getDescriptorForType()

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

getReason()

public ProcessingErrorReason getReason()

The error reason of the failed records.

.google.ads.datamanager.v1.ProcessingErrorReason reason = 2;

Returns
Type Description
ProcessingErrorReason

The reason.

getReasonValue()

public int getReasonValue()

The error reason of the failed records.

.google.ads.datamanager.v1.ProcessingErrorReason reason = 2;

Returns
Type Description
int

The enum numeric value on the wire for reason.

getRecordCount()

public long getRecordCount()

The count of records that failed to upload for a given reason.

int64 record_count = 1;

Returns
Type Description
long

The recordCount.

getRecordIndices(int index)

public int getRecordIndices(int index)

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The recordIndices at the given index.

getRecordIndicesCount()

public int getRecordIndicesCount()

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Returns
Type Description
int

The count of recordIndices.

getRecordIndicesList()

public List<Integer> getRecordIndicesList()

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Returns
Type Description
List<Integer>

A list containing the recordIndices.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorCount other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setReason(ProcessingErrorReason value)

public ErrorCount.Builder setReason(ProcessingErrorReason value)

The error reason of the failed records.

.google.ads.datamanager.v1.ProcessingErrorReason reason = 2;

Parameter
Name Description
value ProcessingErrorReason

The reason to set.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

setReasonValue(int value)

public ErrorCount.Builder setReasonValue(int value)

The error reason of the failed records.

.google.ads.datamanager.v1.ProcessingErrorReason reason = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for reason to set.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

setRecordCount(long value)

public ErrorCount.Builder setRecordCount(long value)

The count of records that failed to upload for a given reason.

int64 record_count = 1;

Parameter
Name Description
value long

The recordCount to set.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.

setRecordIndices(int index, int value)

public ErrorCount.Builder setRecordIndices(int index, int value)

The 0-based indices of the records in the original request that failed with this error reason.

repeated int32 record_indices = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

The recordIndices to set.

Returns
Type Description
ErrorCount.Builder

This builder for chaining.