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