Send feedback
Class AdManagerError (0.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class AdManagerError extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DETAILS_FIELD_NUMBER
public static final int DETAILS_FIELD_NUMBER
Field Value
Type
Description
int
ERROR_CODE_FIELD_NUMBER
public static final int ERROR_CODE_FIELD_NUMBER
Field Value
Type
Description
int
FIELD_PATH_FIELD_NUMBER
public static final int FIELD_PATH_FIELD_NUMBER
Field Value
Type
Description
int
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value
Type
Description
int
STACK_TRACE_FIELD_NUMBER
public static final int STACK_TRACE_FIELD_NUMBER
Field Value
Type
Description
int
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static AdManagerError getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AdManagerError . Builder newBuilder ()
newBuilder(AdManagerError prototype)
public static AdManagerError . Builder newBuilder ( AdManagerError prototype )
public static AdManagerError parseDelimitedFrom ( InputStream input )
public static AdManagerError parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AdManagerError parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdManagerError parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AdManagerError parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdManagerError parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AdManagerError parseFrom ( CodedInputStream input )
public static AdManagerError parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AdManagerError parseFrom ( InputStream input )
public static AdManagerError parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AdManagerError parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdManagerError parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AdManagerError> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public AdManagerError getDefaultInstanceForType ()
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
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;
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
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.
getParserForType()
public Parser<AdManagerError> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AdManagerError . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdManagerError . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AdManagerError . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `AdManagerError` class in the Google Ad Manager API's Java library, with the latest version being 0.19.0."],["`AdManagerError` is a class that inherits from `GeneratedMessageV3` and implements `AdManagerErrorOrBuilder`, designed to contain information about errors encountered when using the Ad Manager API."],["The class contains information such as the error code, a publisher-appropriate error message, the field path that caused the error, the value that triggered the error, a stack trace, and a list of additional error details."],["The page provides links to different versions of the documentation, from version 0.1.0 to 0.19.0."],["There are a multitude of methods in the `AdManagerError` class, including static methods to retrieve an instance, parsing, and building, as well as non static methods for interacting with an instance, such as retrieving the error code, message, or stack trace."]]],[]]