Subversion Repositories SmartDukaan

Rev

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

Rev 10450 Rev 11173
Line 23... Line 23...
23
public class AmazonFbaInventorySnapshot implements org.apache.thrift.TBase<AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot._Fields>, java.io.Serializable, Cloneable {
23
public class AmazonFbaInventorySnapshot implements org.apache.thrift.TBase<AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaInventorySnapshot");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaInventorySnapshot");
25
 
25
 
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField AVAILABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availability", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField AVAILABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availability", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
28
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
29
  private static final org.apache.thrift.protocol.TField UNFULFILLABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfillable", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
30
  private static final org.apache.thrift.protocol.TField RESERVED_FIELD_DESC = new org.apache.thrift.protocol.TField("reserved", org.apache.thrift.protocol.TType.I64, (short)5);
28
  private static final org.apache.thrift.protocol.TField IS_OOS_FIELD_DESC = new org.apache.thrift.protocol.TField("is_oos", org.apache.thrift.protocol.TType.BOOL, (short)3);
31
  private static final org.apache.thrift.protocol.TField INBOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("inbound", org.apache.thrift.protocol.TType.I64, (short)6);
29
 
32
 
30
  private long item_id; // required
33
  private long item_id; // required
31
  private long availability; // required
34
  private long availability; // required
-
 
35
  private AmazonFCWarehouseLocation location; // required
-
 
36
  private long unfulfillable; // required
-
 
37
  private long reserved; // required
32
  private boolean is_oos; // required
38
  private long inbound; // required
33
 
39
 
34
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36
    ITEM_ID((short)1, "item_id"),
42
    ITEM_ID((short)1, "item_id"),
37
    AVAILABILITY((short)2, "availability"),
43
    AVAILABILITY((short)2, "availability"),
-
 
44
    /**
-
 
45
     * 
-
 
46
     * @see AmazonFCWarehouseLocation
-
 
47
     */
-
 
48
    LOCATION((short)3, "location"),
-
 
49
    UNFULFILLABLE((short)4, "unfulfillable"),
-
 
50
    RESERVED((short)5, "reserved"),
38
    IS_OOS((short)3, "is_oos");
51
    INBOUND((short)6, "inbound");
39
 
52
 
40
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41
 
54
 
42
    static {
55
    static {
43
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
56
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 52... Line 65...
52
      switch(fieldId) {
65
      switch(fieldId) {
53
        case 1: // ITEM_ID
66
        case 1: // ITEM_ID
54
          return ITEM_ID;
67
          return ITEM_ID;
55
        case 2: // AVAILABILITY
68
        case 2: // AVAILABILITY
56
          return AVAILABILITY;
69
          return AVAILABILITY;
-
 
70
        case 3: // LOCATION
-
 
71
          return LOCATION;
-
 
72
        case 4: // UNFULFILLABLE
-
 
73
          return UNFULFILLABLE;
-
 
74
        case 5: // RESERVED
-
 
75
          return RESERVED;
57
        case 3: // IS_OOS
76
        case 6: // INBOUND
58
          return IS_OOS;
77
          return INBOUND;
59
        default:
78
        default:
60
          return null;
79
          return null;
61
      }
80
      }
62
    }
81
    }
63
 
82
 
Line 96... Line 115...
96
  }
115
  }
97
 
116
 
98
  // isset id assignments
117
  // isset id assignments
99
  private static final int __ITEM_ID_ISSET_ID = 0;
118
  private static final int __ITEM_ID_ISSET_ID = 0;
100
  private static final int __AVAILABILITY_ISSET_ID = 1;
119
  private static final int __AVAILABILITY_ISSET_ID = 1;
-
 
120
  private static final int __UNFULFILLABLE_ISSET_ID = 2;
-
 
121
  private static final int __RESERVED_ISSET_ID = 3;
101
  private static final int __IS_OOS_ISSET_ID = 2;
122
  private static final int __INBOUND_ISSET_ID = 4;
102
  private BitSet __isset_bit_vector = new BitSet(3);
123
  private BitSet __isset_bit_vector = new BitSet(5);
103
 
124
 
104
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
125
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
105
  static {
126
  static {
106
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
127
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
107
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
128
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
108
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
109
    tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
130
    tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
110
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
132
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AmazonFCWarehouseLocation.class)));
-
 
134
    tmpMap.put(_Fields.UNFULFILLABLE, new org.apache.thrift.meta_data.FieldMetaData("unfulfillable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
136
    tmpMap.put(_Fields.RESERVED, new org.apache.thrift.meta_data.FieldMetaData("reserved", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
137
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
111
    tmpMap.put(_Fields.IS_OOS, new org.apache.thrift.meta_data.FieldMetaData("is_oos", org.apache.thrift.TFieldRequirementType.DEFAULT, 
138
    tmpMap.put(_Fields.INBOUND, new org.apache.thrift.meta_data.FieldMetaData("inbound", org.apache.thrift.TFieldRequirementType.DEFAULT, 
112
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
139
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
113
    metaDataMap = Collections.unmodifiableMap(tmpMap);
140
    metaDataMap = Collections.unmodifiableMap(tmpMap);
114
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaInventorySnapshot.class, metaDataMap);
141
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaInventorySnapshot.class, metaDataMap);
115
  }
142
  }
116
 
143
 
117
  public AmazonFbaInventorySnapshot() {
144
  public AmazonFbaInventorySnapshot() {
118
  }
145
  }
119
 
146
 
120
  public AmazonFbaInventorySnapshot(
147
  public AmazonFbaInventorySnapshot(
121
    long item_id,
148
    long item_id,
122
    long availability,
149
    long availability,
-
 
150
    AmazonFCWarehouseLocation location,
-
 
151
    long unfulfillable,
-
 
152
    long reserved,
123
    boolean is_oos)
153
    long inbound)
124
  {
154
  {
125
    this();
155
    this();
126
    this.item_id = item_id;
156
    this.item_id = item_id;
127
    setItem_idIsSet(true);
157
    setItem_idIsSet(true);
128
    this.availability = availability;
158
    this.availability = availability;
129
    setAvailabilityIsSet(true);
159
    setAvailabilityIsSet(true);
-
 
160
    this.location = location;
-
 
161
    this.unfulfillable = unfulfillable;
-
 
162
    setUnfulfillableIsSet(true);
-
 
163
    this.reserved = reserved;
-
 
164
    setReservedIsSet(true);
130
    this.is_oos = is_oos;
165
    this.inbound = inbound;
131
    setIs_oosIsSet(true);
166
    setInboundIsSet(true);
132
  }
167
  }
133
 
168
 
134
  /**
169
  /**
135
   * Performs a deep copy on <i>other</i>.
170
   * Performs a deep copy on <i>other</i>.
136
   */
171
   */
137
  public AmazonFbaInventorySnapshot(AmazonFbaInventorySnapshot other) {
172
  public AmazonFbaInventorySnapshot(AmazonFbaInventorySnapshot other) {
138
    __isset_bit_vector.clear();
173
    __isset_bit_vector.clear();
139
    __isset_bit_vector.or(other.__isset_bit_vector);
174
    __isset_bit_vector.or(other.__isset_bit_vector);
140
    this.item_id = other.item_id;
175
    this.item_id = other.item_id;
141
    this.availability = other.availability;
176
    this.availability = other.availability;
-
 
177
    if (other.isSetLocation()) {
-
 
178
      this.location = other.location;
-
 
179
    }
-
 
180
    this.unfulfillable = other.unfulfillable;
-
 
181
    this.reserved = other.reserved;
142
    this.is_oos = other.is_oos;
182
    this.inbound = other.inbound;
143
  }
183
  }
144
 
184
 
145
  public AmazonFbaInventorySnapshot deepCopy() {
185
  public AmazonFbaInventorySnapshot deepCopy() {
146
    return new AmazonFbaInventorySnapshot(this);
186
    return new AmazonFbaInventorySnapshot(this);
147
  }
187
  }
Line 150... Line 190...
150
  public void clear() {
190
  public void clear() {
151
    setItem_idIsSet(false);
191
    setItem_idIsSet(false);
152
    this.item_id = 0;
192
    this.item_id = 0;
153
    setAvailabilityIsSet(false);
193
    setAvailabilityIsSet(false);
154
    this.availability = 0;
194
    this.availability = 0;
-
 
195
    this.location = null;
-
 
196
    setUnfulfillableIsSet(false);
-
 
197
    this.unfulfillable = 0;
-
 
198
    setReservedIsSet(false);
-
 
199
    this.reserved = 0;
155
    setIs_oosIsSet(false);
200
    setInboundIsSet(false);
156
    this.is_oos = false;
201
    this.inbound = 0;
157
  }
202
  }
158
 
203
 
159
  public long getItem_id() {
204
  public long getItem_id() {
160
    return this.item_id;
205
    return this.item_id;
161
  }
206
  }
Line 198... Line 243...
198
 
243
 
199
  public void setAvailabilityIsSet(boolean value) {
244
  public void setAvailabilityIsSet(boolean value) {
200
    __isset_bit_vector.set(__AVAILABILITY_ISSET_ID, value);
245
    __isset_bit_vector.set(__AVAILABILITY_ISSET_ID, value);
201
  }
246
  }
202
 
247
 
-
 
248
  /**
-
 
249
   * 
-
 
250
   * @see AmazonFCWarehouseLocation
-
 
251
   */
-
 
252
  public AmazonFCWarehouseLocation getLocation() {
-
 
253
    return this.location;
-
 
254
  }
-
 
255
 
-
 
256
  /**
-
 
257
   * 
-
 
258
   * @see AmazonFCWarehouseLocation
-
 
259
   */
-
 
260
  public void setLocation(AmazonFCWarehouseLocation location) {
-
 
261
    this.location = location;
-
 
262
  }
-
 
263
 
-
 
264
  public void unsetLocation() {
-
 
265
    this.location = null;
-
 
266
  }
-
 
267
 
-
 
268
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
203
  public boolean isIs_oos() {
269
  public boolean isSetLocation() {
-
 
270
    return this.location != null;
-
 
271
  }
-
 
272
 
-
 
273
  public void setLocationIsSet(boolean value) {
-
 
274
    if (!value) {
-
 
275
      this.location = null;
-
 
276
    }
-
 
277
  }
-
 
278
 
-
 
279
  public long getUnfulfillable() {
204
    return this.is_oos;
280
    return this.unfulfillable;
-
 
281
  }
-
 
282
 
-
 
283
  public void setUnfulfillable(long unfulfillable) {
-
 
284
    this.unfulfillable = unfulfillable;
-
 
285
    setUnfulfillableIsSet(true);
205
  }
286
  }
206
 
287
 
207
  public void setIs_oos(boolean is_oos) {
288
  public void unsetUnfulfillable() {
208
    this.is_oos = is_oos;
-
 
209
    setIs_oosIsSet(true);
289
    __isset_bit_vector.clear(__UNFULFILLABLE_ISSET_ID);
210
  }
290
  }
211
 
291
 
-
 
292
  /** Returns true if field unfulfillable is set (has been assigned a value) and false otherwise */
212
  public void unsetIs_oos() {
293
  public boolean isSetUnfulfillable() {
213
    __isset_bit_vector.clear(__IS_OOS_ISSET_ID);
294
    return __isset_bit_vector.get(__UNFULFILLABLE_ISSET_ID);
214
  }
295
  }
215
 
296
 
216
  /** Returns true if field is_oos is set (has been assigned a value) and false otherwise */
-
 
217
  public boolean isSetIs_oos() {
297
  public void setUnfulfillableIsSet(boolean value) {
218
    return __isset_bit_vector.get(__IS_OOS_ISSET_ID);
298
    __isset_bit_vector.set(__UNFULFILLABLE_ISSET_ID, value);
219
  }
299
  }
220
 
300
 
-
 
301
  public long getReserved() {
-
 
302
    return this.reserved;
-
 
303
  }
-
 
304
 
-
 
305
  public void setReserved(long reserved) {
-
 
306
    this.reserved = reserved;
-
 
307
    setReservedIsSet(true);
-
 
308
  }
-
 
309
 
-
 
310
  public void unsetReserved() {
-
 
311
    __isset_bit_vector.clear(__RESERVED_ISSET_ID);
-
 
312
  }
-
 
313
 
-
 
314
  /** Returns true if field reserved is set (has been assigned a value) and false otherwise */
-
 
315
  public boolean isSetReserved() {
-
 
316
    return __isset_bit_vector.get(__RESERVED_ISSET_ID);
-
 
317
  }
-
 
318
 
-
 
319
  public void setReservedIsSet(boolean value) {
-
 
320
    __isset_bit_vector.set(__RESERVED_ISSET_ID, value);
-
 
321
  }
-
 
322
 
-
 
323
  public long getInbound() {
-
 
324
    return this.inbound;
-
 
325
  }
-
 
326
 
-
 
327
  public void setInbound(long inbound) {
-
 
328
    this.inbound = inbound;
-
 
329
    setInboundIsSet(true);
-
 
330
  }
-
 
331
 
-
 
332
  public void unsetInbound() {
-
 
333
    __isset_bit_vector.clear(__INBOUND_ISSET_ID);
-
 
334
  }
-
 
335
 
-
 
336
  /** Returns true if field inbound is set (has been assigned a value) and false otherwise */
-
 
337
  public boolean isSetInbound() {
-
 
338
    return __isset_bit_vector.get(__INBOUND_ISSET_ID);
-
 
339
  }
-
 
340
 
221
  public void setIs_oosIsSet(boolean value) {
341
  public void setInboundIsSet(boolean value) {
222
    __isset_bit_vector.set(__IS_OOS_ISSET_ID, value);
342
    __isset_bit_vector.set(__INBOUND_ISSET_ID, value);
223
  }
343
  }
224
 
344
 
225
  public void setFieldValue(_Fields field, Object value) {
345
  public void setFieldValue(_Fields field, Object value) {
226
    switch (field) {
346
    switch (field) {
227
    case ITEM_ID:
347
    case ITEM_ID:
Line 238... Line 358...
238
      } else {
358
      } else {
239
        setAvailability((Long)value);
359
        setAvailability((Long)value);
240
      }
360
      }
241
      break;
361
      break;
242
 
362
 
243
    case IS_OOS:
363
    case LOCATION:
244
      if (value == null) {
364
      if (value == null) {
245
        unsetIs_oos();
365
        unsetLocation();
246
      } else {
366
      } else {
-
 
367
        setLocation((AmazonFCWarehouseLocation)value);
-
 
368
      }
-
 
369
      break;
-
 
370
 
-
 
371
    case UNFULFILLABLE:
-
 
372
      if (value == null) {
-
 
373
        unsetUnfulfillable();
-
 
374
      } else {
-
 
375
        setUnfulfillable((Long)value);
-
 
376
      }
-
 
377
      break;
-
 
378
 
-
 
379
    case RESERVED:
-
 
380
      if (value == null) {
-
 
381
        unsetReserved();
-
 
382
      } else {
-
 
383
        setReserved((Long)value);
-
 
384
      }
-
 
385
      break;
-
 
386
 
-
 
387
    case INBOUND:
-
 
388
      if (value == null) {
-
 
389
        unsetInbound();
-
 
390
      } else {
247
        setIs_oos((Boolean)value);
391
        setInbound((Long)value);
248
      }
392
      }
249
      break;
393
      break;
250
 
394
 
251
    }
395
    }
252
  }
396
  }
Line 257... Line 401...
257
      return Long.valueOf(getItem_id());
401
      return Long.valueOf(getItem_id());
258
 
402
 
259
    case AVAILABILITY:
403
    case AVAILABILITY:
260
      return Long.valueOf(getAvailability());
404
      return Long.valueOf(getAvailability());
261
 
405
 
-
 
406
    case LOCATION:
-
 
407
      return getLocation();
-
 
408
 
-
 
409
    case UNFULFILLABLE:
-
 
410
      return Long.valueOf(getUnfulfillable());
-
 
411
 
-
 
412
    case RESERVED:
-
 
413
      return Long.valueOf(getReserved());
-
 
414
 
262
    case IS_OOS:
415
    case INBOUND:
263
      return Boolean.valueOf(isIs_oos());
416
      return Long.valueOf(getInbound());
264
 
417
 
265
    }
418
    }
266
    throw new IllegalStateException();
419
    throw new IllegalStateException();
267
  }
420
  }
268
 
421
 
Line 275... Line 428...
275
    switch (field) {
428
    switch (field) {
276
    case ITEM_ID:
429
    case ITEM_ID:
277
      return isSetItem_id();
430
      return isSetItem_id();
278
    case AVAILABILITY:
431
    case AVAILABILITY:
279
      return isSetAvailability();
432
      return isSetAvailability();
-
 
433
    case LOCATION:
-
 
434
      return isSetLocation();
-
 
435
    case UNFULFILLABLE:
-
 
436
      return isSetUnfulfillable();
-
 
437
    case RESERVED:
-
 
438
      return isSetReserved();
280
    case IS_OOS:
439
    case INBOUND:
281
      return isSetIs_oos();
440
      return isSetInbound();
282
    }
441
    }
283
    throw new IllegalStateException();
442
    throw new IllegalStateException();
284
  }
443
  }
285
 
444
 
286
  @Override
445
  @Override
Line 312... Line 471...
312
        return false;
471
        return false;
313
      if (this.availability != that.availability)
472
      if (this.availability != that.availability)
314
        return false;
473
        return false;
315
    }
474
    }
316
 
475
 
317
    boolean this_present_is_oos = true;
476
    boolean this_present_location = true && this.isSetLocation();
318
    boolean that_present_is_oos = true;
477
    boolean that_present_location = true && that.isSetLocation();
319
    if (this_present_is_oos || that_present_is_oos) {
478
    if (this_present_location || that_present_location) {
320
      if (!(this_present_is_oos && that_present_is_oos))
479
      if (!(this_present_location && that_present_location))
321
        return false;
480
        return false;
-
 
481
      if (!this.location.equals(that.location))
-
 
482
        return false;
-
 
483
    }
-
 
484
 
-
 
485
    boolean this_present_unfulfillable = true;
-
 
486
    boolean that_present_unfulfillable = true;
-
 
487
    if (this_present_unfulfillable || that_present_unfulfillable) {
-
 
488
      if (!(this_present_unfulfillable && that_present_unfulfillable))
-
 
489
        return false;
-
 
490
      if (this.unfulfillable != that.unfulfillable)
-
 
491
        return false;
-
 
492
    }
-
 
493
 
-
 
494
    boolean this_present_reserved = true;
-
 
495
    boolean that_present_reserved = true;
-
 
496
    if (this_present_reserved || that_present_reserved) {
-
 
497
      if (!(this_present_reserved && that_present_reserved))
-
 
498
        return false;
-
 
499
      if (this.reserved != that.reserved)
-
 
500
        return false;
-
 
501
    }
-
 
502
 
-
 
503
    boolean this_present_inbound = true;
-
 
504
    boolean that_present_inbound = true;
-
 
505
    if (this_present_inbound || that_present_inbound) {
-
 
506
      if (!(this_present_inbound && that_present_inbound))
-
 
507
        return false;
322
      if (this.is_oos != that.is_oos)
508
      if (this.inbound != that.inbound)
323
        return false;
509
        return false;
324
    }
510
    }
325
 
511
 
326
    return true;
512
    return true;
327
  }
513
  }
Line 357... Line 543...
357
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
543
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
358
      if (lastComparison != 0) {
544
      if (lastComparison != 0) {
359
        return lastComparison;
545
        return lastComparison;
360
      }
546
      }
361
    }
547
    }
-
 
548
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
-
 
549
    if (lastComparison != 0) {
-
 
550
      return lastComparison;
-
 
551
    }
-
 
552
    if (isSetLocation()) {
-
 
553
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
-
 
554
      if (lastComparison != 0) {
-
 
555
        return lastComparison;
-
 
556
      }
-
 
557
    }
-
 
558
    lastComparison = Boolean.valueOf(isSetUnfulfillable()).compareTo(typedOther.isSetUnfulfillable());
-
 
559
    if (lastComparison != 0) {
-
 
560
      return lastComparison;
-
 
561
    }
-
 
562
    if (isSetUnfulfillable()) {
-
 
563
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfillable, typedOther.unfulfillable);
-
 
564
      if (lastComparison != 0) {
-
 
565
        return lastComparison;
-
 
566
      }
-
 
567
    }
-
 
568
    lastComparison = Boolean.valueOf(isSetReserved()).compareTo(typedOther.isSetReserved());
-
 
569
    if (lastComparison != 0) {
-
 
570
      return lastComparison;
-
 
571
    }
-
 
572
    if (isSetReserved()) {
-
 
573
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reserved, typedOther.reserved);
-
 
574
      if (lastComparison != 0) {
-
 
575
        return lastComparison;
-
 
576
      }
-
 
577
    }
362
    lastComparison = Boolean.valueOf(isSetIs_oos()).compareTo(typedOther.isSetIs_oos());
578
    lastComparison = Boolean.valueOf(isSetInbound()).compareTo(typedOther.isSetInbound());
363
    if (lastComparison != 0) {
579
    if (lastComparison != 0) {
364
      return lastComparison;
580
      return lastComparison;
365
    }
581
    }
366
    if (isSetIs_oos()) {
582
    if (isSetInbound()) {
367
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.is_oos, typedOther.is_oos);
583
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inbound, typedOther.inbound);
368
      if (lastComparison != 0) {
584
      if (lastComparison != 0) {
369
        return lastComparison;
585
        return lastComparison;
370
      }
586
      }
371
    }
587
    }
372
    return 0;
588
    return 0;
Line 400... Line 616...
400
            setAvailabilityIsSet(true);
616
            setAvailabilityIsSet(true);
401
          } else { 
617
          } else { 
402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
403
          }
619
          }
404
          break;
620
          break;
-
 
621
        case 3: // LOCATION
-
 
622
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
623
            this.location = AmazonFCWarehouseLocation.findByValue(iprot.readI32());
-
 
624
          } else { 
-
 
625
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
626
          }
-
 
627
          break;
-
 
628
        case 4: // UNFULFILLABLE
-
 
629
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
630
            this.unfulfillable = iprot.readI64();
-
 
631
            setUnfulfillableIsSet(true);
-
 
632
          } else { 
-
 
633
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
634
          }
-
 
635
          break;
-
 
636
        case 5: // RESERVED
-
 
637
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
638
            this.reserved = iprot.readI64();
-
 
639
            setReservedIsSet(true);
-
 
640
          } else { 
-
 
641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
642
          }
-
 
643
          break;
405
        case 3: // IS_OOS
644
        case 6: // INBOUND
406
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
645
          if (field.type == org.apache.thrift.protocol.TType.I64) {
407
            this.is_oos = iprot.readBool();
646
            this.inbound = iprot.readI64();
408
            setIs_oosIsSet(true);
647
            setInboundIsSet(true);
409
          } else { 
648
          } else { 
410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
411
          }
650
          }
412
          break;
651
          break;
413
        default:
652
        default:
Line 427... Line 666...
427
    oprot.writeI64(this.item_id);
666
    oprot.writeI64(this.item_id);
428
    oprot.writeFieldEnd();
667
    oprot.writeFieldEnd();
429
    oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
668
    oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
430
    oprot.writeI64(this.availability);
669
    oprot.writeI64(this.availability);
431
    oprot.writeFieldEnd();
670
    oprot.writeFieldEnd();
-
 
671
    if (this.location != null) {
-
 
672
      oprot.writeFieldBegin(LOCATION_FIELD_DESC);
-
 
673
      oprot.writeI32(this.location.getValue());
-
 
674
      oprot.writeFieldEnd();
-
 
675
    }
-
 
676
    oprot.writeFieldBegin(UNFULFILLABLE_FIELD_DESC);
-
 
677
    oprot.writeI64(this.unfulfillable);
-
 
678
    oprot.writeFieldEnd();
-
 
679
    oprot.writeFieldBegin(RESERVED_FIELD_DESC);
-
 
680
    oprot.writeI64(this.reserved);
-
 
681
    oprot.writeFieldEnd();
432
    oprot.writeFieldBegin(IS_OOS_FIELD_DESC);
682
    oprot.writeFieldBegin(INBOUND_FIELD_DESC);
433
    oprot.writeBool(this.is_oos);
683
    oprot.writeI64(this.inbound);
434
    oprot.writeFieldEnd();
684
    oprot.writeFieldEnd();
435
    oprot.writeFieldStop();
685
    oprot.writeFieldStop();
436
    oprot.writeStructEnd();
686
    oprot.writeStructEnd();
437
  }
687
  }
438
 
688
 
Line 447... Line 697...
447
    if (!first) sb.append(", ");
697
    if (!first) sb.append(", ");
448
    sb.append("availability:");
698
    sb.append("availability:");
449
    sb.append(this.availability);
699
    sb.append(this.availability);
450
    first = false;
700
    first = false;
451
    if (!first) sb.append(", ");
701
    if (!first) sb.append(", ");
-
 
702
    sb.append("location:");
-
 
703
    if (this.location == null) {
-
 
704
      sb.append("null");
-
 
705
    } else {
-
 
706
      sb.append(this.location);
-
 
707
    }
-
 
708
    first = false;
-
 
709
    if (!first) sb.append(", ");
-
 
710
    sb.append("unfulfillable:");
-
 
711
    sb.append(this.unfulfillable);
-
 
712
    first = false;
-
 
713
    if (!first) sb.append(", ");
-
 
714
    sb.append("reserved:");
-
 
715
    sb.append(this.reserved);
-
 
716
    first = false;
-
 
717
    if (!first) sb.append(", ");
452
    sb.append("is_oos:");
718
    sb.append("inbound:");
453
    sb.append(this.is_oos);
719
    sb.append(this.inbound);
454
    first = false;
720
    first = false;
455
    sb.append(")");
721
    sb.append(")");
456
    return sb.toString();
722
    return sb.toString();
457
  }
723
  }
458
 
724