Class AdManagerError.Builder (0.7.0)

public static final class AdManagerError.Builder extends GeneratedMessageV3.Builder<AdManagerError.Builder> implements AdManagerErrorOrBuilder

/ AdManagerError contains all the information required for processing a / particular error thrown by the AdManager API. / / At least one AdManagerError should be included in all error messages sent to / the client.

Protobuf type google.ads.admanager.v1.AdManagerError

Static Methods

getDescriptor()

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

Methods

addAllDetails(Iterable<? extends Any> values)

public AdManagerError.Builder addAllDetails(Iterable<? extends Any> values)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.Any>
Returns
Type Description
AdManagerError.Builder

addDetails(Any value)

public AdManagerError.Builder addDetails(Any value)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
value Any
Returns
Type Description
AdManagerError.Builder

addDetails(Any.Builder builderForValue)

public AdManagerError.Builder addDetails(Any.Builder builderForValue)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AdManagerError.Builder

addDetails(int index, Any value)

public AdManagerError.Builder addDetails(int index, Any value)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameters
Name Description
index int
value Any
Returns
Type Description
AdManagerError.Builder

addDetails(int index, Any.Builder builderForValue)

public AdManagerError.Builder addDetails(int index, Any.Builder builderForValue)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
AdManagerError.Builder

addDetailsBuilder()

public Any.Builder addDetailsBuilder()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
Builder

addDetailsBuilder(int index)

public Any.Builder addDetailsBuilder(int index)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
index int
Returns
Type Description
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdManagerError.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdManagerError.Builder
Overrides

build()

public AdManagerError build()
Returns
Type Description
AdManagerError

buildPartial()

public AdManagerError buildPartial()
Returns
Type Description
AdManagerError

clear()

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

clearDetails()

public AdManagerError.Builder clearDetails()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
AdManagerError.Builder

clearErrorCode()

public AdManagerError.Builder clearErrorCode()

The unique identifying string for this error.

string error_code = 1;

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AdManagerError.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdManagerError.Builder
Overrides

clearFieldPath()

public AdManagerError.Builder clearFieldPath()

The field path that triggered this error.

string field_path = 3;

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

clearMessage()

public AdManagerError.Builder clearMessage()

A publisher appropriate explanation of this error.

string message = 2;

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AdManagerError.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdManagerError.Builder
Overrides

clearStackTrace()

public AdManagerError.Builder clearStackTrace()

The stack trace that accompanies this error.

string stack_trace = 5;

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

clearTrigger()

public AdManagerError.Builder clearTrigger()

The value that triggered this error.

string trigger = 4;

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

clone()

public AdManagerError.Builder clone()
Returns
Type Description
AdManagerError.Builder
Overrides

getDefaultInstanceForType()

public AdManagerError getDefaultInstanceForType()
Returns
Type Description
AdManagerError

getDescriptorForType()

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

getDetails(int index)

public Any getDetails(int index)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
index int
Returns
Type Description
Any

getDetailsBuilder(int index)

public Any.Builder getDetailsBuilder(int index)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
index int
Returns
Type Description
Builder

getDetailsBuilderList()

public List<Any.Builder> getDetailsBuilderList()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
List<Builder>

getDetailsCount()

public int getDetailsCount()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
int

getDetailsList()

public List<Any> getDetailsList()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
List<Any>

getDetailsOrBuilder(int index)

public AnyOrBuilder getDetailsOrBuilder(int index)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
index int
Returns
Type Description
AnyOrBuilder

getDetailsOrBuilderList()

public List<? extends AnyOrBuilder> getDetailsOrBuilderList()

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Returns
Type Description
List<? extends com.google.protobuf.AnyOrBuilder>

getErrorCode()

public String getErrorCode()

The unique identifying string for this error.

string error_code = 1;

Returns
Type Description
String

The errorCode.

getErrorCodeBytes()

public ByteString getErrorCodeBytes()

The unique identifying string for this error.

string error_code = 1;

Returns
Type Description
ByteString

The bytes for errorCode.

getFieldPath()

public String getFieldPath()

The field path that triggered this error.

string field_path = 3;

Returns
Type Description
String

The fieldPath.

getFieldPathBytes()

public ByteString getFieldPathBytes()

The field path that triggered this error.

string field_path = 3;

Returns
Type Description
ByteString

The bytes for fieldPath.

getMessage()

public String getMessage()

A publisher appropriate explanation of this error.

string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

A publisher appropriate explanation of this error.

string message = 2;

Returns
Type Description
ByteString

The bytes for message.

getStackTrace()

public String getStackTrace()

The stack trace that accompanies this error.

string stack_trace = 5;

Returns
Type Description
String

The stackTrace.

getStackTraceBytes()

public ByteString getStackTraceBytes()

The stack trace that accompanies this error.

string stack_trace = 5;

Returns
Type Description
ByteString

The bytes for stackTrace.

getTrigger()

public String getTrigger()

The value that triggered this error.

string trigger = 4;

Returns
Type Description
String

The trigger.

getTriggerBytes()

public ByteString getTriggerBytes()

The value that triggered this error.

string trigger = 4;

Returns
Type Description
ByteString

The bytes for trigger.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdManagerError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdManagerError.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdManagerError.Builder
Overrides

removeDetails(int index)

public AdManagerError.Builder removeDetails(int index)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameter
Name Description
index int
Returns
Type Description
AdManagerError.Builder

setDetails(int index, Any value)

public AdManagerError.Builder setDetails(int index, Any value)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameters
Name Description
index int
value Any
Returns
Type Description
AdManagerError.Builder

setDetails(int index, Any.Builder builderForValue)

public AdManagerError.Builder setDetails(int index, Any.Builder builderForValue)

A list of messages that carry any additional error details.

repeated .google.protobuf.Any details = 6;

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
AdManagerError.Builder

setErrorCode(String value)

public AdManagerError.Builder setErrorCode(String value)

The unique identifying string for this error.

string error_code = 1;

Parameter
Name Description
value String

The errorCode to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setErrorCodeBytes(ByteString value)

public AdManagerError.Builder setErrorCodeBytes(ByteString value)

The unique identifying string for this error.

string error_code = 1;

Parameter
Name Description
value ByteString

The bytes for errorCode to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AdManagerError.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdManagerError.Builder
Overrides

setFieldPath(String value)

public AdManagerError.Builder setFieldPath(String value)

The field path that triggered this error.

string field_path = 3;

Parameter
Name Description
value String

The fieldPath to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setFieldPathBytes(ByteString value)

public AdManagerError.Builder setFieldPathBytes(ByteString value)

The field path that triggered this error.

string field_path = 3;

Parameter
Name Description
value ByteString

The bytes for fieldPath to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setMessage(String value)

public AdManagerError.Builder setMessage(String value)

A publisher appropriate explanation of this error.

string message = 2;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public AdManagerError.Builder setMessageBytes(ByteString value)

A publisher appropriate explanation of this error.

string message = 2;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AdManagerError.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdManagerError.Builder
Overrides

setStackTrace(String value)

public AdManagerError.Builder setStackTrace(String value)

The stack trace that accompanies this error.

string stack_trace = 5;

Parameter
Name Description
value String

The stackTrace to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setStackTraceBytes(ByteString value)

public AdManagerError.Builder setStackTraceBytes(ByteString value)

The stack trace that accompanies this error.

string stack_trace = 5;

Parameter
Name Description
value ByteString

The bytes for stackTrace to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setTrigger(String value)

public AdManagerError.Builder setTrigger(String value)

The value that triggered this error.

string trigger = 4;

Parameter
Name Description
value String

The trigger to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setTriggerBytes(ByteString value)

public AdManagerError.Builder setTriggerBytes(ByteString value)

The value that triggered this error.

string trigger = 4;

Parameter
Name Description
value ByteString

The bytes for trigger to set.

Returns
Type Description
AdManagerError.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdManagerError.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdManagerError.Builder
Overrides