| 8590 |
kshitij.so |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class BannerCongregate implements org.apache.thrift.TBase<BannerCongregate, BannerCongregate._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BannerCongregate");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField BANNER_FIELD_DESC = new org.apache.thrift.protocol.TField("banner", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField BANNER_MAPS_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerMaps", org.apache.thrift.protocol.TType.LIST, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField BANNER_URI_MAPPINGS_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerUriMappings", org.apache.thrift.protocol.TType.LIST, (short)3);
|
|
|
29 |
|
|
|
30 |
private Banner banner; // required
|
|
|
31 |
private List<BannerMap> bannerMaps; // required
|
|
|
32 |
private List<BannerUriMapping> bannerUriMappings; // required
|
|
|
33 |
|
|
|
34 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
35 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
36 |
BANNER((short)1, "banner"),
|
|
|
37 |
BANNER_MAPS((short)2, "bannerMaps"),
|
|
|
38 |
BANNER_URI_MAPPINGS((short)3, "bannerUriMappings");
|
|
|
39 |
|
|
|
40 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
41 |
|
|
|
42 |
static {
|
|
|
43 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
44 |
byName.put(field.getFieldName(), field);
|
|
|
45 |
}
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
50 |
*/
|
|
|
51 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
52 |
switch(fieldId) {
|
|
|
53 |
case 1: // BANNER
|
|
|
54 |
return BANNER;
|
|
|
55 |
case 2: // BANNER_MAPS
|
|
|
56 |
return BANNER_MAPS;
|
|
|
57 |
case 3: // BANNER_URI_MAPPINGS
|
|
|
58 |
return BANNER_URI_MAPPINGS;
|
|
|
59 |
default:
|
|
|
60 |
return null;
|
|
|
61 |
}
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
/**
|
|
|
65 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
66 |
* if it is not found.
|
|
|
67 |
*/
|
|
|
68 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
69 |
_Fields fields = findByThriftId(fieldId);
|
|
|
70 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
71 |
return fields;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
/**
|
|
|
75 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
76 |
*/
|
|
|
77 |
public static _Fields findByName(String name) {
|
|
|
78 |
return byName.get(name);
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
private final short _thriftId;
|
|
|
82 |
private final String _fieldName;
|
|
|
83 |
|
|
|
84 |
_Fields(short thriftId, String fieldName) {
|
|
|
85 |
_thriftId = thriftId;
|
|
|
86 |
_fieldName = fieldName;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public short getThriftFieldId() {
|
|
|
90 |
return _thriftId;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public String getFieldName() {
|
|
|
94 |
return _fieldName;
|
|
|
95 |
}
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
// isset id assignments
|
|
|
99 |
|
|
|
100 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
101 |
static {
|
|
|
102 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
103 |
tmpMap.put(_Fields.BANNER, new org.apache.thrift.meta_data.FieldMetaData("banner", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
104 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Banner.class)));
|
|
|
105 |
tmpMap.put(_Fields.BANNER_MAPS, new org.apache.thrift.meta_data.FieldMetaData("bannerMaps", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
106 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
107 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerMap.class))));
|
|
|
108 |
tmpMap.put(_Fields.BANNER_URI_MAPPINGS, new org.apache.thrift.meta_data.FieldMetaData("bannerUriMappings", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
109 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
110 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerUriMapping.class))));
|
|
|
111 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
112 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BannerCongregate.class, metaDataMap);
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public BannerCongregate() {
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public BannerCongregate(
|
|
|
119 |
Banner banner,
|
|
|
120 |
List<BannerMap> bannerMaps,
|
|
|
121 |
List<BannerUriMapping> bannerUriMappings)
|
|
|
122 |
{
|
|
|
123 |
this();
|
|
|
124 |
this.banner = banner;
|
|
|
125 |
this.bannerMaps = bannerMaps;
|
|
|
126 |
this.bannerUriMappings = bannerUriMappings;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
/**
|
|
|
130 |
* Performs a deep copy on <i>other</i>.
|
|
|
131 |
*/
|
|
|
132 |
public BannerCongregate(BannerCongregate other) {
|
|
|
133 |
if (other.isSetBanner()) {
|
|
|
134 |
this.banner = new Banner(other.banner);
|
|
|
135 |
}
|
|
|
136 |
if (other.isSetBannerMaps()) {
|
|
|
137 |
List<BannerMap> __this__bannerMaps = new ArrayList<BannerMap>();
|
|
|
138 |
for (BannerMap other_element : other.bannerMaps) {
|
|
|
139 |
__this__bannerMaps.add(new BannerMap(other_element));
|
|
|
140 |
}
|
|
|
141 |
this.bannerMaps = __this__bannerMaps;
|
|
|
142 |
}
|
|
|
143 |
if (other.isSetBannerUriMappings()) {
|
|
|
144 |
List<BannerUriMapping> __this__bannerUriMappings = new ArrayList<BannerUriMapping>();
|
|
|
145 |
for (BannerUriMapping other_element : other.bannerUriMappings) {
|
|
|
146 |
__this__bannerUriMappings.add(new BannerUriMapping(other_element));
|
|
|
147 |
}
|
|
|
148 |
this.bannerUriMappings = __this__bannerUriMappings;
|
|
|
149 |
}
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
public BannerCongregate deepCopy() {
|
|
|
153 |
return new BannerCongregate(this);
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
@Override
|
|
|
157 |
public void clear() {
|
|
|
158 |
this.banner = null;
|
|
|
159 |
this.bannerMaps = null;
|
|
|
160 |
this.bannerUriMappings = null;
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
public Banner getBanner() {
|
|
|
164 |
return this.banner;
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
public void setBanner(Banner banner) {
|
|
|
168 |
this.banner = banner;
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
public void unsetBanner() {
|
|
|
172 |
this.banner = null;
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
/** Returns true if field banner is set (has been assigned a value) and false otherwise */
|
|
|
176 |
public boolean isSetBanner() {
|
|
|
177 |
return this.banner != null;
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
public void setBannerIsSet(boolean value) {
|
|
|
181 |
if (!value) {
|
|
|
182 |
this.banner = null;
|
|
|
183 |
}
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public int getBannerMapsSize() {
|
|
|
187 |
return (this.bannerMaps == null) ? 0 : this.bannerMaps.size();
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
public java.util.Iterator<BannerMap> getBannerMapsIterator() {
|
|
|
191 |
return (this.bannerMaps == null) ? null : this.bannerMaps.iterator();
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
public void addToBannerMaps(BannerMap elem) {
|
|
|
195 |
if (this.bannerMaps == null) {
|
|
|
196 |
this.bannerMaps = new ArrayList<BannerMap>();
|
|
|
197 |
}
|
|
|
198 |
this.bannerMaps.add(elem);
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
public List<BannerMap> getBannerMaps() {
|
|
|
202 |
return this.bannerMaps;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
public void setBannerMaps(List<BannerMap> bannerMaps) {
|
|
|
206 |
this.bannerMaps = bannerMaps;
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
public void unsetBannerMaps() {
|
|
|
210 |
this.bannerMaps = null;
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
/** Returns true if field bannerMaps is set (has been assigned a value) and false otherwise */
|
|
|
214 |
public boolean isSetBannerMaps() {
|
|
|
215 |
return this.bannerMaps != null;
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
public void setBannerMapsIsSet(boolean value) {
|
|
|
219 |
if (!value) {
|
|
|
220 |
this.bannerMaps = null;
|
|
|
221 |
}
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
public int getBannerUriMappingsSize() {
|
|
|
225 |
return (this.bannerUriMappings == null) ? 0 : this.bannerUriMappings.size();
|
|
|
226 |
}
|
|
|
227 |
|
|
|
228 |
public java.util.Iterator<BannerUriMapping> getBannerUriMappingsIterator() {
|
|
|
229 |
return (this.bannerUriMappings == null) ? null : this.bannerUriMappings.iterator();
|
|
|
230 |
}
|
|
|
231 |
|
|
|
232 |
public void addToBannerUriMappings(BannerUriMapping elem) {
|
|
|
233 |
if (this.bannerUriMappings == null) {
|
|
|
234 |
this.bannerUriMappings = new ArrayList<BannerUriMapping>();
|
|
|
235 |
}
|
|
|
236 |
this.bannerUriMappings.add(elem);
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
public List<BannerUriMapping> getBannerUriMappings() {
|
|
|
240 |
return this.bannerUriMappings;
|
|
|
241 |
}
|
|
|
242 |
|
|
|
243 |
public void setBannerUriMappings(List<BannerUriMapping> bannerUriMappings) {
|
|
|
244 |
this.bannerUriMappings = bannerUriMappings;
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
public void unsetBannerUriMappings() {
|
|
|
248 |
this.bannerUriMappings = null;
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
/** Returns true if field bannerUriMappings is set (has been assigned a value) and false otherwise */
|
|
|
252 |
public boolean isSetBannerUriMappings() {
|
|
|
253 |
return this.bannerUriMappings != null;
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
public void setBannerUriMappingsIsSet(boolean value) {
|
|
|
257 |
if (!value) {
|
|
|
258 |
this.bannerUriMappings = null;
|
|
|
259 |
}
|
|
|
260 |
}
|
|
|
261 |
|
|
|
262 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
263 |
switch (field) {
|
|
|
264 |
case BANNER:
|
|
|
265 |
if (value == null) {
|
|
|
266 |
unsetBanner();
|
|
|
267 |
} else {
|
|
|
268 |
setBanner((Banner)value);
|
|
|
269 |
}
|
|
|
270 |
break;
|
|
|
271 |
|
|
|
272 |
case BANNER_MAPS:
|
|
|
273 |
if (value == null) {
|
|
|
274 |
unsetBannerMaps();
|
|
|
275 |
} else {
|
|
|
276 |
setBannerMaps((List<BannerMap>)value);
|
|
|
277 |
}
|
|
|
278 |
break;
|
|
|
279 |
|
|
|
280 |
case BANNER_URI_MAPPINGS:
|
|
|
281 |
if (value == null) {
|
|
|
282 |
unsetBannerUriMappings();
|
|
|
283 |
} else {
|
|
|
284 |
setBannerUriMappings((List<BannerUriMapping>)value);
|
|
|
285 |
}
|
|
|
286 |
break;
|
|
|
287 |
|
|
|
288 |
}
|
|
|
289 |
}
|
|
|
290 |
|
|
|
291 |
public Object getFieldValue(_Fields field) {
|
|
|
292 |
switch (field) {
|
|
|
293 |
case BANNER:
|
|
|
294 |
return getBanner();
|
|
|
295 |
|
|
|
296 |
case BANNER_MAPS:
|
|
|
297 |
return getBannerMaps();
|
|
|
298 |
|
|
|
299 |
case BANNER_URI_MAPPINGS:
|
|
|
300 |
return getBannerUriMappings();
|
|
|
301 |
|
|
|
302 |
}
|
|
|
303 |
throw new IllegalStateException();
|
|
|
304 |
}
|
|
|
305 |
|
|
|
306 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
307 |
public boolean isSet(_Fields field) {
|
|
|
308 |
if (field == null) {
|
|
|
309 |
throw new IllegalArgumentException();
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
switch (field) {
|
|
|
313 |
case BANNER:
|
|
|
314 |
return isSetBanner();
|
|
|
315 |
case BANNER_MAPS:
|
|
|
316 |
return isSetBannerMaps();
|
|
|
317 |
case BANNER_URI_MAPPINGS:
|
|
|
318 |
return isSetBannerUriMappings();
|
|
|
319 |
}
|
|
|
320 |
throw new IllegalStateException();
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
@Override
|
|
|
324 |
public boolean equals(Object that) {
|
|
|
325 |
if (that == null)
|
|
|
326 |
return false;
|
|
|
327 |
if (that instanceof BannerCongregate)
|
|
|
328 |
return this.equals((BannerCongregate)that);
|
|
|
329 |
return false;
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
public boolean equals(BannerCongregate that) {
|
|
|
333 |
if (that == null)
|
|
|
334 |
return false;
|
|
|
335 |
|
|
|
336 |
boolean this_present_banner = true && this.isSetBanner();
|
|
|
337 |
boolean that_present_banner = true && that.isSetBanner();
|
|
|
338 |
if (this_present_banner || that_present_banner) {
|
|
|
339 |
if (!(this_present_banner && that_present_banner))
|
|
|
340 |
return false;
|
|
|
341 |
if (!this.banner.equals(that.banner))
|
|
|
342 |
return false;
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
boolean this_present_bannerMaps = true && this.isSetBannerMaps();
|
|
|
346 |
boolean that_present_bannerMaps = true && that.isSetBannerMaps();
|
|
|
347 |
if (this_present_bannerMaps || that_present_bannerMaps) {
|
|
|
348 |
if (!(this_present_bannerMaps && that_present_bannerMaps))
|
|
|
349 |
return false;
|
|
|
350 |
if (!this.bannerMaps.equals(that.bannerMaps))
|
|
|
351 |
return false;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
boolean this_present_bannerUriMappings = true && this.isSetBannerUriMappings();
|
|
|
355 |
boolean that_present_bannerUriMappings = true && that.isSetBannerUriMappings();
|
|
|
356 |
if (this_present_bannerUriMappings || that_present_bannerUriMappings) {
|
|
|
357 |
if (!(this_present_bannerUriMappings && that_present_bannerUriMappings))
|
|
|
358 |
return false;
|
|
|
359 |
if (!this.bannerUriMappings.equals(that.bannerUriMappings))
|
|
|
360 |
return false;
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
return true;
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
@Override
|
|
|
367 |
public int hashCode() {
|
|
|
368 |
return 0;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public int compareTo(BannerCongregate other) {
|
|
|
372 |
if (!getClass().equals(other.getClass())) {
|
|
|
373 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
int lastComparison = 0;
|
|
|
377 |
BannerCongregate typedOther = (BannerCongregate)other;
|
|
|
378 |
|
|
|
379 |
lastComparison = Boolean.valueOf(isSetBanner()).compareTo(typedOther.isSetBanner());
|
|
|
380 |
if (lastComparison != 0) {
|
|
|
381 |
return lastComparison;
|
|
|
382 |
}
|
|
|
383 |
if (isSetBanner()) {
|
|
|
384 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.banner, typedOther.banner);
|
|
|
385 |
if (lastComparison != 0) {
|
|
|
386 |
return lastComparison;
|
|
|
387 |
}
|
|
|
388 |
}
|
|
|
389 |
lastComparison = Boolean.valueOf(isSetBannerMaps()).compareTo(typedOther.isSetBannerMaps());
|
|
|
390 |
if (lastComparison != 0) {
|
|
|
391 |
return lastComparison;
|
|
|
392 |
}
|
|
|
393 |
if (isSetBannerMaps()) {
|
|
|
394 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerMaps, typedOther.bannerMaps);
|
|
|
395 |
if (lastComparison != 0) {
|
|
|
396 |
return lastComparison;
|
|
|
397 |
}
|
|
|
398 |
}
|
|
|
399 |
lastComparison = Boolean.valueOf(isSetBannerUriMappings()).compareTo(typedOther.isSetBannerUriMappings());
|
|
|
400 |
if (lastComparison != 0) {
|
|
|
401 |
return lastComparison;
|
|
|
402 |
}
|
|
|
403 |
if (isSetBannerUriMappings()) {
|
|
|
404 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerUriMappings, typedOther.bannerUriMappings);
|
|
|
405 |
if (lastComparison != 0) {
|
|
|
406 |
return lastComparison;
|
|
|
407 |
}
|
|
|
408 |
}
|
|
|
409 |
return 0;
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public _Fields fieldForId(int fieldId) {
|
|
|
413 |
return _Fields.findByThriftId(fieldId);
|
|
|
414 |
}
|
|
|
415 |
|
|
|
416 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
417 |
org.apache.thrift.protocol.TField field;
|
|
|
418 |
iprot.readStructBegin();
|
|
|
419 |
while (true)
|
|
|
420 |
{
|
|
|
421 |
field = iprot.readFieldBegin();
|
|
|
422 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
423 |
break;
|
|
|
424 |
}
|
|
|
425 |
switch (field.id) {
|
|
|
426 |
case 1: // BANNER
|
|
|
427 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
428 |
this.banner = new Banner();
|
|
|
429 |
this.banner.read(iprot);
|
|
|
430 |
} else {
|
|
|
431 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
432 |
}
|
|
|
433 |
break;
|
|
|
434 |
case 2: // BANNER_MAPS
|
|
|
435 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
436 |
{
|
|
|
437 |
org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
|
|
|
438 |
this.bannerMaps = new ArrayList<BannerMap>(_list9.size);
|
|
|
439 |
for (int _i10 = 0; _i10 < _list9.size; ++_i10)
|
|
|
440 |
{
|
|
|
441 |
BannerMap _elem11; // required
|
|
|
442 |
_elem11 = new BannerMap();
|
|
|
443 |
_elem11.read(iprot);
|
|
|
444 |
this.bannerMaps.add(_elem11);
|
|
|
445 |
}
|
|
|
446 |
iprot.readListEnd();
|
|
|
447 |
}
|
|
|
448 |
} else {
|
|
|
449 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
450 |
}
|
|
|
451 |
break;
|
|
|
452 |
case 3: // BANNER_URI_MAPPINGS
|
|
|
453 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
454 |
{
|
|
|
455 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
456 |
this.bannerUriMappings = new ArrayList<BannerUriMapping>(_list12.size);
|
|
|
457 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
|
|
458 |
{
|
|
|
459 |
BannerUriMapping _elem14; // required
|
|
|
460 |
_elem14 = new BannerUriMapping();
|
|
|
461 |
_elem14.read(iprot);
|
|
|
462 |
this.bannerUriMappings.add(_elem14);
|
|
|
463 |
}
|
|
|
464 |
iprot.readListEnd();
|
|
|
465 |
}
|
|
|
466 |
} else {
|
|
|
467 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
468 |
}
|
|
|
469 |
break;
|
|
|
470 |
default:
|
|
|
471 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
472 |
}
|
|
|
473 |
iprot.readFieldEnd();
|
|
|
474 |
}
|
|
|
475 |
iprot.readStructEnd();
|
|
|
476 |
validate();
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
480 |
validate();
|
|
|
481 |
|
|
|
482 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
483 |
if (this.banner != null) {
|
|
|
484 |
oprot.writeFieldBegin(BANNER_FIELD_DESC);
|
|
|
485 |
this.banner.write(oprot);
|
|
|
486 |
oprot.writeFieldEnd();
|
|
|
487 |
}
|
|
|
488 |
if (this.bannerMaps != null) {
|
|
|
489 |
oprot.writeFieldBegin(BANNER_MAPS_FIELD_DESC);
|
|
|
490 |
{
|
|
|
491 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bannerMaps.size()));
|
|
|
492 |
for (BannerMap _iter15 : this.bannerMaps)
|
|
|
493 |
{
|
|
|
494 |
_iter15.write(oprot);
|
|
|
495 |
}
|
|
|
496 |
oprot.writeListEnd();
|
|
|
497 |
}
|
|
|
498 |
oprot.writeFieldEnd();
|
|
|
499 |
}
|
|
|
500 |
if (this.bannerUriMappings != null) {
|
|
|
501 |
oprot.writeFieldBegin(BANNER_URI_MAPPINGS_FIELD_DESC);
|
|
|
502 |
{
|
|
|
503 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bannerUriMappings.size()));
|
|
|
504 |
for (BannerUriMapping _iter16 : this.bannerUriMappings)
|
|
|
505 |
{
|
|
|
506 |
_iter16.write(oprot);
|
|
|
507 |
}
|
|
|
508 |
oprot.writeListEnd();
|
|
|
509 |
}
|
|
|
510 |
oprot.writeFieldEnd();
|
|
|
511 |
}
|
|
|
512 |
oprot.writeFieldStop();
|
|
|
513 |
oprot.writeStructEnd();
|
|
|
514 |
}
|
|
|
515 |
|
|
|
516 |
@Override
|
|
|
517 |
public String toString() {
|
|
|
518 |
StringBuilder sb = new StringBuilder("BannerCongregate(");
|
|
|
519 |
boolean first = true;
|
|
|
520 |
|
|
|
521 |
sb.append("banner:");
|
|
|
522 |
if (this.banner == null) {
|
|
|
523 |
sb.append("null");
|
|
|
524 |
} else {
|
|
|
525 |
sb.append(this.banner);
|
|
|
526 |
}
|
|
|
527 |
first = false;
|
|
|
528 |
if (!first) sb.append(", ");
|
|
|
529 |
sb.append("bannerMaps:");
|
|
|
530 |
if (this.bannerMaps == null) {
|
|
|
531 |
sb.append("null");
|
|
|
532 |
} else {
|
|
|
533 |
sb.append(this.bannerMaps);
|
|
|
534 |
}
|
|
|
535 |
first = false;
|
|
|
536 |
if (!first) sb.append(", ");
|
|
|
537 |
sb.append("bannerUriMappings:");
|
|
|
538 |
if (this.bannerUriMappings == null) {
|
|
|
539 |
sb.append("null");
|
|
|
540 |
} else {
|
|
|
541 |
sb.append(this.bannerUriMappings);
|
|
|
542 |
}
|
|
|
543 |
first = false;
|
|
|
544 |
sb.append(")");
|
|
|
545 |
return sb.toString();
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
public void validate() throws org.apache.thrift.TException {
|
|
|
549 |
// check for required fields
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
553 |
try {
|
|
|
554 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
555 |
} catch (org.apache.thrift.TException te) {
|
|
|
556 |
throw new java.io.IOException(te);
|
|
|
557 |
}
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
561 |
try {
|
|
|
562 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
563 |
} catch (org.apache.thrift.TException te) {
|
|
|
564 |
throw new java.io.IOException(te);
|
|
|
565 |
}
|
|
|
566 |
}
|
|
|
567 |
|
|
|
568 |
}
|
|
|
569 |
|