| 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 |
* Model definition for DatafeedStatus.
|
|
|
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 DatafeedStatus extends com.google.api.client.json.GenericJson {
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* The ID of the feed for which the status is reported.
|
|
|
39 |
* The value may be {@code null}.
|
|
|
40 |
*/
|
|
|
41 |
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
|
|
|
42 |
private java.math.BigInteger datafeedId;
|
|
|
43 |
|
|
|
44 |
/**
|
|
|
45 |
* The list of errors occurring in the feed.
|
|
|
46 |
* The value may be {@code null}.
|
|
|
47 |
*/
|
|
|
48 |
@com.google.api.client.util.Key
|
|
|
49 |
private java.util.List<DatafeedStatusError> errors;
|
|
|
50 |
|
|
|
51 |
static {
|
|
|
52 |
// hack to force ProGuard to consider DatafeedStatusError used, since otherwise it would be stripped out
|
|
|
53 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
54 |
com.google.api.client.util.Data.nullOf(DatafeedStatusError.class);
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
/**
|
|
|
58 |
* The number of items in the feed that were processed.
|
|
|
59 |
* The value may be {@code null}.
|
|
|
60 |
*/
|
|
|
61 |
@com.google.api.client.util.Key
|
|
|
62 |
private java.lang.Integer itemsTotal;
|
|
|
63 |
|
|
|
64 |
/**
|
|
|
65 |
* The number of items in the feed that were valid.
|
|
|
66 |
* The value may be {@code null}.
|
|
|
67 |
*/
|
|
|
68 |
@com.google.api.client.util.Key
|
|
|
69 |
private java.lang.Integer itemsValid;
|
|
|
70 |
|
|
|
71 |
/**
|
|
|
72 |
* Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus".
|
|
|
73 |
* The value may be {@code null}.
|
|
|
74 |
*/
|
|
|
75 |
@com.google.api.client.util.Key
|
|
|
76 |
private java.lang.String kind;
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* The processing status of the feed.
|
|
|
80 |
* The value may be {@code null}.
|
|
|
81 |
*/
|
|
|
82 |
@com.google.api.client.util.Key
|
|
|
83 |
private java.lang.String processingStatus;
|
|
|
84 |
|
|
|
85 |
/**
|
|
|
86 |
* The list of errors occurring in the feed.
|
|
|
87 |
* The value may be {@code null}.
|
|
|
88 |
*/
|
|
|
89 |
@com.google.api.client.util.Key
|
|
|
90 |
private java.util.List<DatafeedStatusError> warnings;
|
|
|
91 |
|
|
|
92 |
static {
|
|
|
93 |
// hack to force ProGuard to consider DatafeedStatusError used, since otherwise it would be stripped out
|
|
|
94 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
95 |
com.google.api.client.util.Data.nullOf(DatafeedStatusError.class);
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* The ID of the feed for which the status is reported.
|
|
|
100 |
* @return value or {@code null} for none
|
|
|
101 |
*/
|
|
|
102 |
public java.math.BigInteger getDatafeedId() {
|
|
|
103 |
return datafeedId;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
/**
|
|
|
107 |
* The ID of the feed for which the status is reported.
|
|
|
108 |
* @param datafeedId datafeedId or {@code null} for none
|
|
|
109 |
*/
|
|
|
110 |
public DatafeedStatus setDatafeedId(java.math.BigInteger datafeedId) {
|
|
|
111 |
this.datafeedId = datafeedId;
|
|
|
112 |
return this;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
/**
|
|
|
116 |
* The list of errors occurring in the feed.
|
|
|
117 |
* @return value or {@code null} for none
|
|
|
118 |
*/
|
|
|
119 |
public java.util.List<DatafeedStatusError> getErrors() {
|
|
|
120 |
return errors;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
/**
|
|
|
124 |
* The list of errors occurring in the feed.
|
|
|
125 |
* @param errors errors or {@code null} for none
|
|
|
126 |
*/
|
|
|
127 |
public DatafeedStatus setErrors(java.util.List<DatafeedStatusError> errors) {
|
|
|
128 |
this.errors = errors;
|
|
|
129 |
return this;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* The number of items in the feed that were processed.
|
|
|
134 |
* @return value or {@code null} for none
|
|
|
135 |
*/
|
|
|
136 |
public java.lang.Integer getItemsTotal() {
|
|
|
137 |
return itemsTotal;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
/**
|
|
|
141 |
* The number of items in the feed that were processed.
|
|
|
142 |
* @param itemsTotal itemsTotal or {@code null} for none
|
|
|
143 |
*/
|
|
|
144 |
public DatafeedStatus setItemsTotal(java.lang.Integer itemsTotal) {
|
|
|
145 |
this.itemsTotal = itemsTotal;
|
|
|
146 |
return this;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
/**
|
|
|
150 |
* The number of items in the feed that were valid.
|
|
|
151 |
* @return value or {@code null} for none
|
|
|
152 |
*/
|
|
|
153 |
public java.lang.Integer getItemsValid() {
|
|
|
154 |
return itemsValid;
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
/**
|
|
|
158 |
* The number of items in the feed that were valid.
|
|
|
159 |
* @param itemsValid itemsValid or {@code null} for none
|
|
|
160 |
*/
|
|
|
161 |
public DatafeedStatus setItemsValid(java.lang.Integer itemsValid) {
|
|
|
162 |
this.itemsValid = itemsValid;
|
|
|
163 |
return this;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
/**
|
|
|
167 |
* Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus".
|
|
|
168 |
* @return value or {@code null} for none
|
|
|
169 |
*/
|
|
|
170 |
public java.lang.String getKind() {
|
|
|
171 |
return kind;
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
/**
|
|
|
175 |
* Identifies what kind of resource this is. Value: the fixed string "content#datafeedStatus".
|
|
|
176 |
* @param kind kind or {@code null} for none
|
|
|
177 |
*/
|
|
|
178 |
public DatafeedStatus setKind(java.lang.String kind) {
|
|
|
179 |
this.kind = kind;
|
|
|
180 |
return this;
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
/**
|
|
|
184 |
* The processing status of the feed.
|
|
|
185 |
* @return value or {@code null} for none
|
|
|
186 |
*/
|
|
|
187 |
public java.lang.String getProcessingStatus() {
|
|
|
188 |
return processingStatus;
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
/**
|
|
|
192 |
* The processing status of the feed.
|
|
|
193 |
* @param processingStatus processingStatus or {@code null} for none
|
|
|
194 |
*/
|
|
|
195 |
public DatafeedStatus setProcessingStatus(java.lang.String processingStatus) {
|
|
|
196 |
this.processingStatus = processingStatus;
|
|
|
197 |
return this;
|
|
|
198 |
}
|
|
|
199 |
|
|
|
200 |
/**
|
|
|
201 |
* The list of errors occurring in the feed.
|
|
|
202 |
* @return value or {@code null} for none
|
|
|
203 |
*/
|
|
|
204 |
public java.util.List<DatafeedStatusError> getWarnings() {
|
|
|
205 |
return warnings;
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
/**
|
|
|
209 |
* The list of errors occurring in the feed.
|
|
|
210 |
* @param warnings warnings or {@code null} for none
|
|
|
211 |
*/
|
|
|
212 |
public DatafeedStatus setWarnings(java.util.List<DatafeedStatusError> warnings) {
|
|
|
213 |
this.warnings = warnings;
|
|
|
214 |
return this;
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
@Override
|
|
|
218 |
public DatafeedStatus set(String fieldName, Object value) {
|
|
|
219 |
return (DatafeedStatus) super.set(fieldName, value);
|
|
|
220 |
}
|
|
|
221 |
|
|
|
222 |
@Override
|
|
|
223 |
public DatafeedStatus clone() {
|
|
|
224 |
return (DatafeedStatus) super.clone();
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
}
|