public final class CustomError
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Usage API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
CustomError() |
Modifier and Type | Method and Description |
---|---|
CustomError |
clone() |
java.util.List<CustomErrorRule> |
getRules()
The list of custom error rules that apply to individual API messages.
|
java.util.List<java.lang.String> |
getTypes()
The list of custom error detail types, e.g.
|
CustomError |
set(java.lang.String fieldName,
java.lang.Object value) |
CustomError |
setRules(java.util.List<CustomErrorRule> rules)
The list of custom error rules that apply to individual API messages.
|
CustomError |
setTypes(java.util.List<java.lang.String> types)
The list of custom error detail types, e.g.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<CustomErrorRule> getRules()
null
for nonepublic CustomError setRules(java.util.List<CustomErrorRule> rules)
rules
- rules or null
for nonepublic java.util.List<java.lang.String> getTypes()
null
for nonepublic CustomError setTypes(java.util.List<java.lang.String> types)
types
- types or null
for nonepublic CustomError set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CustomError clone()
clone
in class com.google.api.client.json.GenericJson