Class DaiIngestError.Builder (0.54.0)

public static final class DaiIngestError.Builder extends GeneratedMessage.Builder<DaiIngestError.Builder> implements DaiIngestErrorOrBuilder

Represents an error associated with a Dynamic Ad Insertion (DAI) Content's status.

Protobuf type google.ads.admanager.v1.DaiIngestError

Static Methods

getDescriptor()

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

Methods

build()

public DaiIngestError build()
Returns
Type Description
DaiIngestError

buildPartial()

public DaiIngestError buildPartial()
Returns
Type Description
DaiIngestError

clear()

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

clearReason()

public DaiIngestError.Builder clearReason()

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.

clearTrigger()

public DaiIngestError.Builder clearTrigger()

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.

getDefaultInstanceForType()

public DaiIngestError getDefaultInstanceForType()
Returns
Type Description
DaiIngestError

getDescriptorForType()

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

getReason()

public DaiIngestErrorReasonEnum.DaiIngestErrorReason getReason()

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Returns
Type Description
DaiIngestErrorReasonEnum.DaiIngestErrorReason

The reason.

getReasonValue()

public int getReasonValue()

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Returns
Type Description
int

The enum numeric value on the wire for reason.

getTrigger()

public String getTrigger()

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The trigger.

getTriggerBytes()

public ByteString getTriggerBytes()

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for trigger.

hasReason()

public boolean hasReason()

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Returns
Type Description
boolean

Whether the reason field is set.

hasTrigger()

public boolean hasTrigger()

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DaiIngestError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setReason(DaiIngestErrorReasonEnum.DaiIngestErrorReason value)

public DaiIngestError.Builder setReason(DaiIngestErrorReasonEnum.DaiIngestErrorReason value)

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Parameter
Name Description
value DaiIngestErrorReasonEnum.DaiIngestErrorReason

The reason to set.

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.

setReasonValue(int value)

public DaiIngestError.Builder setReasonValue(int value)

The error associated with the content.

optional .google.ads.admanager.v1.DaiIngestErrorReasonEnum.DaiIngestErrorReason reason = 1;

Parameter
Name Description
value int

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

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.

setTrigger(String value)

public DaiIngestError.Builder setTrigger(String value)

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The trigger to set.

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.

setTriggerBytes(ByteString value)

public DaiIngestError.Builder setTriggerBytes(ByteString value)

Output only. The field, if any, that triggered the error.

optional string trigger = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for trigger to set.

Returns
Type Description
DaiIngestError.Builder

This builder for chaining.