Class FieldWarning.Builder (0.20.0)

public static final class FieldWarning.Builder extends GeneratedMessage.Builder<FieldWarning.Builder> implements FieldWarningOrBuilder

Detailed row-level warning with field paths.

Protobuf type google.ads.datamanager.v1.FieldWarning

Static Methods

getDescriptor()

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

Methods

build()

public FieldWarning build()
Returns
Type Description
FieldWarning

buildPartial()

public FieldWarning buildPartial()
Returns
Type Description
FieldWarning

clear()

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

clearDescription()

public FieldWarning.Builder clearDescription()

The detailed warning message describing the issue.

string description = 2;

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

clearField()

public FieldWarning.Builder clearField()

The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.

string field = 3;

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

clearReason()

public FieldWarning.Builder clearReason()

The warning reason.

.google.ads.datamanager.v1.WarningReason reason = 1;

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

getDefaultInstanceForType()

public FieldWarning getDefaultInstanceForType()
Returns
Type Description
FieldWarning

getDescription()

public String getDescription()

The detailed warning message describing the issue.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The detailed warning message describing the issue.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getField()

public String getField()

The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.

string field = 3;

Returns
Type Description
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.

string field = 3;

Returns
Type Description
ByteString

The bytes for field.

getReason()

public WarningReason getReason()

The warning reason.

.google.ads.datamanager.v1.WarningReason reason = 1;

Returns
Type Description
WarningReason

The reason.

getReasonValue()

public int getReasonValue()

The warning reason.

.google.ads.datamanager.v1.WarningReason reason = 1;

Returns
Type Description
int

The enum numeric value on the wire for reason.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FieldWarning other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public FieldWarning.Builder setDescription(String value)

The detailed warning message describing the issue.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public FieldWarning.Builder setDescriptionBytes(ByteString value)

The detailed warning message describing the issue.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

setField(String value)

public FieldWarning.Builder setField(String value)

The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.

string field = 3;

Parameter
Name Description
value String

The field to set.

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

setFieldBytes(ByteString value)

public FieldWarning.Builder setFieldBytes(ByteString value)

The field path that triggered the warning. Uses the same format as google.rpc.BadRequest.FieldViolation.field.

string field = 3;

Parameter
Name Description
value ByteString

The bytes for field to set.

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

setReason(WarningReason value)

public FieldWarning.Builder setReason(WarningReason value)

The warning reason.

.google.ads.datamanager.v1.WarningReason reason = 1;

Parameter
Name Description
value WarningReason

The reason to set.

Returns
Type Description
FieldWarning.Builder

This builder for chaining.

setReasonValue(int value)

public FieldWarning.Builder setReasonValue(int value)

The warning reason.

.google.ads.datamanager.v1.WarningReason reason = 1;

Parameter
Name Description
value int

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

Returns
Type Description
FieldWarning.Builder

This builder for chaining.