Subversion Repositories SmartDukaan

Rev

Rev 2747 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2747 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.payments;
6
package in.shop2020.payments;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Refund implements TBase<Refund._Fields>, java.io.Serializable, Cloneable, Comparable<Refund> {
23
public class Refund implements org.apache.thrift.TBase<Refund, Refund._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Refund");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Refund");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField PAYMENT_ID_FIELD_DESC = new TField("paymentId", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentId", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField GATEWAY_ID_FIELD_DESC = new TField("gatewayId", TType.I64, (short)3);
28
  private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.I64, (short)3);
32
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
34
  private static final TField GATEWAY_TXN_ID_FIELD_DESC = new TField("gatewayTxnId", TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField GATEWAY_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayTxnId", org.apache.thrift.protocol.TType.STRING, (short)6);
35
  private static final TField ATTEMPTS_FIELD_DESC = new TField("attempts", TType.I32, (short)7);
32
  private static final org.apache.thrift.protocol.TField ATTEMPTS_FIELD_DESC = new org.apache.thrift.protocol.TField("attempts", org.apache.thrift.protocol.TType.I32, (short)7);
36
  private static final TField CREATED_AT_FIELD_DESC = new TField("createdAt", TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)8);
37
  private static final TField PROCESSED_AT_FIELD_DESC = new TField("processedAt", TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField PROCESSED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("processedAt", org.apache.thrift.protocol.TType.I64, (short)9);
38
  private static final TField ATTRIBUTES_FIELD_DESC = new TField("attributes", TType.LIST, (short)10);
35
  private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)10);
39
 
36
 
40
  private long id;
37
  private long id; // required
41
  private long paymentId;
38
  private long paymentId; // required
42
  private long gatewayId;
39
  private long gatewayId; // required
43
  private long orderId;
40
  private long orderId; // required
44
  private double amount;
41
  private double amount; // required
45
  private String gatewayTxnId;
42
  private String gatewayTxnId; // required
46
  private int attempts;
43
  private int attempts; // required
47
  private long createdAt;
44
  private long createdAt; // required
48
  private long processedAt;
45
  private long processedAt; // required
49
  private List<Attribute> attributes;
46
  private List<Attribute> attributes; // required
50
 
47
 
51
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  public enum _Fields implements TFieldIdEnum {
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
    ID((short)1, "id"),
50
    ID((short)1, "id"),
54
    PAYMENT_ID((short)2, "paymentId"),
51
    PAYMENT_ID((short)2, "paymentId"),
55
    GATEWAY_ID((short)3, "gatewayId"),
52
    GATEWAY_ID((short)3, "gatewayId"),
56
    ORDER_ID((short)4, "orderId"),
53
    ORDER_ID((short)4, "orderId"),
57
    AMOUNT((short)5, "amount"),
54
    AMOUNT((short)5, "amount"),
Line 59... Line 56...
59
    ATTEMPTS((short)7, "attempts"),
56
    ATTEMPTS((short)7, "attempts"),
60
    CREATED_AT((short)8, "createdAt"),
57
    CREATED_AT((short)8, "createdAt"),
61
    PROCESSED_AT((short)9, "processedAt"),
58
    PROCESSED_AT((short)9, "processedAt"),
62
    ATTRIBUTES((short)10, "attributes");
59
    ATTRIBUTES((short)10, "attributes");
63
 
60
 
64
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
65
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
66
 
62
 
67
    static {
63
    static {
68
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
69
        byId.put((int)field._thriftId, field);
-
 
70
        byName.put(field.getFieldName(), field);
65
        byName.put(field.getFieldName(), field);
71
      }
66
      }
72
    }
67
    }
73
 
68
 
74
    /**
69
    /**
75
     * Find the _Fields constant that matches fieldId, or null if its not found.
70
     * Find the _Fields constant that matches fieldId, or null if its not found.
76
     */
71
     */
77
    public static _Fields findByThriftId(int fieldId) {
72
    public static _Fields findByThriftId(int fieldId) {
78
      return byId.get(fieldId);
73
      switch(fieldId) {
-
 
74
        case 1: // ID
-
 
75
          return ID;
-
 
76
        case 2: // PAYMENT_ID
-
 
77
          return PAYMENT_ID;
-
 
78
        case 3: // GATEWAY_ID
-
 
79
          return GATEWAY_ID;
-
 
80
        case 4: // ORDER_ID
-
 
81
          return ORDER_ID;
-
 
82
        case 5: // AMOUNT
-
 
83
          return AMOUNT;
-
 
84
        case 6: // GATEWAY_TXN_ID
-
 
85
          return GATEWAY_TXN_ID;
-
 
86
        case 7: // ATTEMPTS
-
 
87
          return ATTEMPTS;
-
 
88
        case 8: // CREATED_AT
-
 
89
          return CREATED_AT;
-
 
90
        case 9: // PROCESSED_AT
-
 
91
          return PROCESSED_AT;
-
 
92
        case 10: // ATTRIBUTES
-
 
93
          return ATTRIBUTES;
-
 
94
        default:
-
 
95
          return null;
-
 
96
      }
79
    }
97
    }
80
 
98
 
81
    /**
99
    /**
82
     * Find the _Fields constant that matches fieldId, throwing an exception
100
     * Find the _Fields constant that matches fieldId, throwing an exception
83
     * if it is not found.
101
     * if it is not found.
Line 121... Line 139...
121
  private static final int __ATTEMPTS_ISSET_ID = 5;
139
  private static final int __ATTEMPTS_ISSET_ID = 5;
122
  private static final int __CREATEDAT_ISSET_ID = 6;
140
  private static final int __CREATEDAT_ISSET_ID = 6;
123
  private static final int __PROCESSEDAT_ISSET_ID = 7;
141
  private static final int __PROCESSEDAT_ISSET_ID = 7;
124
  private BitSet __isset_bit_vector = new BitSet(8);
142
  private BitSet __isset_bit_vector = new BitSet(8);
125
 
143
 
126
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
144
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
127
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
128
        new FieldValueMetaData(TType.I64)));
-
 
129
    put(_Fields.PAYMENT_ID, new FieldMetaData("paymentId", TFieldRequirementType.DEFAULT, 
-
 
130
        new FieldValueMetaData(TType.I64)));
-
 
131
    put(_Fields.GATEWAY_ID, new FieldMetaData("gatewayId", TFieldRequirementType.DEFAULT, 
-
 
132
        new FieldValueMetaData(TType.I64)));
-
 
133
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
134
        new FieldValueMetaData(TType.I64)));
-
 
135
    put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
136
        new FieldValueMetaData(TType.DOUBLE)));
-
 
137
    put(_Fields.GATEWAY_TXN_ID, new FieldMetaData("gatewayTxnId", TFieldRequirementType.DEFAULT, 
-
 
138
        new FieldValueMetaData(TType.STRING)));
-
 
139
    put(_Fields.ATTEMPTS, new FieldMetaData("attempts", TFieldRequirementType.DEFAULT, 
-
 
140
        new FieldValueMetaData(TType.I32)));
-
 
141
    put(_Fields.CREATED_AT, new FieldMetaData("createdAt", TFieldRequirementType.DEFAULT, 
-
 
142
        new FieldValueMetaData(TType.I64)));
-
 
143
    put(_Fields.PROCESSED_AT, new FieldMetaData("processedAt", TFieldRequirementType.DEFAULT, 
-
 
144
        new FieldValueMetaData(TType.I64)));
-
 
145
    put(_Fields.ATTRIBUTES, new FieldMetaData("attributes", TFieldRequirementType.DEFAULT, 
-
 
146
        new ListMetaData(TType.LIST, 
-
 
147
            new StructMetaData(TType.STRUCT, Attribute.class))));
-
 
148
  }});
-
 
149
 
-
 
150
  static {
145
  static {
-
 
146
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
147
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
149
    tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
150
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
151
    tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
153
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
155
    tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
157
    tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
159
    tmpMap.put(_Fields.ATTEMPTS, new org.apache.thrift.meta_data.FieldMetaData("attempts", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
161
    tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
163
    tmpMap.put(_Fields.PROCESSED_AT, new org.apache.thrift.meta_data.FieldMetaData("processedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
165
    tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
167
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
168
    metaDataMap = Collections.unmodifiableMap(tmpMap);
151
    FieldMetaData.addStructMetaDataMap(Refund.class, metaDataMap);
169
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Refund.class, metaDataMap);
152
  }
170
  }
153
 
171
 
154
  public Refund() {
172
  public Refund() {
155
  }
173
  }
156
 
174
 
Line 215... Line 233...
215
 
233
 
216
  public Refund deepCopy() {
234
  public Refund deepCopy() {
217
    return new Refund(this);
235
    return new Refund(this);
218
  }
236
  }
219
 
237
 
220
  @Deprecated
238
  @Override
221
  public Refund clone() {
239
  public void clear() {
-
 
240
    setIdIsSet(false);
-
 
241
    this.id = 0;
-
 
242
    setPaymentIdIsSet(false);
-
 
243
    this.paymentId = 0;
-
 
244
    setGatewayIdIsSet(false);
-
 
245
    this.gatewayId = 0;
-
 
246
    setOrderIdIsSet(false);
-
 
247
    this.orderId = 0;
-
 
248
    setAmountIsSet(false);
-
 
249
    this.amount = 0.0;
-
 
250
    this.gatewayTxnId = null;
-
 
251
    setAttemptsIsSet(false);
-
 
252
    this.attempts = 0;
222
    return new Refund(this);
253
    setCreatedAtIsSet(false);
-
 
254
    this.createdAt = 0;
-
 
255
    setProcessedAtIsSet(false);
-
 
256
    this.processedAt = 0;
-
 
257
    this.attributes = null;
223
  }
258
  }
224
 
259
 
225
  public long getId() {
260
  public long getId() {
226
    return this.id;
261
    return this.id;
227
  }
262
  }
228
 
263
 
229
  public Refund setId(long id) {
264
  public void setId(long id) {
230
    this.id = id;
265
    this.id = id;
231
    setIdIsSet(true);
266
    setIdIsSet(true);
232
    return this;
-
 
233
  }
267
  }
234
 
268
 
235
  public void unsetId() {
269
  public void unsetId() {
236
    __isset_bit_vector.clear(__ID_ISSET_ID);
270
    __isset_bit_vector.clear(__ID_ISSET_ID);
237
  }
271
  }
238
 
272
 
239
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
273
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
240
  public boolean isSetId() {
274
  public boolean isSetId() {
241
    return __isset_bit_vector.get(__ID_ISSET_ID);
275
    return __isset_bit_vector.get(__ID_ISSET_ID);
242
  }
276
  }
243
 
277
 
244
  public void setIdIsSet(boolean value) {
278
  public void setIdIsSet(boolean value) {
Line 247... Line 281...
247
 
281
 
248
  public long getPaymentId() {
282
  public long getPaymentId() {
249
    return this.paymentId;
283
    return this.paymentId;
250
  }
284
  }
251
 
285
 
252
  public Refund setPaymentId(long paymentId) {
286
  public void setPaymentId(long paymentId) {
253
    this.paymentId = paymentId;
287
    this.paymentId = paymentId;
254
    setPaymentIdIsSet(true);
288
    setPaymentIdIsSet(true);
255
    return this;
-
 
256
  }
289
  }
257
 
290
 
258
  public void unsetPaymentId() {
291
  public void unsetPaymentId() {
259
    __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
292
    __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
260
  }
293
  }
261
 
294
 
262
  /** Returns true if field paymentId is set (has been asigned a value) and false otherwise */
295
  /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
263
  public boolean isSetPaymentId() {
296
  public boolean isSetPaymentId() {
264
    return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
297
    return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
265
  }
298
  }
266
 
299
 
267
  public void setPaymentIdIsSet(boolean value) {
300
  public void setPaymentIdIsSet(boolean value) {
Line 270... Line 303...
270
 
303
 
271
  public long getGatewayId() {
304
  public long getGatewayId() {
272
    return this.gatewayId;
305
    return this.gatewayId;
273
  }
306
  }
274
 
307
 
275
  public Refund setGatewayId(long gatewayId) {
308
  public void setGatewayId(long gatewayId) {
276
    this.gatewayId = gatewayId;
309
    this.gatewayId = gatewayId;
277
    setGatewayIdIsSet(true);
310
    setGatewayIdIsSet(true);
278
    return this;
-
 
279
  }
311
  }
280
 
312
 
281
  public void unsetGatewayId() {
313
  public void unsetGatewayId() {
282
    __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
314
    __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
283
  }
315
  }
284
 
316
 
285
  /** Returns true if field gatewayId is set (has been asigned a value) and false otherwise */
317
  /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
286
  public boolean isSetGatewayId() {
318
  public boolean isSetGatewayId() {
287
    return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
319
    return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
288
  }
320
  }
289
 
321
 
290
  public void setGatewayIdIsSet(boolean value) {
322
  public void setGatewayIdIsSet(boolean value) {
Line 293... Line 325...
293
 
325
 
294
  public long getOrderId() {
326
  public long getOrderId() {
295
    return this.orderId;
327
    return this.orderId;
296
  }
328
  }
297
 
329
 
298
  public Refund setOrderId(long orderId) {
330
  public void setOrderId(long orderId) {
299
    this.orderId = orderId;
331
    this.orderId = orderId;
300
    setOrderIdIsSet(true);
332
    setOrderIdIsSet(true);
301
    return this;
-
 
302
  }
333
  }
303
 
334
 
304
  public void unsetOrderId() {
335
  public void unsetOrderId() {
305
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
336
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
306
  }
337
  }
307
 
338
 
308
  /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
339
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
309
  public boolean isSetOrderId() {
340
  public boolean isSetOrderId() {
310
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
341
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
311
  }
342
  }
312
 
343
 
313
  public void setOrderIdIsSet(boolean value) {
344
  public void setOrderIdIsSet(boolean value) {
Line 316... Line 347...
316
 
347
 
317
  public double getAmount() {
348
  public double getAmount() {
318
    return this.amount;
349
    return this.amount;
319
  }
350
  }
320
 
351
 
321
  public Refund setAmount(double amount) {
352
  public void setAmount(double amount) {
322
    this.amount = amount;
353
    this.amount = amount;
323
    setAmountIsSet(true);
354
    setAmountIsSet(true);
324
    return this;
-
 
325
  }
355
  }
326
 
356
 
327
  public void unsetAmount() {
357
  public void unsetAmount() {
328
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
358
    __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
329
  }
359
  }
330
 
360
 
331
  /** Returns true if field amount is set (has been asigned a value) and false otherwise */
361
  /** Returns true if field amount is set (has been assigned a value) and false otherwise */
332
  public boolean isSetAmount() {
362
  public boolean isSetAmount() {
333
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
363
    return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
334
  }
364
  }
335
 
365
 
336
  public void setAmountIsSet(boolean value) {
366
  public void setAmountIsSet(boolean value) {
Line 339... Line 369...
339
 
369
 
340
  public String getGatewayTxnId() {
370
  public String getGatewayTxnId() {
341
    return this.gatewayTxnId;
371
    return this.gatewayTxnId;
342
  }
372
  }
343
 
373
 
344
  public Refund setGatewayTxnId(String gatewayTxnId) {
374
  public void setGatewayTxnId(String gatewayTxnId) {
345
    this.gatewayTxnId = gatewayTxnId;
375
    this.gatewayTxnId = gatewayTxnId;
346
    return this;
-
 
347
  }
376
  }
348
 
377
 
349
  public void unsetGatewayTxnId() {
378
  public void unsetGatewayTxnId() {
350
    this.gatewayTxnId = null;
379
    this.gatewayTxnId = null;
351
  }
380
  }
352
 
381
 
353
  /** Returns true if field gatewayTxnId is set (has been asigned a value) and false otherwise */
382
  /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
354
  public boolean isSetGatewayTxnId() {
383
  public boolean isSetGatewayTxnId() {
355
    return this.gatewayTxnId != null;
384
    return this.gatewayTxnId != null;
356
  }
385
  }
357
 
386
 
358
  public void setGatewayTxnIdIsSet(boolean value) {
387
  public void setGatewayTxnIdIsSet(boolean value) {
Line 363... Line 392...
363
 
392
 
364
  public int getAttempts() {
393
  public int getAttempts() {
365
    return this.attempts;
394
    return this.attempts;
366
  }
395
  }
367
 
396
 
368
  public Refund setAttempts(int attempts) {
397
  public void setAttempts(int attempts) {
369
    this.attempts = attempts;
398
    this.attempts = attempts;
370
    setAttemptsIsSet(true);
399
    setAttemptsIsSet(true);
371
    return this;
-
 
372
  }
400
  }
373
 
401
 
374
  public void unsetAttempts() {
402
  public void unsetAttempts() {
375
    __isset_bit_vector.clear(__ATTEMPTS_ISSET_ID);
403
    __isset_bit_vector.clear(__ATTEMPTS_ISSET_ID);
376
  }
404
  }
377
 
405
 
378
  /** Returns true if field attempts is set (has been asigned a value) and false otherwise */
406
  /** Returns true if field attempts is set (has been assigned a value) and false otherwise */
379
  public boolean isSetAttempts() {
407
  public boolean isSetAttempts() {
380
    return __isset_bit_vector.get(__ATTEMPTS_ISSET_ID);
408
    return __isset_bit_vector.get(__ATTEMPTS_ISSET_ID);
381
  }
409
  }
382
 
410
 
383
  public void setAttemptsIsSet(boolean value) {
411
  public void setAttemptsIsSet(boolean value) {
Line 386... Line 414...
386
 
414
 
387
  public long getCreatedAt() {
415
  public long getCreatedAt() {
388
    return this.createdAt;
416
    return this.createdAt;
389
  }
417
  }
390
 
418
 
391
  public Refund setCreatedAt(long createdAt) {
419
  public void setCreatedAt(long createdAt) {
392
    this.createdAt = createdAt;
420
    this.createdAt = createdAt;
393
    setCreatedAtIsSet(true);
421
    setCreatedAtIsSet(true);
394
    return this;
-
 
395
  }
422
  }
396
 
423
 
397
  public void unsetCreatedAt() {
424
  public void unsetCreatedAt() {
398
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
425
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
399
  }
426
  }
400
 
427
 
401
  /** Returns true if field createdAt is set (has been asigned a value) and false otherwise */
428
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
402
  public boolean isSetCreatedAt() {
429
  public boolean isSetCreatedAt() {
403
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
430
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
404
  }
431
  }
405
 
432
 
406
  public void setCreatedAtIsSet(boolean value) {
433
  public void setCreatedAtIsSet(boolean value) {
Line 409... Line 436...
409
 
436
 
410
  public long getProcessedAt() {
437
  public long getProcessedAt() {
411
    return this.processedAt;
438
    return this.processedAt;
412
  }
439
  }
413
 
440
 
414
  public Refund setProcessedAt(long processedAt) {
441
  public void setProcessedAt(long processedAt) {
415
    this.processedAt = processedAt;
442
    this.processedAt = processedAt;
416
    setProcessedAtIsSet(true);
443
    setProcessedAtIsSet(true);
417
    return this;
-
 
418
  }
444
  }
419
 
445
 
420
  public void unsetProcessedAt() {
446
  public void unsetProcessedAt() {
421
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
447
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
422
  }
448
  }
423
 
449
 
424
  /** Returns true if field processedAt is set (has been asigned a value) and false otherwise */
450
  /** Returns true if field processedAt is set (has been assigned a value) and false otherwise */
425
  public boolean isSetProcessedAt() {
451
  public boolean isSetProcessedAt() {
426
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
452
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
427
  }
453
  }
428
 
454
 
429
  public void setProcessedAtIsSet(boolean value) {
455
  public void setProcessedAtIsSet(boolean value) {
Line 447... Line 473...
447
 
473
 
448
  public List<Attribute> getAttributes() {
474
  public List<Attribute> getAttributes() {
449
    return this.attributes;
475
    return this.attributes;
450
  }
476
  }
451
 
477
 
452
  public Refund setAttributes(List<Attribute> attributes) {
478
  public void setAttributes(List<Attribute> attributes) {
453
    this.attributes = attributes;
479
    this.attributes = attributes;
454
    return this;
-
 
455
  }
480
  }
456
 
481
 
457
  public void unsetAttributes() {
482
  public void unsetAttributes() {
458
    this.attributes = null;
483
    this.attributes = null;
459
  }
484
  }
460
 
485
 
461
  /** Returns true if field attributes is set (has been asigned a value) and false otherwise */
486
  /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
462
  public boolean isSetAttributes() {
487
  public boolean isSetAttributes() {
463
    return this.attributes != null;
488
    return this.attributes != null;
464
  }
489
  }
465
 
490
 
466
  public void setAttributesIsSet(boolean value) {
491
  public void setAttributesIsSet(boolean value) {
Line 552... Line 577...
552
      break;
577
      break;
553
 
578
 
554
    }
579
    }
555
  }
580
  }
556
 
581
 
557
  public void setFieldValue(int fieldID, Object value) {
-
 
558
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
559
  }
-
 
560
 
-
 
561
  public Object getFieldValue(_Fields field) {
582
  public Object getFieldValue(_Fields field) {
562
    switch (field) {
583
    switch (field) {
563
    case ID:
584
    case ID:
564
      return new Long(getId());
585
      return Long.valueOf(getId());
565
 
586
 
566
    case PAYMENT_ID:
587
    case PAYMENT_ID:
567
      return new Long(getPaymentId());
588
      return Long.valueOf(getPaymentId());
568
 
589
 
569
    case GATEWAY_ID:
590
    case GATEWAY_ID:
570
      return new Long(getGatewayId());
591
      return Long.valueOf(getGatewayId());
571
 
592
 
572
    case ORDER_ID:
593
    case ORDER_ID:
573
      return new Long(getOrderId());
594
      return Long.valueOf(getOrderId());
574
 
595
 
575
    case AMOUNT:
596
    case AMOUNT:
576
      return new Double(getAmount());
597
      return Double.valueOf(getAmount());
577
 
598
 
578
    case GATEWAY_TXN_ID:
599
    case GATEWAY_TXN_ID:
579
      return getGatewayTxnId();
600
      return getGatewayTxnId();
580
 
601
 
581
    case ATTEMPTS:
602
    case ATTEMPTS:
582
      return new Integer(getAttempts());
603
      return Integer.valueOf(getAttempts());
583
 
604
 
584
    case CREATED_AT:
605
    case CREATED_AT:
585
      return new Long(getCreatedAt());
606
      return Long.valueOf(getCreatedAt());
586
 
607
 
587
    case PROCESSED_AT:
608
    case PROCESSED_AT:
588
      return new Long(getProcessedAt());
609
      return Long.valueOf(getProcessedAt());
589
 
610
 
590
    case ATTRIBUTES:
611
    case ATTRIBUTES:
591
      return getAttributes();
612
      return getAttributes();
592
 
613
 
593
    }
614
    }
594
    throw new IllegalStateException();
615
    throw new IllegalStateException();
595
  }
616
  }
596
 
617
 
597
  public Object getFieldValue(int fieldId) {
-
 
598
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
599
  }
-
 
600
 
-
 
601
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
618
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
602
  public boolean isSet(_Fields field) {
619
  public boolean isSet(_Fields field) {
-
 
620
    if (field == null) {
-
 
621
      throw new IllegalArgumentException();
-
 
622
    }
-
 
623
 
603
    switch (field) {
624
    switch (field) {
604
    case ID:
625
    case ID:
605
      return isSetId();
626
      return isSetId();
606
    case PAYMENT_ID:
627
    case PAYMENT_ID:
607
      return isSetPaymentId();
628
      return isSetPaymentId();
Line 623... Line 644...
623
      return isSetAttributes();
644
      return isSetAttributes();
624
    }
645
    }
625
    throw new IllegalStateException();
646
    throw new IllegalStateException();
626
  }
647
  }
627
 
648
 
628
  public boolean isSet(int fieldID) {
-
 
629
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
630
  }
-
 
631
 
-
 
632
  @Override
649
  @Override
633
  public boolean equals(Object that) {
650
  public boolean equals(Object that) {
634
    if (that == null)
651
    if (that == null)
635
      return false;
652
      return false;
636
    if (that instanceof Refund)
653
    if (that instanceof Refund)
Line 746... Line 763...
746
    }
763
    }
747
 
764
 
748
    int lastComparison = 0;
765
    int lastComparison = 0;
749
    Refund typedOther = (Refund)other;
766
    Refund typedOther = (Refund)other;
750
 
767
 
751
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
768
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
752
    if (lastComparison != 0) {
769
    if (lastComparison != 0) {
753
      return lastComparison;
770
      return lastComparison;
754
    }
771
    }
-
 
772
    if (isSetId()) {
755
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
773
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
756
    if (lastComparison != 0) {
774
      if (lastComparison != 0) {
757
      return lastComparison;
775
        return lastComparison;
-
 
776
      }
758
    }
777
    }
759
    lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(isSetPaymentId());
778
    lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
760
    if (lastComparison != 0) {
779
    if (lastComparison != 0) {
761
      return lastComparison;
780
      return lastComparison;
762
    }
781
    }
-
 
782
    if (isSetPaymentId()) {
763
    lastComparison = TBaseHelper.compareTo(paymentId, typedOther.paymentId);
783
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
764
    if (lastComparison != 0) {
784
      if (lastComparison != 0) {
765
      return lastComparison;
785
        return lastComparison;
-
 
786
      }
766
    }
787
    }
767
    lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(isSetGatewayId());
788
    lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
768
    if (lastComparison != 0) {
789
    if (lastComparison != 0) {
769
      return lastComparison;
790
      return lastComparison;
770
    }
791
    }
-
 
792
    if (isSetGatewayId()) {
771
    lastComparison = TBaseHelper.compareTo(gatewayId, typedOther.gatewayId);
793
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
772
    if (lastComparison != 0) {
794
      if (lastComparison != 0) {
773
      return lastComparison;
795
        return lastComparison;
-
 
796
      }
774
    }
797
    }
775
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
798
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
776
    if (lastComparison != 0) {
799
    if (lastComparison != 0) {
777
      return lastComparison;
800
      return lastComparison;
778
    }
801
    }
-
 
802
    if (isSetOrderId()) {
779
    lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
803
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
780
    if (lastComparison != 0) {
804
      if (lastComparison != 0) {
781
      return lastComparison;
805
        return lastComparison;
-
 
806
      }
782
    }
807
    }
783
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
808
    lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
784
    if (lastComparison != 0) {
809
    if (lastComparison != 0) {
785
      return lastComparison;
810
      return lastComparison;
786
    }
811
    }
-
 
812
    if (isSetAmount()) {
787
    lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
813
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
788
    if (lastComparison != 0) {
814
      if (lastComparison != 0) {
789
      return lastComparison;
815
        return lastComparison;
-
 
816
      }
790
    }
817
    }
791
    lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(isSetGatewayTxnId());
818
    lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
792
    if (lastComparison != 0) {
819
    if (lastComparison != 0) {
793
      return lastComparison;
820
      return lastComparison;
794
    }
821
    }
-
 
822
    if (isSetGatewayTxnId()) {
795
    lastComparison = TBaseHelper.compareTo(gatewayTxnId, typedOther.gatewayTxnId);
823
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
796
    if (lastComparison != 0) {
824
      if (lastComparison != 0) {
797
      return lastComparison;
825
        return lastComparison;
-
 
826
      }
798
    }
827
    }
799
    lastComparison = Boolean.valueOf(isSetAttempts()).compareTo(isSetAttempts());
828
    lastComparison = Boolean.valueOf(isSetAttempts()).compareTo(typedOther.isSetAttempts());
800
    if (lastComparison != 0) {
829
    if (lastComparison != 0) {
801
      return lastComparison;
830
      return lastComparison;
802
    }
831
    }
-
 
832
    if (isSetAttempts()) {
803
    lastComparison = TBaseHelper.compareTo(attempts, typedOther.attempts);
833
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attempts, typedOther.attempts);
804
    if (lastComparison != 0) {
834
      if (lastComparison != 0) {
805
      return lastComparison;
835
        return lastComparison;
-
 
836
      }
806
    }
837
    }
807
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(isSetCreatedAt());
838
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
808
    if (lastComparison != 0) {
839
    if (lastComparison != 0) {
809
      return lastComparison;
840
      return lastComparison;
810
    }
841
    }
-
 
842
    if (isSetCreatedAt()) {
811
    lastComparison = TBaseHelper.compareTo(createdAt, typedOther.createdAt);
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
812
    if (lastComparison != 0) {
844
      if (lastComparison != 0) {
813
      return lastComparison;
845
        return lastComparison;
-
 
846
      }
814
    }
847
    }
815
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(isSetProcessedAt());
848
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(typedOther.isSetProcessedAt());
816
    if (lastComparison != 0) {
849
    if (lastComparison != 0) {
817
      return lastComparison;
850
      return lastComparison;
818
    }
851
    }
-
 
852
    if (isSetProcessedAt()) {
819
    lastComparison = TBaseHelper.compareTo(processedAt, typedOther.processedAt);
853
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedAt, typedOther.processedAt);
820
    if (lastComparison != 0) {
854
      if (lastComparison != 0) {
821
      return lastComparison;
855
        return lastComparison;
-
 
856
      }
822
    }
857
    }
823
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(isSetAttributes());
858
    lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
824
    if (lastComparison != 0) {
859
    if (lastComparison != 0) {
825
      return lastComparison;
860
      return lastComparison;
826
    }
861
    }
-
 
862
    if (isSetAttributes()) {
827
    lastComparison = TBaseHelper.compareTo(attributes, typedOther.attributes);
863
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
828
    if (lastComparison != 0) {
864
      if (lastComparison != 0) {
829
      return lastComparison;
865
        return lastComparison;
-
 
866
      }
830
    }
867
    }
831
    return 0;
868
    return 0;
832
  }
869
  }
833
 
870
 
-
 
871
  public _Fields fieldForId(int fieldId) {
-
 
872
    return _Fields.findByThriftId(fieldId);
-
 
873
  }
-
 
874
 
834
  public void read(TProtocol iprot) throws TException {
875
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
835
    TField field;
876
    org.apache.thrift.protocol.TField field;
836
    iprot.readStructBegin();
877
    iprot.readStructBegin();
837
    while (true)
878
    while (true)
838
    {
879
    {
839
      field = iprot.readFieldBegin();
880
      field = iprot.readFieldBegin();
840
      if (field.type == TType.STOP) { 
881
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
841
        break;
882
        break;
842
      }
883
      }
843
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
844
      if (fieldId == null) {
-
 
845
        TProtocolUtil.skip(iprot, field.type);
-
 
846
      } else {
-
 
847
        switch (fieldId) {
884
      switch (field.id) {
848
          case ID:
885
        case 1: // ID
849
            if (field.type == TType.I64) {
886
          if (field.type == org.apache.thrift.protocol.TType.I64) {
850
              this.id = iprot.readI64();
887
            this.id = iprot.readI64();
851
              setIdIsSet(true);
888
            setIdIsSet(true);
852
            } else { 
889
          } else { 
853
              TProtocolUtil.skip(iprot, field.type);
890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
854
            }
891
          }
855
            break;
892
          break;
856
          case PAYMENT_ID:
893
        case 2: // PAYMENT_ID
857
            if (field.type == TType.I64) {
894
          if (field.type == org.apache.thrift.protocol.TType.I64) {
858
              this.paymentId = iprot.readI64();
895
            this.paymentId = iprot.readI64();
859
              setPaymentIdIsSet(true);
896
            setPaymentIdIsSet(true);
860
            } else { 
897
          } else { 
861
              TProtocolUtil.skip(iprot, field.type);
898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
862
            }
899
          }
863
            break;
900
          break;
864
          case GATEWAY_ID:
901
        case 3: // GATEWAY_ID
865
            if (field.type == TType.I64) {
902
          if (field.type == org.apache.thrift.protocol.TType.I64) {
866
              this.gatewayId = iprot.readI64();
903
            this.gatewayId = iprot.readI64();
867
              setGatewayIdIsSet(true);
904
            setGatewayIdIsSet(true);
868
            } else { 
905
          } else { 
869
              TProtocolUtil.skip(iprot, field.type);
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
870
            }
907
          }
871
            break;
908
          break;
872
          case ORDER_ID:
909
        case 4: // ORDER_ID
873
            if (field.type == TType.I64) {
910
          if (field.type == org.apache.thrift.protocol.TType.I64) {
874
              this.orderId = iprot.readI64();
911
            this.orderId = iprot.readI64();
875
              setOrderIdIsSet(true);
912
            setOrderIdIsSet(true);
876
            } else { 
913
          } else { 
877
              TProtocolUtil.skip(iprot, field.type);
914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
878
            }
915
          }
879
            break;
916
          break;
880
          case AMOUNT:
917
        case 5: // AMOUNT
881
            if (field.type == TType.DOUBLE) {
918
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
882
              this.amount = iprot.readDouble();
919
            this.amount = iprot.readDouble();
883
              setAmountIsSet(true);
920
            setAmountIsSet(true);
884
            } else { 
921
          } else { 
885
              TProtocolUtil.skip(iprot, field.type);
922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
886
            }
923
          }
887
            break;
924
          break;
888
          case GATEWAY_TXN_ID:
925
        case 6: // GATEWAY_TXN_ID
889
            if (field.type == TType.STRING) {
926
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
890
              this.gatewayTxnId = iprot.readString();
927
            this.gatewayTxnId = iprot.readString();
891
            } else { 
928
          } else { 
892
              TProtocolUtil.skip(iprot, field.type);
929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
893
            }
930
          }
894
            break;
931
          break;
895
          case ATTEMPTS:
932
        case 7: // ATTEMPTS
896
            if (field.type == TType.I32) {
933
          if (field.type == org.apache.thrift.protocol.TType.I32) {
897
              this.attempts = iprot.readI32();
934
            this.attempts = iprot.readI32();
898
              setAttemptsIsSet(true);
935
            setAttemptsIsSet(true);
899
            } else { 
936
          } else { 
900
              TProtocolUtil.skip(iprot, field.type);
937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
901
            }
938
          }
902
            break;
939
          break;
903
          case CREATED_AT:
940
        case 8: // CREATED_AT
904
            if (field.type == TType.I64) {
941
          if (field.type == org.apache.thrift.protocol.TType.I64) {
905
              this.createdAt = iprot.readI64();
942
            this.createdAt = iprot.readI64();
906
              setCreatedAtIsSet(true);
943
            setCreatedAtIsSet(true);
907
            } else { 
944
          } else { 
908
              TProtocolUtil.skip(iprot, field.type);
945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
909
            }
946
          }
910
            break;
947
          break;
911
          case PROCESSED_AT:
948
        case 9: // PROCESSED_AT
912
            if (field.type == TType.I64) {
949
          if (field.type == org.apache.thrift.protocol.TType.I64) {
913
              this.processedAt = iprot.readI64();
950
            this.processedAt = iprot.readI64();
914
              setProcessedAtIsSet(true);
951
            setProcessedAtIsSet(true);
915
            } else { 
952
          } else { 
916
              TProtocolUtil.skip(iprot, field.type);
953
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
917
            }
954
          }
918
            break;
955
          break;
919
          case ATTRIBUTES:
956
        case 10: // ATTRIBUTES
920
            if (field.type == TType.LIST) {
957
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
958
            {
-
 
959
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
-
 
960
              this.attributes = new ArrayList<Attribute>(_list8.size);
-
 
961
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
921
              {
962
              {
922
                TList _list8 = iprot.readListBegin();
-
 
923
                this.attributes = new ArrayList<Attribute>(_list8.size);
-
 
924
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
925
                {
-
 
926
                  Attribute _elem10;
963
                Attribute _elem10; // required
927
                  _elem10 = new Attribute();
964
                _elem10 = new Attribute();
928
                  _elem10.read(iprot);
965
                _elem10.read(iprot);
929
                  this.attributes.add(_elem10);
966
                this.attributes.add(_elem10);
930
                }
-
 
931
                iprot.readListEnd();
-
 
932
              }
967
              }
933
            } else { 
968
              iprot.readListEnd();
934
              TProtocolUtil.skip(iprot, field.type);
-
 
935
            }
969
            }
936
            break;
970
          } else { 
-
 
971
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
937
        }
972
          }
938
        iprot.readFieldEnd();
973
          break;
-
 
974
        default:
-
 
975
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
      }
976
      }
-
 
977
      iprot.readFieldEnd();
940
    }
978
    }
941
    iprot.readStructEnd();
979
    iprot.readStructEnd();
942
    validate();
980
    validate();
943
  }
981
  }
944
 
982
 
945
  public void write(TProtocol oprot) throws TException {
983
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
946
    validate();
984
    validate();
947
 
985
 
948
    oprot.writeStructBegin(STRUCT_DESC);
986
    oprot.writeStructBegin(STRUCT_DESC);
949
    oprot.writeFieldBegin(ID_FIELD_DESC);
987
    oprot.writeFieldBegin(ID_FIELD_DESC);
950
    oprot.writeI64(this.id);
988
    oprot.writeI64(this.id);
Line 976... Line 1014...
976
    oprot.writeI64(this.processedAt);
1014
    oprot.writeI64(this.processedAt);
977
    oprot.writeFieldEnd();
1015
    oprot.writeFieldEnd();
978
    if (this.attributes != null) {
1016
    if (this.attributes != null) {
979
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
1017
      oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
980
      {
1018
      {
981
        oprot.writeListBegin(new TList(TType.STRUCT, this.attributes.size()));
1019
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
982
        for (Attribute _iter11 : this.attributes)
1020
        for (Attribute _iter11 : this.attributes)
983
        {
1021
        {
984
          _iter11.write(oprot);
1022
          _iter11.write(oprot);
985
        }
1023
        }
986
        oprot.writeListEnd();
1024
        oprot.writeListEnd();
Line 1045... Line 1083...
1045
    first = false;
1083
    first = false;
1046
    sb.append(")");
1084
    sb.append(")");
1047
    return sb.toString();
1085
    return sb.toString();
1048
  }
1086
  }
1049
 
1087
 
1050
  public void validate() throws TException {
1088
  public void validate() throws org.apache.thrift.TException {
1051
    // check for required fields
1089
    // check for required fields
1052
  }
1090
  }
1053
 
1091
 
-
 
1092
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1093
    try {
-
 
1094
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1095
    } catch (org.apache.thrift.TException te) {
-
 
1096
      throw new java.io.IOException(te);
-
 
1097
    }
-
 
1098
  }
-
 
1099
 
-
 
1100
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1101
    try {
-
 
1102
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1103
      __isset_bit_vector = new BitSet(1);
-
 
1104
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1105
    } catch (org.apache.thrift.TException te) {
-
 
1106
      throw new java.io.IOException(te);
-
 
1107
    }
-
 
1108
  }
-
 
1109
 
1054
}
1110
}
1055
 
1111