Class ErrorCount.Builder (0.6.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

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.

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.

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.