Class WarningCount.Builder (0.24.0)

public static final class WarningCount.Builder extends GeneratedMessage.Builder<WarningCount.Builder> implements WarningCountOrBuilder

The warning count for a given warning reason.

Protobuf type google.ads.datamanager.v1.WarningCount

Static Methods

getDescriptor()

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

Methods

addAllRecordIndices(Iterable<? extends Integer> values)

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

The 0-based indices of the records in the original request that had this warning reason.

repeated int32 record_indices = 3;

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

The recordIndices to add.

Returns
Type Description
WarningCount.Builder

This builder for chaining.

addRecordIndices(int value)

public WarningCount.Builder addRecordIndices(int value)

The 0-based indices of the records in the original request that had this warning reason.

repeated int32 record_indices = 3;

Parameter
Name Description
value int

The recordIndices to add.

Returns
Type Description
WarningCount.Builder

This builder for chaining.

build()

public WarningCount build()
Returns
Type Description
WarningCount

buildPartial()

public WarningCount buildPartial()
Returns
Type Description
WarningCount

clear()

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

clearReason()

public WarningCount.Builder clearReason()

The warning reason.

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

Returns
Type Description
WarningCount.Builder

This builder for chaining.

clearRecordCount()

public WarningCount.Builder clearRecordCount()

The count of records that have a warning.

int64 record_count = 1;

Returns
Type Description
WarningCount.Builder

This builder for chaining.

clearRecordIndices()

public WarningCount.Builder clearRecordIndices()

The 0-based indices of the records in the original request that had this warning reason.

repeated int32 record_indices = 3;

Returns
Type Description
WarningCount.Builder

This builder for chaining.

getDefaultInstanceForType()

public WarningCount getDefaultInstanceForType()
Returns
Type Description
WarningCount

getDescriptorForType()

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

getReason()

public ProcessingWarningReason getReason()

The warning reason.

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

Returns
Type Description
ProcessingWarningReason

The reason.

getReasonValue()

public int getReasonValue()

The warning reason.

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

Returns
Type Description
int

The enum numeric value on the wire for reason.

getRecordCount()

public long getRecordCount()

The count of records that have a warning.

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 had this warning 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 had this warning 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 had this warning 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(WarningCount other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setReason(ProcessingWarningReason value)

public WarningCount.Builder setReason(ProcessingWarningReason value)

The warning reason.

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

Parameter
Name Description
value ProcessingWarningReason

The reason to set.

Returns
Type Description
WarningCount.Builder

This builder for chaining.

setReasonValue(int value)

public WarningCount.Builder setReasonValue(int value)

The warning reason.

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

Parameter
Name Description
value int

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

Returns
Type Description
WarningCount.Builder

This builder for chaining.

setRecordCount(long value)

public WarningCount.Builder setRecordCount(long value)

The count of records that have a warning.

int64 record_count = 1;

Parameter
Name Description
value long

The recordCount to set.

Returns
Type Description
WarningCount.Builder

This builder for chaining.

setRecordIndices(int index, int value)

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

The 0-based indices of the records in the original request that had this warning 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
WarningCount.Builder

This builder for chaining.