| 12620 |
amit.gupta |
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 ExclusiveAffiliateItemInfo implements org.apache.thrift.TBase<ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExclusiveAffiliateItemInfo");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField AFFILIATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField AFFILIATE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateName", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField OFFER_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("offerText", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField OFFER_IMAGE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("offerImageUrl", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField M_OFFER_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("mOfferText", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField M_OFFER_IMAGE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("mOfferImageUrl", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField AFFILIATE_SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateSku", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField AFFILIATE_URL_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateUrl", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("active", org.apache.thrift.protocol.TType.BOOL, (short)10);
|
|
|
36 |
|
|
|
37 |
private long itemId; // required
|
|
|
38 |
private long affiliateId; // required
|
|
|
39 |
private String affiliateName; // required
|
|
|
40 |
private String offerText; // required
|
|
|
41 |
private String offerImageUrl; // required
|
|
|
42 |
private String mOfferText; // required
|
|
|
43 |
private String mOfferImageUrl; // required
|
|
|
44 |
private String affiliateSku; // required
|
|
|
45 |
private String affiliateUrl; // required
|
|
|
46 |
private boolean active; // required
|
|
|
47 |
|
|
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
50 |
ITEM_ID((short)1, "itemId"),
|
|
|
51 |
AFFILIATE_ID((short)2, "affiliateId"),
|
|
|
52 |
AFFILIATE_NAME((short)3, "affiliateName"),
|
|
|
53 |
OFFER_TEXT((short)4, "offerText"),
|
|
|
54 |
OFFER_IMAGE_URL((short)5, "offerImageUrl"),
|
|
|
55 |
M_OFFER_TEXT((short)6, "mOfferText"),
|
|
|
56 |
M_OFFER_IMAGE_URL((short)7, "mOfferImageUrl"),
|
|
|
57 |
AFFILIATE_SKU((short)8, "affiliateSku"),
|
|
|
58 |
AFFILIATE_URL((short)9, "affiliateUrl"),
|
|
|
59 |
ACTIVE((short)10, "active");
|
|
|
60 |
|
|
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
62 |
|
|
|
63 |
static {
|
|
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
65 |
byName.put(field.getFieldName(), field);
|
|
|
66 |
}
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
71 |
*/
|
|
|
72 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
73 |
switch(fieldId) {
|
|
|
74 |
case 1: // ITEM_ID
|
|
|
75 |
return ITEM_ID;
|
|
|
76 |
case 2: // AFFILIATE_ID
|
|
|
77 |
return AFFILIATE_ID;
|
|
|
78 |
case 3: // AFFILIATE_NAME
|
|
|
79 |
return AFFILIATE_NAME;
|
|
|
80 |
case 4: // OFFER_TEXT
|
|
|
81 |
return OFFER_TEXT;
|
|
|
82 |
case 5: // OFFER_IMAGE_URL
|
|
|
83 |
return OFFER_IMAGE_URL;
|
|
|
84 |
case 6: // M_OFFER_TEXT
|
|
|
85 |
return M_OFFER_TEXT;
|
|
|
86 |
case 7: // M_OFFER_IMAGE_URL
|
|
|
87 |
return M_OFFER_IMAGE_URL;
|
|
|
88 |
case 8: // AFFILIATE_SKU
|
|
|
89 |
return AFFILIATE_SKU;
|
|
|
90 |
case 9: // AFFILIATE_URL
|
|
|
91 |
return AFFILIATE_URL;
|
|
|
92 |
case 10: // ACTIVE
|
|
|
93 |
return ACTIVE;
|
|
|
94 |
default:
|
|
|
95 |
return null;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
101 |
* if it is not found.
|
|
|
102 |
*/
|
|
|
103 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
104 |
_Fields fields = findByThriftId(fieldId);
|
|
|
105 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
106 |
return fields;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
111 |
*/
|
|
|
112 |
public static _Fields findByName(String name) {
|
|
|
113 |
return byName.get(name);
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
private final short _thriftId;
|
|
|
117 |
private final String _fieldName;
|
|
|
118 |
|
|
|
119 |
_Fields(short thriftId, String fieldName) {
|
|
|
120 |
_thriftId = thriftId;
|
|
|
121 |
_fieldName = fieldName;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public short getThriftFieldId() {
|
|
|
125 |
return _thriftId;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public String getFieldName() {
|
|
|
129 |
return _fieldName;
|
|
|
130 |
}
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
// isset id assignments
|
|
|
134 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
135 |
private static final int __AFFILIATEID_ISSET_ID = 1;
|
|
|
136 |
private static final int __ACTIVE_ISSET_ID = 2;
|
|
|
137 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
138 |
|
|
|
139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
140 |
static {
|
|
|
141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
142 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
144 |
tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
146 |
tmpMap.put(_Fields.AFFILIATE_NAME, new org.apache.thrift.meta_data.FieldMetaData("affiliateName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
148 |
tmpMap.put(_Fields.OFFER_TEXT, new org.apache.thrift.meta_data.FieldMetaData("offerText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
150 |
tmpMap.put(_Fields.OFFER_IMAGE_URL, new org.apache.thrift.meta_data.FieldMetaData("offerImageUrl", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
152 |
tmpMap.put(_Fields.M_OFFER_TEXT, new org.apache.thrift.meta_data.FieldMetaData("mOfferText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
154 |
tmpMap.put(_Fields.M_OFFER_IMAGE_URL, new org.apache.thrift.meta_data.FieldMetaData("mOfferImageUrl", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
156 |
tmpMap.put(_Fields.AFFILIATE_SKU, new org.apache.thrift.meta_data.FieldMetaData("affiliateSku", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
158 |
tmpMap.put(_Fields.AFFILIATE_URL, new org.apache.thrift.meta_data.FieldMetaData("affiliateUrl", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
160 |
tmpMap.put(_Fields.ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("active", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
162 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
163 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ExclusiveAffiliateItemInfo.class, metaDataMap);
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public ExclusiveAffiliateItemInfo() {
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
public ExclusiveAffiliateItemInfo(
|
|
|
170 |
long itemId,
|
|
|
171 |
long affiliateId,
|
|
|
172 |
String affiliateName,
|
|
|
173 |
String offerText,
|
|
|
174 |
String offerImageUrl,
|
|
|
175 |
String mOfferText,
|
|
|
176 |
String mOfferImageUrl,
|
|
|
177 |
String affiliateSku,
|
|
|
178 |
String affiliateUrl,
|
|
|
179 |
boolean active)
|
|
|
180 |
{
|
|
|
181 |
this();
|
|
|
182 |
this.itemId = itemId;
|
|
|
183 |
setItemIdIsSet(true);
|
|
|
184 |
this.affiliateId = affiliateId;
|
|
|
185 |
setAffiliateIdIsSet(true);
|
|
|
186 |
this.affiliateName = affiliateName;
|
|
|
187 |
this.offerText = offerText;
|
|
|
188 |
this.offerImageUrl = offerImageUrl;
|
|
|
189 |
this.mOfferText = mOfferText;
|
|
|
190 |
this.mOfferImageUrl = mOfferImageUrl;
|
|
|
191 |
this.affiliateSku = affiliateSku;
|
|
|
192 |
this.affiliateUrl = affiliateUrl;
|
|
|
193 |
this.active = active;
|
|
|
194 |
setActiveIsSet(true);
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
/**
|
|
|
198 |
* Performs a deep copy on <i>other</i>.
|
|
|
199 |
*/
|
|
|
200 |
public ExclusiveAffiliateItemInfo(ExclusiveAffiliateItemInfo other) {
|
|
|
201 |
__isset_bit_vector.clear();
|
|
|
202 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
203 |
this.itemId = other.itemId;
|
|
|
204 |
this.affiliateId = other.affiliateId;
|
|
|
205 |
if (other.isSetAffiliateName()) {
|
|
|
206 |
this.affiliateName = other.affiliateName;
|
|
|
207 |
}
|
|
|
208 |
if (other.isSetOfferText()) {
|
|
|
209 |
this.offerText = other.offerText;
|
|
|
210 |
}
|
|
|
211 |
if (other.isSetOfferImageUrl()) {
|
|
|
212 |
this.offerImageUrl = other.offerImageUrl;
|
|
|
213 |
}
|
|
|
214 |
if (other.isSetMOfferText()) {
|
|
|
215 |
this.mOfferText = other.mOfferText;
|
|
|
216 |
}
|
|
|
217 |
if (other.isSetMOfferImageUrl()) {
|
|
|
218 |
this.mOfferImageUrl = other.mOfferImageUrl;
|
|
|
219 |
}
|
|
|
220 |
if (other.isSetAffiliateSku()) {
|
|
|
221 |
this.affiliateSku = other.affiliateSku;
|
|
|
222 |
}
|
|
|
223 |
if (other.isSetAffiliateUrl()) {
|
|
|
224 |
this.affiliateUrl = other.affiliateUrl;
|
|
|
225 |
}
|
|
|
226 |
this.active = other.active;
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
public ExclusiveAffiliateItemInfo deepCopy() {
|
|
|
230 |
return new ExclusiveAffiliateItemInfo(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Override
|
|
|
234 |
public void clear() {
|
|
|
235 |
setItemIdIsSet(false);
|
|
|
236 |
this.itemId = 0;
|
|
|
237 |
setAffiliateIdIsSet(false);
|
|
|
238 |
this.affiliateId = 0;
|
|
|
239 |
this.affiliateName = null;
|
|
|
240 |
this.offerText = null;
|
|
|
241 |
this.offerImageUrl = null;
|
|
|
242 |
this.mOfferText = null;
|
|
|
243 |
this.mOfferImageUrl = null;
|
|
|
244 |
this.affiliateSku = null;
|
|
|
245 |
this.affiliateUrl = null;
|
|
|
246 |
setActiveIsSet(false);
|
|
|
247 |
this.active = false;
|
|
|
248 |
}
|
|
|
249 |
|
|
|
250 |
public long getItemId() {
|
|
|
251 |
return this.itemId;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public void setItemId(long itemId) {
|
|
|
255 |
this.itemId = itemId;
|
|
|
256 |
setItemIdIsSet(true);
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
public void unsetItemId() {
|
|
|
260 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
264 |
public boolean isSetItemId() {
|
|
|
265 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
public void setItemIdIsSet(boolean value) {
|
|
|
269 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
270 |
}
|
|
|
271 |
|
|
|
272 |
public long getAffiliateId() {
|
|
|
273 |
return this.affiliateId;
|
|
|
274 |
}
|
|
|
275 |
|
|
|
276 |
public void setAffiliateId(long affiliateId) {
|
|
|
277 |
this.affiliateId = affiliateId;
|
|
|
278 |
setAffiliateIdIsSet(true);
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
public void unsetAffiliateId() {
|
|
|
282 |
__isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
|
|
|
283 |
}
|
|
|
284 |
|
|
|
285 |
/** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
|
|
|
286 |
public boolean isSetAffiliateId() {
|
|
|
287 |
return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
public void setAffiliateIdIsSet(boolean value) {
|
|
|
291 |
__isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
public String getAffiliateName() {
|
|
|
295 |
return this.affiliateName;
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
public void setAffiliateName(String affiliateName) {
|
|
|
299 |
this.affiliateName = affiliateName;
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
public void unsetAffiliateName() {
|
|
|
303 |
this.affiliateName = null;
|
|
|
304 |
}
|
|
|
305 |
|
|
|
306 |
/** Returns true if field affiliateName is set (has been assigned a value) and false otherwise */
|
|
|
307 |
public boolean isSetAffiliateName() {
|
|
|
308 |
return this.affiliateName != null;
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
public void setAffiliateNameIsSet(boolean value) {
|
|
|
312 |
if (!value) {
|
|
|
313 |
this.affiliateName = null;
|
|
|
314 |
}
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
public String getOfferText() {
|
|
|
318 |
return this.offerText;
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
public void setOfferText(String offerText) {
|
|
|
322 |
this.offerText = offerText;
|
|
|
323 |
}
|
|
|
324 |
|
|
|
325 |
public void unsetOfferText() {
|
|
|
326 |
this.offerText = null;
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
/** Returns true if field offerText is set (has been assigned a value) and false otherwise */
|
|
|
330 |
public boolean isSetOfferText() {
|
|
|
331 |
return this.offerText != null;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
public void setOfferTextIsSet(boolean value) {
|
|
|
335 |
if (!value) {
|
|
|
336 |
this.offerText = null;
|
|
|
337 |
}
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public String getOfferImageUrl() {
|
|
|
341 |
return this.offerImageUrl;
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public void setOfferImageUrl(String offerImageUrl) {
|
|
|
345 |
this.offerImageUrl = offerImageUrl;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void unsetOfferImageUrl() {
|
|
|
349 |
this.offerImageUrl = null;
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
/** Returns true if field offerImageUrl is set (has been assigned a value) and false otherwise */
|
|
|
353 |
public boolean isSetOfferImageUrl() {
|
|
|
354 |
return this.offerImageUrl != null;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
public void setOfferImageUrlIsSet(boolean value) {
|
|
|
358 |
if (!value) {
|
|
|
359 |
this.offerImageUrl = null;
|
|
|
360 |
}
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public String getMOfferText() {
|
|
|
364 |
return this.mOfferText;
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public void setMOfferText(String mOfferText) {
|
|
|
368 |
this.mOfferText = mOfferText;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void unsetMOfferText() {
|
|
|
372 |
this.mOfferText = null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
/** Returns true if field mOfferText is set (has been assigned a value) and false otherwise */
|
|
|
376 |
public boolean isSetMOfferText() {
|
|
|
377 |
return this.mOfferText != null;
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
public void setMOfferTextIsSet(boolean value) {
|
|
|
381 |
if (!value) {
|
|
|
382 |
this.mOfferText = null;
|
|
|
383 |
}
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public String getMOfferImageUrl() {
|
|
|
387 |
return this.mOfferImageUrl;
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void setMOfferImageUrl(String mOfferImageUrl) {
|
|
|
391 |
this.mOfferImageUrl = mOfferImageUrl;
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public void unsetMOfferImageUrl() {
|
|
|
395 |
this.mOfferImageUrl = null;
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
/** Returns true if field mOfferImageUrl is set (has been assigned a value) and false otherwise */
|
|
|
399 |
public boolean isSetMOfferImageUrl() {
|
|
|
400 |
return this.mOfferImageUrl != null;
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
public void setMOfferImageUrlIsSet(boolean value) {
|
|
|
404 |
if (!value) {
|
|
|
405 |
this.mOfferImageUrl = null;
|
|
|
406 |
}
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public String getAffiliateSku() {
|
|
|
410 |
return this.affiliateSku;
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setAffiliateSku(String affiliateSku) {
|
|
|
414 |
this.affiliateSku = affiliateSku;
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void unsetAffiliateSku() {
|
|
|
418 |
this.affiliateSku = null;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
/** Returns true if field affiliateSku is set (has been assigned a value) and false otherwise */
|
|
|
422 |
public boolean isSetAffiliateSku() {
|
|
|
423 |
return this.affiliateSku != null;
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void setAffiliateSkuIsSet(boolean value) {
|
|
|
427 |
if (!value) {
|
|
|
428 |
this.affiliateSku = null;
|
|
|
429 |
}
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public String getAffiliateUrl() {
|
|
|
433 |
return this.affiliateUrl;
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void setAffiliateUrl(String affiliateUrl) {
|
|
|
437 |
this.affiliateUrl = affiliateUrl;
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
public void unsetAffiliateUrl() {
|
|
|
441 |
this.affiliateUrl = null;
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
/** Returns true if field affiliateUrl is set (has been assigned a value) and false otherwise */
|
|
|
445 |
public boolean isSetAffiliateUrl() {
|
|
|
446 |
return this.affiliateUrl != null;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public void setAffiliateUrlIsSet(boolean value) {
|
|
|
450 |
if (!value) {
|
|
|
451 |
this.affiliateUrl = null;
|
|
|
452 |
}
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public boolean isActive() {
|
|
|
456 |
return this.active;
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public void setActive(boolean active) {
|
|
|
460 |
this.active = active;
|
|
|
461 |
setActiveIsSet(true);
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
public void unsetActive() {
|
|
|
465 |
__isset_bit_vector.clear(__ACTIVE_ISSET_ID);
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
/** Returns true if field active is set (has been assigned a value) and false otherwise */
|
|
|
469 |
public boolean isSetActive() {
|
|
|
470 |
return __isset_bit_vector.get(__ACTIVE_ISSET_ID);
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
public void setActiveIsSet(boolean value) {
|
|
|
474 |
__isset_bit_vector.set(__ACTIVE_ISSET_ID, value);
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
478 |
switch (field) {
|
|
|
479 |
case ITEM_ID:
|
|
|
480 |
if (value == null) {
|
|
|
481 |
unsetItemId();
|
|
|
482 |
} else {
|
|
|
483 |
setItemId((Long)value);
|
|
|
484 |
}
|
|
|
485 |
break;
|
|
|
486 |
|
|
|
487 |
case AFFILIATE_ID:
|
|
|
488 |
if (value == null) {
|
|
|
489 |
unsetAffiliateId();
|
|
|
490 |
} else {
|
|
|
491 |
setAffiliateId((Long)value);
|
|
|
492 |
}
|
|
|
493 |
break;
|
|
|
494 |
|
|
|
495 |
case AFFILIATE_NAME:
|
|
|
496 |
if (value == null) {
|
|
|
497 |
unsetAffiliateName();
|
|
|
498 |
} else {
|
|
|
499 |
setAffiliateName((String)value);
|
|
|
500 |
}
|
|
|
501 |
break;
|
|
|
502 |
|
|
|
503 |
case OFFER_TEXT:
|
|
|
504 |
if (value == null) {
|
|
|
505 |
unsetOfferText();
|
|
|
506 |
} else {
|
|
|
507 |
setOfferText((String)value);
|
|
|
508 |
}
|
|
|
509 |
break;
|
|
|
510 |
|
|
|
511 |
case OFFER_IMAGE_URL:
|
|
|
512 |
if (value == null) {
|
|
|
513 |
unsetOfferImageUrl();
|
|
|
514 |
} else {
|
|
|
515 |
setOfferImageUrl((String)value);
|
|
|
516 |
}
|
|
|
517 |
break;
|
|
|
518 |
|
|
|
519 |
case M_OFFER_TEXT:
|
|
|
520 |
if (value == null) {
|
|
|
521 |
unsetMOfferText();
|
|
|
522 |
} else {
|
|
|
523 |
setMOfferText((String)value);
|
|
|
524 |
}
|
|
|
525 |
break;
|
|
|
526 |
|
|
|
527 |
case M_OFFER_IMAGE_URL:
|
|
|
528 |
if (value == null) {
|
|
|
529 |
unsetMOfferImageUrl();
|
|
|
530 |
} else {
|
|
|
531 |
setMOfferImageUrl((String)value);
|
|
|
532 |
}
|
|
|
533 |
break;
|
|
|
534 |
|
|
|
535 |
case AFFILIATE_SKU:
|
|
|
536 |
if (value == null) {
|
|
|
537 |
unsetAffiliateSku();
|
|
|
538 |
} else {
|
|
|
539 |
setAffiliateSku((String)value);
|
|
|
540 |
}
|
|
|
541 |
break;
|
|
|
542 |
|
|
|
543 |
case AFFILIATE_URL:
|
|
|
544 |
if (value == null) {
|
|
|
545 |
unsetAffiliateUrl();
|
|
|
546 |
} else {
|
|
|
547 |
setAffiliateUrl((String)value);
|
|
|
548 |
}
|
|
|
549 |
break;
|
|
|
550 |
|
|
|
551 |
case ACTIVE:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetActive();
|
|
|
554 |
} else {
|
|
|
555 |
setActive((Boolean)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public Object getFieldValue(_Fields field) {
|
|
|
563 |
switch (field) {
|
|
|
564 |
case ITEM_ID:
|
|
|
565 |
return Long.valueOf(getItemId());
|
|
|
566 |
|
|
|
567 |
case AFFILIATE_ID:
|
|
|
568 |
return Long.valueOf(getAffiliateId());
|
|
|
569 |
|
|
|
570 |
case AFFILIATE_NAME:
|
|
|
571 |
return getAffiliateName();
|
|
|
572 |
|
|
|
573 |
case OFFER_TEXT:
|
|
|
574 |
return getOfferText();
|
|
|
575 |
|
|
|
576 |
case OFFER_IMAGE_URL:
|
|
|
577 |
return getOfferImageUrl();
|
|
|
578 |
|
|
|
579 |
case M_OFFER_TEXT:
|
|
|
580 |
return getMOfferText();
|
|
|
581 |
|
|
|
582 |
case M_OFFER_IMAGE_URL:
|
|
|
583 |
return getMOfferImageUrl();
|
|
|
584 |
|
|
|
585 |
case AFFILIATE_SKU:
|
|
|
586 |
return getAffiliateSku();
|
|
|
587 |
|
|
|
588 |
case AFFILIATE_URL:
|
|
|
589 |
return getAffiliateUrl();
|
|
|
590 |
|
|
|
591 |
case ACTIVE:
|
|
|
592 |
return Boolean.valueOf(isActive());
|
|
|
593 |
|
|
|
594 |
}
|
|
|
595 |
throw new IllegalStateException();
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
599 |
public boolean isSet(_Fields field) {
|
|
|
600 |
if (field == null) {
|
|
|
601 |
throw new IllegalArgumentException();
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
switch (field) {
|
|
|
605 |
case ITEM_ID:
|
|
|
606 |
return isSetItemId();
|
|
|
607 |
case AFFILIATE_ID:
|
|
|
608 |
return isSetAffiliateId();
|
|
|
609 |
case AFFILIATE_NAME:
|
|
|
610 |
return isSetAffiliateName();
|
|
|
611 |
case OFFER_TEXT:
|
|
|
612 |
return isSetOfferText();
|
|
|
613 |
case OFFER_IMAGE_URL:
|
|
|
614 |
return isSetOfferImageUrl();
|
|
|
615 |
case M_OFFER_TEXT:
|
|
|
616 |
return isSetMOfferText();
|
|
|
617 |
case M_OFFER_IMAGE_URL:
|
|
|
618 |
return isSetMOfferImageUrl();
|
|
|
619 |
case AFFILIATE_SKU:
|
|
|
620 |
return isSetAffiliateSku();
|
|
|
621 |
case AFFILIATE_URL:
|
|
|
622 |
return isSetAffiliateUrl();
|
|
|
623 |
case ACTIVE:
|
|
|
624 |
return isSetActive();
|
|
|
625 |
}
|
|
|
626 |
throw new IllegalStateException();
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
@Override
|
|
|
630 |
public boolean equals(Object that) {
|
|
|
631 |
if (that == null)
|
|
|
632 |
return false;
|
|
|
633 |
if (that instanceof ExclusiveAffiliateItemInfo)
|
|
|
634 |
return this.equals((ExclusiveAffiliateItemInfo)that);
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public boolean equals(ExclusiveAffiliateItemInfo that) {
|
|
|
639 |
if (that == null)
|
|
|
640 |
return false;
|
|
|
641 |
|
|
|
642 |
boolean this_present_itemId = true;
|
|
|
643 |
boolean that_present_itemId = true;
|
|
|
644 |
if (this_present_itemId || that_present_itemId) {
|
|
|
645 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
646 |
return false;
|
|
|
647 |
if (this.itemId != that.itemId)
|
|
|
648 |
return false;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
boolean this_present_affiliateId = true;
|
|
|
652 |
boolean that_present_affiliateId = true;
|
|
|
653 |
if (this_present_affiliateId || that_present_affiliateId) {
|
|
|
654 |
if (!(this_present_affiliateId && that_present_affiliateId))
|
|
|
655 |
return false;
|
|
|
656 |
if (this.affiliateId != that.affiliateId)
|
|
|
657 |
return false;
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
boolean this_present_affiliateName = true && this.isSetAffiliateName();
|
|
|
661 |
boolean that_present_affiliateName = true && that.isSetAffiliateName();
|
|
|
662 |
if (this_present_affiliateName || that_present_affiliateName) {
|
|
|
663 |
if (!(this_present_affiliateName && that_present_affiliateName))
|
|
|
664 |
return false;
|
|
|
665 |
if (!this.affiliateName.equals(that.affiliateName))
|
|
|
666 |
return false;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
boolean this_present_offerText = true && this.isSetOfferText();
|
|
|
670 |
boolean that_present_offerText = true && that.isSetOfferText();
|
|
|
671 |
if (this_present_offerText || that_present_offerText) {
|
|
|
672 |
if (!(this_present_offerText && that_present_offerText))
|
|
|
673 |
return false;
|
|
|
674 |
if (!this.offerText.equals(that.offerText))
|
|
|
675 |
return false;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
boolean this_present_offerImageUrl = true && this.isSetOfferImageUrl();
|
|
|
679 |
boolean that_present_offerImageUrl = true && that.isSetOfferImageUrl();
|
|
|
680 |
if (this_present_offerImageUrl || that_present_offerImageUrl) {
|
|
|
681 |
if (!(this_present_offerImageUrl && that_present_offerImageUrl))
|
|
|
682 |
return false;
|
|
|
683 |
if (!this.offerImageUrl.equals(that.offerImageUrl))
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
boolean this_present_mOfferText = true && this.isSetMOfferText();
|
|
|
688 |
boolean that_present_mOfferText = true && that.isSetMOfferText();
|
|
|
689 |
if (this_present_mOfferText || that_present_mOfferText) {
|
|
|
690 |
if (!(this_present_mOfferText && that_present_mOfferText))
|
|
|
691 |
return false;
|
|
|
692 |
if (!this.mOfferText.equals(that.mOfferText))
|
|
|
693 |
return false;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
boolean this_present_mOfferImageUrl = true && this.isSetMOfferImageUrl();
|
|
|
697 |
boolean that_present_mOfferImageUrl = true && that.isSetMOfferImageUrl();
|
|
|
698 |
if (this_present_mOfferImageUrl || that_present_mOfferImageUrl) {
|
|
|
699 |
if (!(this_present_mOfferImageUrl && that_present_mOfferImageUrl))
|
|
|
700 |
return false;
|
|
|
701 |
if (!this.mOfferImageUrl.equals(that.mOfferImageUrl))
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
|
|
705 |
boolean this_present_affiliateSku = true && this.isSetAffiliateSku();
|
|
|
706 |
boolean that_present_affiliateSku = true && that.isSetAffiliateSku();
|
|
|
707 |
if (this_present_affiliateSku || that_present_affiliateSku) {
|
|
|
708 |
if (!(this_present_affiliateSku && that_present_affiliateSku))
|
|
|
709 |
return false;
|
|
|
710 |
if (!this.affiliateSku.equals(that.affiliateSku))
|
|
|
711 |
return false;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
boolean this_present_affiliateUrl = true && this.isSetAffiliateUrl();
|
|
|
715 |
boolean that_present_affiliateUrl = true && that.isSetAffiliateUrl();
|
|
|
716 |
if (this_present_affiliateUrl || that_present_affiliateUrl) {
|
|
|
717 |
if (!(this_present_affiliateUrl && that_present_affiliateUrl))
|
|
|
718 |
return false;
|
|
|
719 |
if (!this.affiliateUrl.equals(that.affiliateUrl))
|
|
|
720 |
return false;
|
|
|
721 |
}
|
|
|
722 |
|
|
|
723 |
boolean this_present_active = true;
|
|
|
724 |
boolean that_present_active = true;
|
|
|
725 |
if (this_present_active || that_present_active) {
|
|
|
726 |
if (!(this_present_active && that_present_active))
|
|
|
727 |
return false;
|
|
|
728 |
if (this.active != that.active)
|
|
|
729 |
return false;
|
|
|
730 |
}
|
|
|
731 |
|
|
|
732 |
return true;
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
@Override
|
|
|
736 |
public int hashCode() {
|
|
|
737 |
return 0;
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
public int compareTo(ExclusiveAffiliateItemInfo other) {
|
|
|
741 |
if (!getClass().equals(other.getClass())) {
|
|
|
742 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
int lastComparison = 0;
|
|
|
746 |
ExclusiveAffiliateItemInfo typedOther = (ExclusiveAffiliateItemInfo)other;
|
|
|
747 |
|
|
|
748 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
749 |
if (lastComparison != 0) {
|
|
|
750 |
return lastComparison;
|
|
|
751 |
}
|
|
|
752 |
if (isSetItemId()) {
|
|
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
754 |
if (lastComparison != 0) {
|
|
|
755 |
return lastComparison;
|
|
|
756 |
}
|
|
|
757 |
}
|
|
|
758 |
lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
|
|
|
759 |
if (lastComparison != 0) {
|
|
|
760 |
return lastComparison;
|
|
|
761 |
}
|
|
|
762 |
if (isSetAffiliateId()) {
|
|
|
763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
lastComparison = Boolean.valueOf(isSetAffiliateName()).compareTo(typedOther.isSetAffiliateName());
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
if (isSetAffiliateName()) {
|
|
|
773 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateName, typedOther.affiliateName);
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
lastComparison = Boolean.valueOf(isSetOfferText()).compareTo(typedOther.isSetOfferText());
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
if (isSetOfferText()) {
|
|
|
783 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offerText, typedOther.offerText);
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
lastComparison = Boolean.valueOf(isSetOfferImageUrl()).compareTo(typedOther.isSetOfferImageUrl());
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
if (isSetOfferImageUrl()) {
|
|
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offerImageUrl, typedOther.offerImageUrl);
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
}
|
|
|
798 |
lastComparison = Boolean.valueOf(isSetMOfferText()).compareTo(typedOther.isSetMOfferText());
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
if (isSetMOfferText()) {
|
|
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mOfferText, typedOther.mOfferText);
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
lastComparison = Boolean.valueOf(isSetMOfferImageUrl()).compareTo(typedOther.isSetMOfferImageUrl());
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
if (isSetMOfferImageUrl()) {
|
|
|
813 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mOfferImageUrl, typedOther.mOfferImageUrl);
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
}
|
|
|
818 |
lastComparison = Boolean.valueOf(isSetAffiliateSku()).compareTo(typedOther.isSetAffiliateSku());
|
|
|
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
|
|
822 |
if (isSetAffiliateSku()) {
|
|
|
823 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateSku, typedOther.affiliateSku);
|
|
|
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
lastComparison = Boolean.valueOf(isSetAffiliateUrl()).compareTo(typedOther.isSetAffiliateUrl());
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
if (isSetAffiliateUrl()) {
|
|
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateUrl, typedOther.affiliateUrl);
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
}
|
|
|
838 |
lastComparison = Boolean.valueOf(isSetActive()).compareTo(typedOther.isSetActive());
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
if (isSetActive()) {
|
|
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.active, typedOther.active);
|
|
|
844 |
if (lastComparison != 0) {
|
|
|
845 |
return lastComparison;
|
|
|
846 |
}
|
|
|
847 |
}
|
|
|
848 |
return 0;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public _Fields fieldForId(int fieldId) {
|
|
|
852 |
return _Fields.findByThriftId(fieldId);
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
856 |
org.apache.thrift.protocol.TField field;
|
|
|
857 |
iprot.readStructBegin();
|
|
|
858 |
while (true)
|
|
|
859 |
{
|
|
|
860 |
field = iprot.readFieldBegin();
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
862 |
break;
|
|
|
863 |
}
|
|
|
864 |
switch (field.id) {
|
|
|
865 |
case 1: // ITEM_ID
|
|
|
866 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
867 |
this.itemId = iprot.readI64();
|
|
|
868 |
setItemIdIsSet(true);
|
|
|
869 |
} else {
|
|
|
870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
871 |
}
|
|
|
872 |
break;
|
|
|
873 |
case 2: // AFFILIATE_ID
|
|
|
874 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
875 |
this.affiliateId = iprot.readI64();
|
|
|
876 |
setAffiliateIdIsSet(true);
|
|
|
877 |
} else {
|
|
|
878 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
879 |
}
|
|
|
880 |
break;
|
|
|
881 |
case 3: // AFFILIATE_NAME
|
|
|
882 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
883 |
this.affiliateName = iprot.readString();
|
|
|
884 |
} else {
|
|
|
885 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
886 |
}
|
|
|
887 |
break;
|
|
|
888 |
case 4: // OFFER_TEXT
|
|
|
889 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
890 |
this.offerText = iprot.readString();
|
|
|
891 |
} else {
|
|
|
892 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
893 |
}
|
|
|
894 |
break;
|
|
|
895 |
case 5: // OFFER_IMAGE_URL
|
|
|
896 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
897 |
this.offerImageUrl = iprot.readString();
|
|
|
898 |
} else {
|
|
|
899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
900 |
}
|
|
|
901 |
break;
|
|
|
902 |
case 6: // M_OFFER_TEXT
|
|
|
903 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
904 |
this.mOfferText = iprot.readString();
|
|
|
905 |
} else {
|
|
|
906 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
907 |
}
|
|
|
908 |
break;
|
|
|
909 |
case 7: // M_OFFER_IMAGE_URL
|
|
|
910 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
911 |
this.mOfferImageUrl = iprot.readString();
|
|
|
912 |
} else {
|
|
|
913 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
914 |
}
|
|
|
915 |
break;
|
|
|
916 |
case 8: // AFFILIATE_SKU
|
|
|
917 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
918 |
this.affiliateSku = iprot.readString();
|
|
|
919 |
} else {
|
|
|
920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
921 |
}
|
|
|
922 |
break;
|
|
|
923 |
case 9: // AFFILIATE_URL
|
|
|
924 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
925 |
this.affiliateUrl = iprot.readString();
|
|
|
926 |
} else {
|
|
|
927 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
928 |
}
|
|
|
929 |
break;
|
|
|
930 |
case 10: // ACTIVE
|
|
|
931 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
932 |
this.active = iprot.readBool();
|
|
|
933 |
setActiveIsSet(true);
|
|
|
934 |
} else {
|
|
|
935 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
936 |
}
|
|
|
937 |
break;
|
|
|
938 |
default:
|
|
|
939 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
940 |
}
|
|
|
941 |
iprot.readFieldEnd();
|
|
|
942 |
}
|
|
|
943 |
iprot.readStructEnd();
|
|
|
944 |
validate();
|
|
|
945 |
}
|
|
|
946 |
|
|
|
947 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
948 |
validate();
|
|
|
949 |
|
|
|
950 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
951 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
952 |
oprot.writeI64(this.itemId);
|
|
|
953 |
oprot.writeFieldEnd();
|
|
|
954 |
oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
|
|
|
955 |
oprot.writeI64(this.affiliateId);
|
|
|
956 |
oprot.writeFieldEnd();
|
|
|
957 |
if (this.affiliateName != null) {
|
|
|
958 |
oprot.writeFieldBegin(AFFILIATE_NAME_FIELD_DESC);
|
|
|
959 |
oprot.writeString(this.affiliateName);
|
|
|
960 |
oprot.writeFieldEnd();
|
|
|
961 |
}
|
|
|
962 |
if (this.offerText != null) {
|
|
|
963 |
oprot.writeFieldBegin(OFFER_TEXT_FIELD_DESC);
|
|
|
964 |
oprot.writeString(this.offerText);
|
|
|
965 |
oprot.writeFieldEnd();
|
|
|
966 |
}
|
|
|
967 |
if (this.offerImageUrl != null) {
|
|
|
968 |
oprot.writeFieldBegin(OFFER_IMAGE_URL_FIELD_DESC);
|
|
|
969 |
oprot.writeString(this.offerImageUrl);
|
|
|
970 |
oprot.writeFieldEnd();
|
|
|
971 |
}
|
|
|
972 |
if (this.mOfferText != null) {
|
|
|
973 |
oprot.writeFieldBegin(M_OFFER_TEXT_FIELD_DESC);
|
|
|
974 |
oprot.writeString(this.mOfferText);
|
|
|
975 |
oprot.writeFieldEnd();
|
|
|
976 |
}
|
|
|
977 |
if (this.mOfferImageUrl != null) {
|
|
|
978 |
oprot.writeFieldBegin(M_OFFER_IMAGE_URL_FIELD_DESC);
|
|
|
979 |
oprot.writeString(this.mOfferImageUrl);
|
|
|
980 |
oprot.writeFieldEnd();
|
|
|
981 |
}
|
|
|
982 |
if (this.affiliateSku != null) {
|
|
|
983 |
oprot.writeFieldBegin(AFFILIATE_SKU_FIELD_DESC);
|
|
|
984 |
oprot.writeString(this.affiliateSku);
|
|
|
985 |
oprot.writeFieldEnd();
|
|
|
986 |
}
|
|
|
987 |
if (this.affiliateUrl != null) {
|
|
|
988 |
oprot.writeFieldBegin(AFFILIATE_URL_FIELD_DESC);
|
|
|
989 |
oprot.writeString(this.affiliateUrl);
|
|
|
990 |
oprot.writeFieldEnd();
|
|
|
991 |
}
|
|
|
992 |
oprot.writeFieldBegin(ACTIVE_FIELD_DESC);
|
|
|
993 |
oprot.writeBool(this.active);
|
|
|
994 |
oprot.writeFieldEnd();
|
|
|
995 |
oprot.writeFieldStop();
|
|
|
996 |
oprot.writeStructEnd();
|
|
|
997 |
}
|
|
|
998 |
|
|
|
999 |
@Override
|
|
|
1000 |
public String toString() {
|
|
|
1001 |
StringBuilder sb = new StringBuilder("ExclusiveAffiliateItemInfo(");
|
|
|
1002 |
boolean first = true;
|
|
|
1003 |
|
|
|
1004 |
sb.append("itemId:");
|
|
|
1005 |
sb.append(this.itemId);
|
|
|
1006 |
first = false;
|
|
|
1007 |
if (!first) sb.append(", ");
|
|
|
1008 |
sb.append("affiliateId:");
|
|
|
1009 |
sb.append(this.affiliateId);
|
|
|
1010 |
first = false;
|
|
|
1011 |
if (!first) sb.append(", ");
|
|
|
1012 |
sb.append("affiliateName:");
|
|
|
1013 |
if (this.affiliateName == null) {
|
|
|
1014 |
sb.append("null");
|
|
|
1015 |
} else {
|
|
|
1016 |
sb.append(this.affiliateName);
|
|
|
1017 |
}
|
|
|
1018 |
first = false;
|
|
|
1019 |
if (!first) sb.append(", ");
|
|
|
1020 |
sb.append("offerText:");
|
|
|
1021 |
if (this.offerText == null) {
|
|
|
1022 |
sb.append("null");
|
|
|
1023 |
} else {
|
|
|
1024 |
sb.append(this.offerText);
|
|
|
1025 |
}
|
|
|
1026 |
first = false;
|
|
|
1027 |
if (!first) sb.append(", ");
|
|
|
1028 |
sb.append("offerImageUrl:");
|
|
|
1029 |
if (this.offerImageUrl == null) {
|
|
|
1030 |
sb.append("null");
|
|
|
1031 |
} else {
|
|
|
1032 |
sb.append(this.offerImageUrl);
|
|
|
1033 |
}
|
|
|
1034 |
first = false;
|
|
|
1035 |
if (!first) sb.append(", ");
|
|
|
1036 |
sb.append("mOfferText:");
|
|
|
1037 |
if (this.mOfferText == null) {
|
|
|
1038 |
sb.append("null");
|
|
|
1039 |
} else {
|
|
|
1040 |
sb.append(this.mOfferText);
|
|
|
1041 |
}
|
|
|
1042 |
first = false;
|
|
|
1043 |
if (!first) sb.append(", ");
|
|
|
1044 |
sb.append("mOfferImageUrl:");
|
|
|
1045 |
if (this.mOfferImageUrl == null) {
|
|
|
1046 |
sb.append("null");
|
|
|
1047 |
} else {
|
|
|
1048 |
sb.append(this.mOfferImageUrl);
|
|
|
1049 |
}
|
|
|
1050 |
first = false;
|
|
|
1051 |
if (!first) sb.append(", ");
|
|
|
1052 |
sb.append("affiliateSku:");
|
|
|
1053 |
if (this.affiliateSku == null) {
|
|
|
1054 |
sb.append("null");
|
|
|
1055 |
} else {
|
|
|
1056 |
sb.append(this.affiliateSku);
|
|
|
1057 |
}
|
|
|
1058 |
first = false;
|
|
|
1059 |
if (!first) sb.append(", ");
|
|
|
1060 |
sb.append("affiliateUrl:");
|
|
|
1061 |
if (this.affiliateUrl == null) {
|
|
|
1062 |
sb.append("null");
|
|
|
1063 |
} else {
|
|
|
1064 |
sb.append(this.affiliateUrl);
|
|
|
1065 |
}
|
|
|
1066 |
first = false;
|
|
|
1067 |
if (!first) sb.append(", ");
|
|
|
1068 |
sb.append("active:");
|
|
|
1069 |
sb.append(this.active);
|
|
|
1070 |
first = false;
|
|
|
1071 |
sb.append(")");
|
|
|
1072 |
return sb.toString();
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1076 |
// check for required fields
|
|
|
1077 |
}
|
|
|
1078 |
|
|
|
1079 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1080 |
try {
|
|
|
1081 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1082 |
} catch (org.apache.thrift.TException te) {
|
|
|
1083 |
throw new java.io.IOException(te);
|
|
|
1084 |
}
|
|
|
1085 |
}
|
|
|
1086 |
|
|
|
1087 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1088 |
try {
|
|
|
1089 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1090 |
__isset_bit_vector = new BitSet(1);
|
|
|
1091 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1092 |
} catch (org.apache.thrift.TException te) {
|
|
|
1093 |
throw new java.io.IOException(te);
|
|
|
1094 |
}
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
}
|
|
|
1098 |
|