| 12291 |
manish.sha |
1 |
/*
|
|
|
2 |
* Copyright 2010 Google Inc.
|
|
|
3 |
*
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
|
5 |
* in compliance with the License. You may obtain a copy of the License at
|
|
|
6 |
*
|
|
|
7 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
*
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
|
10 |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
|
11 |
* or implied. See the License for the specific language governing permissions and limitations under
|
|
|
12 |
* the License.
|
|
|
13 |
*/
|
|
|
14 |
/*
|
|
|
15 |
* This code was generated by https://code.google.com/p/google-apis-client-generator/
|
|
|
16 |
* (build: 2014-07-09 17:08:39 UTC)
|
|
|
17 |
* on 2014-07-23 at 21:49:03 UTC
|
|
|
18 |
* Modify at your own risk.
|
|
|
19 |
*/
|
|
|
20 |
|
|
|
21 |
package com.google.api.services.content.model;
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* An error returned by the API.
|
|
|
25 |
*
|
|
|
26 |
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
|
|
|
27 |
* transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
|
|
|
28 |
* see:
|
|
|
29 |
* <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
|
|
|
30 |
* </p>
|
|
|
31 |
*
|
|
|
32 |
* @author Google, Inc.
|
|
|
33 |
*/
|
|
|
34 |
@SuppressWarnings("javadoc")
|
|
|
35 |
public final class Error extends com.google.api.client.json.GenericJson {
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* The domain of the error.
|
|
|
39 |
* The value may be {@code null}.
|
|
|
40 |
*/
|
|
|
41 |
@com.google.api.client.util.Key
|
|
|
42 |
private java.lang.String domain;
|
|
|
43 |
|
|
|
44 |
/**
|
|
|
45 |
* A description of the error.
|
|
|
46 |
* The value may be {@code null}.
|
|
|
47 |
*/
|
|
|
48 |
@com.google.api.client.util.Key
|
|
|
49 |
private java.lang.String message;
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* The error code.
|
|
|
53 |
* The value may be {@code null}.
|
|
|
54 |
*/
|
|
|
55 |
@com.google.api.client.util.Key
|
|
|
56 |
private java.lang.String reason;
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* The domain of the error.
|
|
|
60 |
* @return value or {@code null} for none
|
|
|
61 |
*/
|
|
|
62 |
public java.lang.String getDomain() {
|
|
|
63 |
return domain;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* The domain of the error.
|
|
|
68 |
* @param domain domain or {@code null} for none
|
|
|
69 |
*/
|
|
|
70 |
public Error setDomain(java.lang.String domain) {
|
|
|
71 |
this.domain = domain;
|
|
|
72 |
return this;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* A description of the error.
|
|
|
77 |
* @return value or {@code null} for none
|
|
|
78 |
*/
|
|
|
79 |
public java.lang.String getMessage() {
|
|
|
80 |
return message;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* A description of the error.
|
|
|
85 |
* @param message message or {@code null} for none
|
|
|
86 |
*/
|
|
|
87 |
public Error setMessage(java.lang.String message) {
|
|
|
88 |
this.message = message;
|
|
|
89 |
return this;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
/**
|
|
|
93 |
* The error code.
|
|
|
94 |
* @return value or {@code null} for none
|
|
|
95 |
*/
|
|
|
96 |
public java.lang.String getReason() {
|
|
|
97 |
return reason;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
/**
|
|
|
101 |
* The error code.
|
|
|
102 |
* @param reason reason or {@code null} for none
|
|
|
103 |
*/
|
|
|
104 |
public Error setReason(java.lang.String reason) {
|
|
|
105 |
this.reason = reason;
|
|
|
106 |
return this;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
@Override
|
|
|
110 |
public Error set(String fieldName, Object value) {
|
|
|
111 |
return (Error) super.set(fieldName, value);
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
@Override
|
|
|
115 |
public Error clone() {
|
|
|
116 |
return (Error) super.clone();
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
}
|