Subversion Repositories SmartDukaan

Rev

Rev 5945 | Rev 12357 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5945 mandeep.dh 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.inventory;
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 Warehouse implements org.apache.thrift.TBase<Warehouse, Warehouse._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Warehouse");
25
 
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);
27
  private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (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.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField LAST_CHECKED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCheckedOn", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField TIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("tinNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField VENDOR_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorString", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField LOGISTICS_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsLocation", org.apache.thrift.protocol.TType.I32, (short)10);
35
  private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I32, (short)12);
36
  private static final org.apache.thrift.protocol.TField WAREHOUSE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseType", org.apache.thrift.protocol.TType.I32, (short)13);
37
  private static final org.apache.thrift.protocol.TField INVENTORY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryType", org.apache.thrift.protocol.TType.I32, (short)14);
38
  private static final org.apache.thrift.protocol.TField VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor", org.apache.thrift.protocol.TType.STRUCT, (short)15);
39
  private static final org.apache.thrift.protocol.TField SHIPPING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)16);
40
  private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)17);
41
  private static final org.apache.thrift.protocol.TField IS_AVAILABILITY_MONITORED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAvailabilityMonitored", org.apache.thrift.protocol.TType.BOOL, (short)18);
42
  private static final org.apache.thrift.protocol.TField TRANSFER_DELAY_IN_HOURS_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDelayInHours", org.apache.thrift.protocol.TType.I64, (short)19);
7330 amit.gupta 43
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)20);
5945 mandeep.dh 44
 
45
  private long id; // required
46
  private String displayName; // required
47
  private String location; // required
48
  private long addedOn; // required
49
  private long lastCheckedOn; // required
50
  private String tinNumber; // required
51
  private String pincode; // required
52
  private String vendorString; // required
53
  private WarehouseLocation logisticsLocation; // required
54
  private BillingType billingType; // required
55
  private WarehouseType warehouseType; // required
56
  private InventoryType inventoryType; // required
57
  private Vendor vendor; // required
58
  private long shippingWarehouseId; // required
59
  private long billingWarehouseId; // required
60
  private boolean isAvailabilityMonitored; // required
61
  private long transferDelayInHours; // required
7330 amit.gupta 62
  private long stateId; // required
5945 mandeep.dh 63
 
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
66
    ID((short)1, "id"),
67
    DISPLAY_NAME((short)2, "displayName"),
68
    LOCATION((short)3, "location"),
69
    ADDED_ON((short)5, "addedOn"),
70
    LAST_CHECKED_ON((short)6, "lastCheckedOn"),
71
    TIN_NUMBER((short)7, "tinNumber"),
72
    PINCODE((short)8, "pincode"),
73
    VENDOR_STRING((short)9, "vendorString"),
74
    /**
75
     * 
76
     * @see WarehouseLocation
77
     */
78
    LOGISTICS_LOCATION((short)10, "logisticsLocation"),
79
    /**
80
     * 
81
     * @see BillingType
82
     */
83
    BILLING_TYPE((short)12, "billingType"),
84
    /**
85
     * 
86
     * @see WarehouseType
87
     */
88
    WAREHOUSE_TYPE((short)13, "warehouseType"),
89
    /**
90
     * 
91
     * @see InventoryType
92
     */
93
    INVENTORY_TYPE((short)14, "inventoryType"),
94
    VENDOR((short)15, "vendor"),
95
    SHIPPING_WAREHOUSE_ID((short)16, "shippingWarehouseId"),
96
    BILLING_WAREHOUSE_ID((short)17, "billingWarehouseId"),
97
    IS_AVAILABILITY_MONITORED((short)18, "isAvailabilityMonitored"),
7330 amit.gupta 98
    TRANSFER_DELAY_IN_HOURS((short)19, "transferDelayInHours"),
99
    STATE_ID((short)20, "stateId");
5945 mandeep.dh 100
 
101
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
102
 
103
    static {
104
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
105
        byName.put(field.getFieldName(), field);
106
      }
107
    }
108
 
109
    /**
110
     * Find the _Fields constant that matches fieldId, or null if its not found.
111
     */
112
    public static _Fields findByThriftId(int fieldId) {
113
      switch(fieldId) {
114
        case 1: // ID
115
          return ID;
116
        case 2: // DISPLAY_NAME
117
          return DISPLAY_NAME;
118
        case 3: // LOCATION
119
          return LOCATION;
120
        case 5: // ADDED_ON
121
          return ADDED_ON;
122
        case 6: // LAST_CHECKED_ON
123
          return LAST_CHECKED_ON;
124
        case 7: // TIN_NUMBER
125
          return TIN_NUMBER;
126
        case 8: // PINCODE
127
          return PINCODE;
128
        case 9: // VENDOR_STRING
129
          return VENDOR_STRING;
130
        case 10: // LOGISTICS_LOCATION
131
          return LOGISTICS_LOCATION;
132
        case 12: // BILLING_TYPE
133
          return BILLING_TYPE;
134
        case 13: // WAREHOUSE_TYPE
135
          return WAREHOUSE_TYPE;
136
        case 14: // INVENTORY_TYPE
137
          return INVENTORY_TYPE;
138
        case 15: // VENDOR
139
          return VENDOR;
140
        case 16: // SHIPPING_WAREHOUSE_ID
141
          return SHIPPING_WAREHOUSE_ID;
142
        case 17: // BILLING_WAREHOUSE_ID
143
          return BILLING_WAREHOUSE_ID;
144
        case 18: // IS_AVAILABILITY_MONITORED
145
          return IS_AVAILABILITY_MONITORED;
146
        case 19: // TRANSFER_DELAY_IN_HOURS
147
          return TRANSFER_DELAY_IN_HOURS;
7330 amit.gupta 148
        case 20: // STATE_ID
149
          return STATE_ID;
5945 mandeep.dh 150
        default:
151
          return null;
152
      }
153
    }
154
 
155
    /**
156
     * Find the _Fields constant that matches fieldId, throwing an exception
157
     * if it is not found.
158
     */
159
    public static _Fields findByThriftIdOrThrow(int fieldId) {
160
      _Fields fields = findByThriftId(fieldId);
161
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
162
      return fields;
163
    }
164
 
165
    /**
166
     * Find the _Fields constant that matches name, or null if its not found.
167
     */
168
    public static _Fields findByName(String name) {
169
      return byName.get(name);
170
    }
171
 
172
    private final short _thriftId;
173
    private final String _fieldName;
174
 
175
    _Fields(short thriftId, String fieldName) {
176
      _thriftId = thriftId;
177
      _fieldName = fieldName;
178
    }
179
 
180
    public short getThriftFieldId() {
181
      return _thriftId;
182
    }
183
 
184
    public String getFieldName() {
185
      return _fieldName;
186
    }
187
  }
188
 
189
  // isset id assignments
190
  private static final int __ID_ISSET_ID = 0;
191
  private static final int __ADDEDON_ISSET_ID = 1;
192
  private static final int __LASTCHECKEDON_ISSET_ID = 2;
193
  private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 3;
194
  private static final int __BILLINGWAREHOUSEID_ISSET_ID = 4;
195
  private static final int __ISAVAILABILITYMONITORED_ISSET_ID = 5;
196
  private static final int __TRANSFERDELAYINHOURS_ISSET_ID = 6;
7330 amit.gupta 197
  private static final int __STATEID_ISSET_ID = 7;
198
  private BitSet __isset_bit_vector = new BitSet(8);
5945 mandeep.dh 199
 
200
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
201
  static {
202
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
203
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
205
    tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
207
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
209
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
211
    tmpMap.put(_Fields.LAST_CHECKED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastCheckedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
213
    tmpMap.put(_Fields.TIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("tinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
215
    tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
217
    tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
219
    tmpMap.put(_Fields.LOGISTICS_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseLocation.class)));
221
    tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BillingType.class)));
223
    tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
225
    tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
227
    tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
228
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
229
    tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
230
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
231
    tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
233
    tmpMap.put(_Fields.IS_AVAILABILITY_MONITORED, new org.apache.thrift.meta_data.FieldMetaData("isAvailabilityMonitored", org.apache.thrift.TFieldRequirementType.DEFAULT, 
234
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
235
    tmpMap.put(_Fields.TRANSFER_DELAY_IN_HOURS, new org.apache.thrift.meta_data.FieldMetaData("transferDelayInHours", org.apache.thrift.TFieldRequirementType.DEFAULT, 
236
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7330 amit.gupta 237
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
238
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 239
    metaDataMap = Collections.unmodifiableMap(tmpMap);
240
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
241
  }
242
 
243
  public Warehouse() {
244
  }
245
 
246
  public Warehouse(
247
    long id,
248
    String displayName,
249
    String location,
250
    long addedOn,
251
    long lastCheckedOn,
252
    String tinNumber,
253
    String pincode,
254
    String vendorString,
255
    WarehouseLocation logisticsLocation,
256
    BillingType billingType,
257
    WarehouseType warehouseType,
258
    InventoryType inventoryType,
259
    Vendor vendor,
260
    long shippingWarehouseId,
261
    long billingWarehouseId,
262
    boolean isAvailabilityMonitored,
7330 amit.gupta 263
    long transferDelayInHours,
264
    long stateId)
5945 mandeep.dh 265
  {
266
    this();
267
    this.id = id;
268
    setIdIsSet(true);
269
    this.displayName = displayName;
270
    this.location = location;
271
    this.addedOn = addedOn;
272
    setAddedOnIsSet(true);
273
    this.lastCheckedOn = lastCheckedOn;
274
    setLastCheckedOnIsSet(true);
275
    this.tinNumber = tinNumber;
276
    this.pincode = pincode;
277
    this.vendorString = vendorString;
278
    this.logisticsLocation = logisticsLocation;
279
    this.billingType = billingType;
280
    this.warehouseType = warehouseType;
281
    this.inventoryType = inventoryType;
282
    this.vendor = vendor;
283
    this.shippingWarehouseId = shippingWarehouseId;
284
    setShippingWarehouseIdIsSet(true);
285
    this.billingWarehouseId = billingWarehouseId;
286
    setBillingWarehouseIdIsSet(true);
287
    this.isAvailabilityMonitored = isAvailabilityMonitored;
288
    setIsAvailabilityMonitoredIsSet(true);
289
    this.transferDelayInHours = transferDelayInHours;
290
    setTransferDelayInHoursIsSet(true);
7330 amit.gupta 291
    this.stateId = stateId;
292
    setStateIdIsSet(true);
5945 mandeep.dh 293
  }
294
 
295
  /**
296
   * Performs a deep copy on <i>other</i>.
297
   */
298
  public Warehouse(Warehouse other) {
299
    __isset_bit_vector.clear();
300
    __isset_bit_vector.or(other.__isset_bit_vector);
301
    this.id = other.id;
302
    if (other.isSetDisplayName()) {
303
      this.displayName = other.displayName;
304
    }
305
    if (other.isSetLocation()) {
306
      this.location = other.location;
307
    }
308
    this.addedOn = other.addedOn;
309
    this.lastCheckedOn = other.lastCheckedOn;
310
    if (other.isSetTinNumber()) {
311
      this.tinNumber = other.tinNumber;
312
    }
313
    if (other.isSetPincode()) {
314
      this.pincode = other.pincode;
315
    }
316
    if (other.isSetVendorString()) {
317
      this.vendorString = other.vendorString;
318
    }
319
    if (other.isSetLogisticsLocation()) {
320
      this.logisticsLocation = other.logisticsLocation;
321
    }
322
    if (other.isSetBillingType()) {
323
      this.billingType = other.billingType;
324
    }
325
    if (other.isSetWarehouseType()) {
326
      this.warehouseType = other.warehouseType;
327
    }
328
    if (other.isSetInventoryType()) {
329
      this.inventoryType = other.inventoryType;
330
    }
331
    if (other.isSetVendor()) {
332
      this.vendor = new Vendor(other.vendor);
333
    }
334
    this.shippingWarehouseId = other.shippingWarehouseId;
335
    this.billingWarehouseId = other.billingWarehouseId;
336
    this.isAvailabilityMonitored = other.isAvailabilityMonitored;
337
    this.transferDelayInHours = other.transferDelayInHours;
7330 amit.gupta 338
    this.stateId = other.stateId;
5945 mandeep.dh 339
  }
340
 
341
  public Warehouse deepCopy() {
342
    return new Warehouse(this);
343
  }
344
 
345
  @Override
346
  public void clear() {
347
    setIdIsSet(false);
348
    this.id = 0;
349
    this.displayName = null;
350
    this.location = null;
351
    setAddedOnIsSet(false);
352
    this.addedOn = 0;
353
    setLastCheckedOnIsSet(false);
354
    this.lastCheckedOn = 0;
355
    this.tinNumber = null;
356
    this.pincode = null;
357
    this.vendorString = null;
358
    this.logisticsLocation = null;
359
    this.billingType = null;
360
    this.warehouseType = null;
361
    this.inventoryType = null;
362
    this.vendor = null;
363
    setShippingWarehouseIdIsSet(false);
364
    this.shippingWarehouseId = 0;
365
    setBillingWarehouseIdIsSet(false);
366
    this.billingWarehouseId = 0;
367
    setIsAvailabilityMonitoredIsSet(false);
368
    this.isAvailabilityMonitored = false;
369
    setTransferDelayInHoursIsSet(false);
370
    this.transferDelayInHours = 0;
7330 amit.gupta 371
    setStateIdIsSet(false);
372
    this.stateId = 0;
5945 mandeep.dh 373
  }
374
 
375
  public long getId() {
376
    return this.id;
377
  }
378
 
379
  public void setId(long id) {
380
    this.id = id;
381
    setIdIsSet(true);
382
  }
383
 
384
  public void unsetId() {
385
    __isset_bit_vector.clear(__ID_ISSET_ID);
386
  }
387
 
388
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
389
  public boolean isSetId() {
390
    return __isset_bit_vector.get(__ID_ISSET_ID);
391
  }
392
 
393
  public void setIdIsSet(boolean value) {
394
    __isset_bit_vector.set(__ID_ISSET_ID, value);
395
  }
396
 
397
  public String getDisplayName() {
398
    return this.displayName;
399
  }
400
 
401
  public void setDisplayName(String displayName) {
402
    this.displayName = displayName;
403
  }
404
 
405
  public void unsetDisplayName() {
406
    this.displayName = null;
407
  }
408
 
409
  /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
410
  public boolean isSetDisplayName() {
411
    return this.displayName != null;
412
  }
413
 
414
  public void setDisplayNameIsSet(boolean value) {
415
    if (!value) {
416
      this.displayName = null;
417
    }
418
  }
419
 
420
  public String getLocation() {
421
    return this.location;
422
  }
423
 
424
  public void setLocation(String location) {
425
    this.location = location;
426
  }
427
 
428
  public void unsetLocation() {
429
    this.location = null;
430
  }
431
 
432
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
433
  public boolean isSetLocation() {
434
    return this.location != null;
435
  }
436
 
437
  public void setLocationIsSet(boolean value) {
438
    if (!value) {
439
      this.location = null;
440
    }
441
  }
442
 
443
  public long getAddedOn() {
444
    return this.addedOn;
445
  }
446
 
447
  public void setAddedOn(long addedOn) {
448
    this.addedOn = addedOn;
449
    setAddedOnIsSet(true);
450
  }
451
 
452
  public void unsetAddedOn() {
453
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
454
  }
455
 
456
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
457
  public boolean isSetAddedOn() {
458
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
459
  }
460
 
461
  public void setAddedOnIsSet(boolean value) {
462
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
463
  }
464
 
465
  public long getLastCheckedOn() {
466
    return this.lastCheckedOn;
467
  }
468
 
469
  public void setLastCheckedOn(long lastCheckedOn) {
470
    this.lastCheckedOn = lastCheckedOn;
471
    setLastCheckedOnIsSet(true);
472
  }
473
 
474
  public void unsetLastCheckedOn() {
475
    __isset_bit_vector.clear(__LASTCHECKEDON_ISSET_ID);
476
  }
477
 
478
  /** Returns true if field lastCheckedOn is set (has been assigned a value) and false otherwise */
479
  public boolean isSetLastCheckedOn() {
480
    return __isset_bit_vector.get(__LASTCHECKEDON_ISSET_ID);
481
  }
482
 
483
  public void setLastCheckedOnIsSet(boolean value) {
484
    __isset_bit_vector.set(__LASTCHECKEDON_ISSET_ID, value);
485
  }
486
 
487
  public String getTinNumber() {
488
    return this.tinNumber;
489
  }
490
 
491
  public void setTinNumber(String tinNumber) {
492
    this.tinNumber = tinNumber;
493
  }
494
 
495
  public void unsetTinNumber() {
496
    this.tinNumber = null;
497
  }
498
 
499
  /** Returns true if field tinNumber is set (has been assigned a value) and false otherwise */
500
  public boolean isSetTinNumber() {
501
    return this.tinNumber != null;
502
  }
503
 
504
  public void setTinNumberIsSet(boolean value) {
505
    if (!value) {
506
      this.tinNumber = null;
507
    }
508
  }
509
 
510
  public String getPincode() {
511
    return this.pincode;
512
  }
513
 
514
  public void setPincode(String pincode) {
515
    this.pincode = pincode;
516
  }
517
 
518
  public void unsetPincode() {
519
    this.pincode = null;
520
  }
521
 
522
  /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
523
  public boolean isSetPincode() {
524
    return this.pincode != null;
525
  }
526
 
527
  public void setPincodeIsSet(boolean value) {
528
    if (!value) {
529
      this.pincode = null;
530
    }
531
  }
532
 
533
  public String getVendorString() {
534
    return this.vendorString;
535
  }
536
 
537
  public void setVendorString(String vendorString) {
538
    this.vendorString = vendorString;
539
  }
540
 
541
  public void unsetVendorString() {
542
    this.vendorString = null;
543
  }
544
 
545
  /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
546
  public boolean isSetVendorString() {
547
    return this.vendorString != null;
548
  }
549
 
550
  public void setVendorStringIsSet(boolean value) {
551
    if (!value) {
552
      this.vendorString = null;
553
    }
554
  }
555
 
556
  /**
557
   * 
558
   * @see WarehouseLocation
559
   */
560
  public WarehouseLocation getLogisticsLocation() {
561
    return this.logisticsLocation;
562
  }
563
 
564
  /**
565
   * 
566
   * @see WarehouseLocation
567
   */
568
  public void setLogisticsLocation(WarehouseLocation logisticsLocation) {
569
    this.logisticsLocation = logisticsLocation;
570
  }
571
 
572
  public void unsetLogisticsLocation() {
573
    this.logisticsLocation = null;
574
  }
575
 
576
  /** Returns true if field logisticsLocation is set (has been assigned a value) and false otherwise */
577
  public boolean isSetLogisticsLocation() {
578
    return this.logisticsLocation != null;
579
  }
580
 
581
  public void setLogisticsLocationIsSet(boolean value) {
582
    if (!value) {
583
      this.logisticsLocation = null;
584
    }
585
  }
586
 
587
  /**
588
   * 
589
   * @see BillingType
590
   */
591
  public BillingType getBillingType() {
592
    return this.billingType;
593
  }
594
 
595
  /**
596
   * 
597
   * @see BillingType
598
   */
599
  public void setBillingType(BillingType billingType) {
600
    this.billingType = billingType;
601
  }
602
 
603
  public void unsetBillingType() {
604
    this.billingType = null;
605
  }
606
 
607
  /** Returns true if field billingType is set (has been assigned a value) and false otherwise */
608
  public boolean isSetBillingType() {
609
    return this.billingType != null;
610
  }
611
 
612
  public void setBillingTypeIsSet(boolean value) {
613
    if (!value) {
614
      this.billingType = null;
615
    }
616
  }
617
 
618
  /**
619
   * 
620
   * @see WarehouseType
621
   */
622
  public WarehouseType getWarehouseType() {
623
    return this.warehouseType;
624
  }
625
 
626
  /**
627
   * 
628
   * @see WarehouseType
629
   */
630
  public void setWarehouseType(WarehouseType warehouseType) {
631
    this.warehouseType = warehouseType;
632
  }
633
 
634
  public void unsetWarehouseType() {
635
    this.warehouseType = null;
636
  }
637
 
638
  /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
639
  public boolean isSetWarehouseType() {
640
    return this.warehouseType != null;
641
  }
642
 
643
  public void setWarehouseTypeIsSet(boolean value) {
644
    if (!value) {
645
      this.warehouseType = null;
646
    }
647
  }
648
 
649
  /**
650
   * 
651
   * @see InventoryType
652
   */
653
  public InventoryType getInventoryType() {
654
    return this.inventoryType;
655
  }
656
 
657
  /**
658
   * 
659
   * @see InventoryType
660
   */
661
  public void setInventoryType(InventoryType inventoryType) {
662
    this.inventoryType = inventoryType;
663
  }
664
 
665
  public void unsetInventoryType() {
666
    this.inventoryType = null;
667
  }
668
 
669
  /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
670
  public boolean isSetInventoryType() {
671
    return this.inventoryType != null;
672
  }
673
 
674
  public void setInventoryTypeIsSet(boolean value) {
675
    if (!value) {
676
      this.inventoryType = null;
677
    }
678
  }
679
 
680
  public Vendor getVendor() {
681
    return this.vendor;
682
  }
683
 
684
  public void setVendor(Vendor vendor) {
685
    this.vendor = vendor;
686
  }
687
 
688
  public void unsetVendor() {
689
    this.vendor = null;
690
  }
691
 
692
  /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
693
  public boolean isSetVendor() {
694
    return this.vendor != null;
695
  }
696
 
697
  public void setVendorIsSet(boolean value) {
698
    if (!value) {
699
      this.vendor = null;
700
    }
701
  }
702
 
703
  public long getShippingWarehouseId() {
704
    return this.shippingWarehouseId;
705
  }
706
 
707
  public void setShippingWarehouseId(long shippingWarehouseId) {
708
    this.shippingWarehouseId = shippingWarehouseId;
709
    setShippingWarehouseIdIsSet(true);
710
  }
711
 
712
  public void unsetShippingWarehouseId() {
713
    __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
714
  }
715
 
716
  /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
717
  public boolean isSetShippingWarehouseId() {
718
    return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
719
  }
720
 
721
  public void setShippingWarehouseIdIsSet(boolean value) {
722
    __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
723
  }
724
 
725
  public long getBillingWarehouseId() {
726
    return this.billingWarehouseId;
727
  }
728
 
729
  public void setBillingWarehouseId(long billingWarehouseId) {
730
    this.billingWarehouseId = billingWarehouseId;
731
    setBillingWarehouseIdIsSet(true);
732
  }
733
 
734
  public void unsetBillingWarehouseId() {
735
    __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
736
  }
737
 
738
  /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
739
  public boolean isSetBillingWarehouseId() {
740
    return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
741
  }
742
 
743
  public void setBillingWarehouseIdIsSet(boolean value) {
744
    __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
745
  }
746
 
747
  public boolean isIsAvailabilityMonitored() {
748
    return this.isAvailabilityMonitored;
749
  }
750
 
751
  public void setIsAvailabilityMonitored(boolean isAvailabilityMonitored) {
752
    this.isAvailabilityMonitored = isAvailabilityMonitored;
753
    setIsAvailabilityMonitoredIsSet(true);
754
  }
755
 
756
  public void unsetIsAvailabilityMonitored() {
757
    __isset_bit_vector.clear(__ISAVAILABILITYMONITORED_ISSET_ID);
758
  }
759
 
760
  /** Returns true if field isAvailabilityMonitored is set (has been assigned a value) and false otherwise */
761
  public boolean isSetIsAvailabilityMonitored() {
762
    return __isset_bit_vector.get(__ISAVAILABILITYMONITORED_ISSET_ID);
763
  }
764
 
765
  public void setIsAvailabilityMonitoredIsSet(boolean value) {
766
    __isset_bit_vector.set(__ISAVAILABILITYMONITORED_ISSET_ID, value);
767
  }
768
 
769
  public long getTransferDelayInHours() {
770
    return this.transferDelayInHours;
771
  }
772
 
773
  public void setTransferDelayInHours(long transferDelayInHours) {
774
    this.transferDelayInHours = transferDelayInHours;
775
    setTransferDelayInHoursIsSet(true);
776
  }
777
 
778
  public void unsetTransferDelayInHours() {
779
    __isset_bit_vector.clear(__TRANSFERDELAYINHOURS_ISSET_ID);
780
  }
781
 
782
  /** Returns true if field transferDelayInHours is set (has been assigned a value) and false otherwise */
783
  public boolean isSetTransferDelayInHours() {
784
    return __isset_bit_vector.get(__TRANSFERDELAYINHOURS_ISSET_ID);
785
  }
786
 
787
  public void setTransferDelayInHoursIsSet(boolean value) {
788
    __isset_bit_vector.set(__TRANSFERDELAYINHOURS_ISSET_ID, value);
789
  }
790
 
7330 amit.gupta 791
  public long getStateId() {
792
    return this.stateId;
793
  }
794
 
795
  public void setStateId(long stateId) {
796
    this.stateId = stateId;
797
    setStateIdIsSet(true);
798
  }
799
 
800
  public void unsetStateId() {
801
    __isset_bit_vector.clear(__STATEID_ISSET_ID);
802
  }
803
 
804
  /** Returns true if field stateId is set (has been assigned a value) and false otherwise */
805
  public boolean isSetStateId() {
806
    return __isset_bit_vector.get(__STATEID_ISSET_ID);
807
  }
808
 
809
  public void setStateIdIsSet(boolean value) {
810
    __isset_bit_vector.set(__STATEID_ISSET_ID, value);
811
  }
812
 
5945 mandeep.dh 813
  public void setFieldValue(_Fields field, Object value) {
814
    switch (field) {
815
    case ID:
816
      if (value == null) {
817
        unsetId();
818
      } else {
819
        setId((Long)value);
820
      }
821
      break;
822
 
823
    case DISPLAY_NAME:
824
      if (value == null) {
825
        unsetDisplayName();
826
      } else {
827
        setDisplayName((String)value);
828
      }
829
      break;
830
 
831
    case LOCATION:
832
      if (value == null) {
833
        unsetLocation();
834
      } else {
835
        setLocation((String)value);
836
      }
837
      break;
838
 
839
    case ADDED_ON:
840
      if (value == null) {
841
        unsetAddedOn();
842
      } else {
843
        setAddedOn((Long)value);
844
      }
845
      break;
846
 
847
    case LAST_CHECKED_ON:
848
      if (value == null) {
849
        unsetLastCheckedOn();
850
      } else {
851
        setLastCheckedOn((Long)value);
852
      }
853
      break;
854
 
855
    case TIN_NUMBER:
856
      if (value == null) {
857
        unsetTinNumber();
858
      } else {
859
        setTinNumber((String)value);
860
      }
861
      break;
862
 
863
    case PINCODE:
864
      if (value == null) {
865
        unsetPincode();
866
      } else {
867
        setPincode((String)value);
868
      }
869
      break;
870
 
871
    case VENDOR_STRING:
872
      if (value == null) {
873
        unsetVendorString();
874
      } else {
875
        setVendorString((String)value);
876
      }
877
      break;
878
 
879
    case LOGISTICS_LOCATION:
880
      if (value == null) {
881
        unsetLogisticsLocation();
882
      } else {
883
        setLogisticsLocation((WarehouseLocation)value);
884
      }
885
      break;
886
 
887
    case BILLING_TYPE:
888
      if (value == null) {
889
        unsetBillingType();
890
      } else {
891
        setBillingType((BillingType)value);
892
      }
893
      break;
894
 
895
    case WAREHOUSE_TYPE:
896
      if (value == null) {
897
        unsetWarehouseType();
898
      } else {
899
        setWarehouseType((WarehouseType)value);
900
      }
901
      break;
902
 
903
    case INVENTORY_TYPE:
904
      if (value == null) {
905
        unsetInventoryType();
906
      } else {
907
        setInventoryType((InventoryType)value);
908
      }
909
      break;
910
 
911
    case VENDOR:
912
      if (value == null) {
913
        unsetVendor();
914
      } else {
915
        setVendor((Vendor)value);
916
      }
917
      break;
918
 
919
    case SHIPPING_WAREHOUSE_ID:
920
      if (value == null) {
921
        unsetShippingWarehouseId();
922
      } else {
923
        setShippingWarehouseId((Long)value);
924
      }
925
      break;
926
 
927
    case BILLING_WAREHOUSE_ID:
928
      if (value == null) {
929
        unsetBillingWarehouseId();
930
      } else {
931
        setBillingWarehouseId((Long)value);
932
      }
933
      break;
934
 
935
    case IS_AVAILABILITY_MONITORED:
936
      if (value == null) {
937
        unsetIsAvailabilityMonitored();
938
      } else {
939
        setIsAvailabilityMonitored((Boolean)value);
940
      }
941
      break;
942
 
943
    case TRANSFER_DELAY_IN_HOURS:
944
      if (value == null) {
945
        unsetTransferDelayInHours();
946
      } else {
947
        setTransferDelayInHours((Long)value);
948
      }
949
      break;
950
 
7330 amit.gupta 951
    case STATE_ID:
952
      if (value == null) {
953
        unsetStateId();
954
      } else {
955
        setStateId((Long)value);
956
      }
957
      break;
958
 
5945 mandeep.dh 959
    }
960
  }
961
 
962
  public Object getFieldValue(_Fields field) {
963
    switch (field) {
964
    case ID:
965
      return Long.valueOf(getId());
966
 
967
    case DISPLAY_NAME:
968
      return getDisplayName();
969
 
970
    case LOCATION:
971
      return getLocation();
972
 
973
    case ADDED_ON:
974
      return Long.valueOf(getAddedOn());
975
 
976
    case LAST_CHECKED_ON:
977
      return Long.valueOf(getLastCheckedOn());
978
 
979
    case TIN_NUMBER:
980
      return getTinNumber();
981
 
982
    case PINCODE:
983
      return getPincode();
984
 
985
    case VENDOR_STRING:
986
      return getVendorString();
987
 
988
    case LOGISTICS_LOCATION:
989
      return getLogisticsLocation();
990
 
991
    case BILLING_TYPE:
992
      return getBillingType();
993
 
994
    case WAREHOUSE_TYPE:
995
      return getWarehouseType();
996
 
997
    case INVENTORY_TYPE:
998
      return getInventoryType();
999
 
1000
    case VENDOR:
1001
      return getVendor();
1002
 
1003
    case SHIPPING_WAREHOUSE_ID:
1004
      return Long.valueOf(getShippingWarehouseId());
1005
 
1006
    case BILLING_WAREHOUSE_ID:
1007
      return Long.valueOf(getBillingWarehouseId());
1008
 
1009
    case IS_AVAILABILITY_MONITORED:
1010
      return Boolean.valueOf(isIsAvailabilityMonitored());
1011
 
1012
    case TRANSFER_DELAY_IN_HOURS:
1013
      return Long.valueOf(getTransferDelayInHours());
1014
 
7330 amit.gupta 1015
    case STATE_ID:
1016
      return Long.valueOf(getStateId());
1017
 
5945 mandeep.dh 1018
    }
1019
    throw new IllegalStateException();
1020
  }
1021
 
1022
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1023
  public boolean isSet(_Fields field) {
1024
    if (field == null) {
1025
      throw new IllegalArgumentException();
1026
    }
1027
 
1028
    switch (field) {
1029
    case ID:
1030
      return isSetId();
1031
    case DISPLAY_NAME:
1032
      return isSetDisplayName();
1033
    case LOCATION:
1034
      return isSetLocation();
1035
    case ADDED_ON:
1036
      return isSetAddedOn();
1037
    case LAST_CHECKED_ON:
1038
      return isSetLastCheckedOn();
1039
    case TIN_NUMBER:
1040
      return isSetTinNumber();
1041
    case PINCODE:
1042
      return isSetPincode();
1043
    case VENDOR_STRING:
1044
      return isSetVendorString();
1045
    case LOGISTICS_LOCATION:
1046
      return isSetLogisticsLocation();
1047
    case BILLING_TYPE:
1048
      return isSetBillingType();
1049
    case WAREHOUSE_TYPE:
1050
      return isSetWarehouseType();
1051
    case INVENTORY_TYPE:
1052
      return isSetInventoryType();
1053
    case VENDOR:
1054
      return isSetVendor();
1055
    case SHIPPING_WAREHOUSE_ID:
1056
      return isSetShippingWarehouseId();
1057
    case BILLING_WAREHOUSE_ID:
1058
      return isSetBillingWarehouseId();
1059
    case IS_AVAILABILITY_MONITORED:
1060
      return isSetIsAvailabilityMonitored();
1061
    case TRANSFER_DELAY_IN_HOURS:
1062
      return isSetTransferDelayInHours();
7330 amit.gupta 1063
    case STATE_ID:
1064
      return isSetStateId();
5945 mandeep.dh 1065
    }
1066
    throw new IllegalStateException();
1067
  }
1068
 
1069
  @Override
1070
  public boolean equals(Object that) {
1071
    if (that == null)
1072
      return false;
1073
    if (that instanceof Warehouse)
1074
      return this.equals((Warehouse)that);
1075
    return false;
1076
  }
1077
 
1078
  public boolean equals(Warehouse that) {
1079
    if (that == null)
1080
      return false;
1081
 
1082
    boolean this_present_id = true;
1083
    boolean that_present_id = true;
1084
    if (this_present_id || that_present_id) {
1085
      if (!(this_present_id && that_present_id))
1086
        return false;
1087
      if (this.id != that.id)
1088
        return false;
1089
    }
1090
 
1091
    boolean this_present_displayName = true && this.isSetDisplayName();
1092
    boolean that_present_displayName = true && that.isSetDisplayName();
1093
    if (this_present_displayName || that_present_displayName) {
1094
      if (!(this_present_displayName && that_present_displayName))
1095
        return false;
1096
      if (!this.displayName.equals(that.displayName))
1097
        return false;
1098
    }
1099
 
1100
    boolean this_present_location = true && this.isSetLocation();
1101
    boolean that_present_location = true && that.isSetLocation();
1102
    if (this_present_location || that_present_location) {
1103
      if (!(this_present_location && that_present_location))
1104
        return false;
1105
      if (!this.location.equals(that.location))
1106
        return false;
1107
    }
1108
 
1109
    boolean this_present_addedOn = true;
1110
    boolean that_present_addedOn = true;
1111
    if (this_present_addedOn || that_present_addedOn) {
1112
      if (!(this_present_addedOn && that_present_addedOn))
1113
        return false;
1114
      if (this.addedOn != that.addedOn)
1115
        return false;
1116
    }
1117
 
1118
    boolean this_present_lastCheckedOn = true;
1119
    boolean that_present_lastCheckedOn = true;
1120
    if (this_present_lastCheckedOn || that_present_lastCheckedOn) {
1121
      if (!(this_present_lastCheckedOn && that_present_lastCheckedOn))
1122
        return false;
1123
      if (this.lastCheckedOn != that.lastCheckedOn)
1124
        return false;
1125
    }
1126
 
1127
    boolean this_present_tinNumber = true && this.isSetTinNumber();
1128
    boolean that_present_tinNumber = true && that.isSetTinNumber();
1129
    if (this_present_tinNumber || that_present_tinNumber) {
1130
      if (!(this_present_tinNumber && that_present_tinNumber))
1131
        return false;
1132
      if (!this.tinNumber.equals(that.tinNumber))
1133
        return false;
1134
    }
1135
 
1136
    boolean this_present_pincode = true && this.isSetPincode();
1137
    boolean that_present_pincode = true && that.isSetPincode();
1138
    if (this_present_pincode || that_present_pincode) {
1139
      if (!(this_present_pincode && that_present_pincode))
1140
        return false;
1141
      if (!this.pincode.equals(that.pincode))
1142
        return false;
1143
    }
1144
 
1145
    boolean this_present_vendorString = true && this.isSetVendorString();
1146
    boolean that_present_vendorString = true && that.isSetVendorString();
1147
    if (this_present_vendorString || that_present_vendorString) {
1148
      if (!(this_present_vendorString && that_present_vendorString))
1149
        return false;
1150
      if (!this.vendorString.equals(that.vendorString))
1151
        return false;
1152
    }
1153
 
1154
    boolean this_present_logisticsLocation = true && this.isSetLogisticsLocation();
1155
    boolean that_present_logisticsLocation = true && that.isSetLogisticsLocation();
1156
    if (this_present_logisticsLocation || that_present_logisticsLocation) {
1157
      if (!(this_present_logisticsLocation && that_present_logisticsLocation))
1158
        return false;
1159
      if (!this.logisticsLocation.equals(that.logisticsLocation))
1160
        return false;
1161
    }
1162
 
1163
    boolean this_present_billingType = true && this.isSetBillingType();
1164
    boolean that_present_billingType = true && that.isSetBillingType();
1165
    if (this_present_billingType || that_present_billingType) {
1166
      if (!(this_present_billingType && that_present_billingType))
1167
        return false;
1168
      if (!this.billingType.equals(that.billingType))
1169
        return false;
1170
    }
1171
 
1172
    boolean this_present_warehouseType = true && this.isSetWarehouseType();
1173
    boolean that_present_warehouseType = true && that.isSetWarehouseType();
1174
    if (this_present_warehouseType || that_present_warehouseType) {
1175
      if (!(this_present_warehouseType && that_present_warehouseType))
1176
        return false;
1177
      if (!this.warehouseType.equals(that.warehouseType))
1178
        return false;
1179
    }
1180
 
1181
    boolean this_present_inventoryType = true && this.isSetInventoryType();
1182
    boolean that_present_inventoryType = true && that.isSetInventoryType();
1183
    if (this_present_inventoryType || that_present_inventoryType) {
1184
      if (!(this_present_inventoryType && that_present_inventoryType))
1185
        return false;
1186
      if (!this.inventoryType.equals(that.inventoryType))
1187
        return false;
1188
    }
1189
 
1190
    boolean this_present_vendor = true && this.isSetVendor();
1191
    boolean that_present_vendor = true && that.isSetVendor();
1192
    if (this_present_vendor || that_present_vendor) {
1193
      if (!(this_present_vendor && that_present_vendor))
1194
        return false;
1195
      if (!this.vendor.equals(that.vendor))
1196
        return false;
1197
    }
1198
 
1199
    boolean this_present_shippingWarehouseId = true;
1200
    boolean that_present_shippingWarehouseId = true;
1201
    if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
1202
      if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
1203
        return false;
1204
      if (this.shippingWarehouseId != that.shippingWarehouseId)
1205
        return false;
1206
    }
1207
 
1208
    boolean this_present_billingWarehouseId = true;
1209
    boolean that_present_billingWarehouseId = true;
1210
    if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
1211
      if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
1212
        return false;
1213
      if (this.billingWarehouseId != that.billingWarehouseId)
1214
        return false;
1215
    }
1216
 
1217
    boolean this_present_isAvailabilityMonitored = true;
1218
    boolean that_present_isAvailabilityMonitored = true;
1219
    if (this_present_isAvailabilityMonitored || that_present_isAvailabilityMonitored) {
1220
      if (!(this_present_isAvailabilityMonitored && that_present_isAvailabilityMonitored))
1221
        return false;
1222
      if (this.isAvailabilityMonitored != that.isAvailabilityMonitored)
1223
        return false;
1224
    }
1225
 
1226
    boolean this_present_transferDelayInHours = true;
1227
    boolean that_present_transferDelayInHours = true;
1228
    if (this_present_transferDelayInHours || that_present_transferDelayInHours) {
1229
      if (!(this_present_transferDelayInHours && that_present_transferDelayInHours))
1230
        return false;
1231
      if (this.transferDelayInHours != that.transferDelayInHours)
1232
        return false;
1233
    }
1234
 
7330 amit.gupta 1235
    boolean this_present_stateId = true;
1236
    boolean that_present_stateId = true;
1237
    if (this_present_stateId || that_present_stateId) {
1238
      if (!(this_present_stateId && that_present_stateId))
1239
        return false;
1240
      if (this.stateId != that.stateId)
1241
        return false;
1242
    }
1243
 
5945 mandeep.dh 1244
    return true;
1245
  }
1246
 
1247
  @Override
1248
  public int hashCode() {
1249
    return 0;
1250
  }
1251
 
1252
  public int compareTo(Warehouse other) {
1253
    if (!getClass().equals(other.getClass())) {
1254
      return getClass().getName().compareTo(other.getClass().getName());
1255
    }
1256
 
1257
    int lastComparison = 0;
1258
    Warehouse typedOther = (Warehouse)other;
1259
 
1260
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1261
    if (lastComparison != 0) {
1262
      return lastComparison;
1263
    }
1264
    if (isSetId()) {
1265
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1266
      if (lastComparison != 0) {
1267
        return lastComparison;
1268
      }
1269
    }
1270
    lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
1271
    if (lastComparison != 0) {
1272
      return lastComparison;
1273
    }
1274
    if (isSetDisplayName()) {
1275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
1276
      if (lastComparison != 0) {
1277
        return lastComparison;
1278
      }
1279
    }
1280
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
1281
    if (lastComparison != 0) {
1282
      return lastComparison;
1283
    }
1284
    if (isSetLocation()) {
1285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
1286
      if (lastComparison != 0) {
1287
        return lastComparison;
1288
      }
1289
    }
1290
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1291
    if (lastComparison != 0) {
1292
      return lastComparison;
1293
    }
1294
    if (isSetAddedOn()) {
1295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
1296
      if (lastComparison != 0) {
1297
        return lastComparison;
1298
      }
1299
    }
1300
    lastComparison = Boolean.valueOf(isSetLastCheckedOn()).compareTo(typedOther.isSetLastCheckedOn());
1301
    if (lastComparison != 0) {
1302
      return lastComparison;
1303
    }
1304
    if (isSetLastCheckedOn()) {
1305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastCheckedOn, typedOther.lastCheckedOn);
1306
      if (lastComparison != 0) {
1307
        return lastComparison;
1308
      }
1309
    }
1310
    lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(typedOther.isSetTinNumber());
1311
    if (lastComparison != 0) {
1312
      return lastComparison;
1313
    }
1314
    if (isSetTinNumber()) {
1315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinNumber, typedOther.tinNumber);
1316
      if (lastComparison != 0) {
1317
        return lastComparison;
1318
      }
1319
    }
1320
    lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
1321
    if (lastComparison != 0) {
1322
      return lastComparison;
1323
    }
1324
    if (isSetPincode()) {
1325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
1326
      if (lastComparison != 0) {
1327
        return lastComparison;
1328
      }
1329
    }
1330
    lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
1331
    if (lastComparison != 0) {
1332
      return lastComparison;
1333
    }
1334
    if (isSetVendorString()) {
1335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
1336
      if (lastComparison != 0) {
1337
        return lastComparison;
1338
      }
1339
    }
1340
    lastComparison = Boolean.valueOf(isSetLogisticsLocation()).compareTo(typedOther.isSetLogisticsLocation());
1341
    if (lastComparison != 0) {
1342
      return lastComparison;
1343
    }
1344
    if (isSetLogisticsLocation()) {
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocation, typedOther.logisticsLocation);
1346
      if (lastComparison != 0) {
1347
        return lastComparison;
1348
      }
1349
    }
1350
    lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
1351
    if (lastComparison != 0) {
1352
      return lastComparison;
1353
    }
1354
    if (isSetBillingType()) {
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
1356
      if (lastComparison != 0) {
1357
        return lastComparison;
1358
      }
1359
    }
1360
    lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
1361
    if (lastComparison != 0) {
1362
      return lastComparison;
1363
    }
1364
    if (isSetWarehouseType()) {
1365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
1366
      if (lastComparison != 0) {
1367
        return lastComparison;
1368
      }
1369
    }
1370
    lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
1371
    if (lastComparison != 0) {
1372
      return lastComparison;
1373
    }
1374
    if (isSetInventoryType()) {
1375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
1376
      if (lastComparison != 0) {
1377
        return lastComparison;
1378
      }
1379
    }
1380
    lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
1381
    if (lastComparison != 0) {
1382
      return lastComparison;
1383
    }
1384
    if (isSetVendor()) {
1385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
1386
      if (lastComparison != 0) {
1387
        return lastComparison;
1388
      }
1389
    }
1390
    lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
1391
    if (lastComparison != 0) {
1392
      return lastComparison;
1393
    }
1394
    if (isSetShippingWarehouseId()) {
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
1396
      if (lastComparison != 0) {
1397
        return lastComparison;
1398
      }
1399
    }
1400
    lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
1401
    if (lastComparison != 0) {
1402
      return lastComparison;
1403
    }
1404
    if (isSetBillingWarehouseId()) {
1405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
1406
      if (lastComparison != 0) {
1407
        return lastComparison;
1408
      }
1409
    }
1410
    lastComparison = Boolean.valueOf(isSetIsAvailabilityMonitored()).compareTo(typedOther.isSetIsAvailabilityMonitored());
1411
    if (lastComparison != 0) {
1412
      return lastComparison;
1413
    }
1414
    if (isSetIsAvailabilityMonitored()) {
1415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAvailabilityMonitored, typedOther.isAvailabilityMonitored);
1416
      if (lastComparison != 0) {
1417
        return lastComparison;
1418
      }
1419
    }
1420
    lastComparison = Boolean.valueOf(isSetTransferDelayInHours()).compareTo(typedOther.isSetTransferDelayInHours());
1421
    if (lastComparison != 0) {
1422
      return lastComparison;
1423
    }
1424
    if (isSetTransferDelayInHours()) {
1425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferDelayInHours, typedOther.transferDelayInHours);
1426
      if (lastComparison != 0) {
1427
        return lastComparison;
1428
      }
1429
    }
7330 amit.gupta 1430
    lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
1431
    if (lastComparison != 0) {
1432
      return lastComparison;
1433
    }
1434
    if (isSetStateId()) {
1435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
1436
      if (lastComparison != 0) {
1437
        return lastComparison;
1438
      }
1439
    }
5945 mandeep.dh 1440
    return 0;
1441
  }
1442
 
1443
  public _Fields fieldForId(int fieldId) {
1444
    return _Fields.findByThriftId(fieldId);
1445
  }
1446
 
1447
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1448
    org.apache.thrift.protocol.TField field;
1449
    iprot.readStructBegin();
1450
    while (true)
1451
    {
1452
      field = iprot.readFieldBegin();
1453
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1454
        break;
1455
      }
1456
      switch (field.id) {
1457
        case 1: // ID
1458
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1459
            this.id = iprot.readI64();
1460
            setIdIsSet(true);
1461
          } else { 
1462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1463
          }
1464
          break;
1465
        case 2: // DISPLAY_NAME
1466
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1467
            this.displayName = iprot.readString();
1468
          } else { 
1469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1470
          }
1471
          break;
1472
        case 3: // LOCATION
1473
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1474
            this.location = iprot.readString();
1475
          } else { 
1476
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1477
          }
1478
          break;
1479
        case 5: // ADDED_ON
1480
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1481
            this.addedOn = iprot.readI64();
1482
            setAddedOnIsSet(true);
1483
          } else { 
1484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1485
          }
1486
          break;
1487
        case 6: // LAST_CHECKED_ON
1488
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1489
            this.lastCheckedOn = iprot.readI64();
1490
            setLastCheckedOnIsSet(true);
1491
          } else { 
1492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1493
          }
1494
          break;
1495
        case 7: // TIN_NUMBER
1496
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1497
            this.tinNumber = iprot.readString();
1498
          } else { 
1499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1500
          }
1501
          break;
1502
        case 8: // PINCODE
1503
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1504
            this.pincode = iprot.readString();
1505
          } else { 
1506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1507
          }
1508
          break;
1509
        case 9: // VENDOR_STRING
1510
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1511
            this.vendorString = iprot.readString();
1512
          } else { 
1513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1514
          }
1515
          break;
1516
        case 10: // LOGISTICS_LOCATION
1517
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1518
            this.logisticsLocation = WarehouseLocation.findByValue(iprot.readI32());
1519
          } else { 
1520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1521
          }
1522
          break;
1523
        case 12: // BILLING_TYPE
1524
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1525
            this.billingType = BillingType.findByValue(iprot.readI32());
1526
          } else { 
1527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1528
          }
1529
          break;
1530
        case 13: // WAREHOUSE_TYPE
1531
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1532
            this.warehouseType = WarehouseType.findByValue(iprot.readI32());
1533
          } else { 
1534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1535
          }
1536
          break;
1537
        case 14: // INVENTORY_TYPE
1538
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1539
            this.inventoryType = InventoryType.findByValue(iprot.readI32());
1540
          } else { 
1541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1542
          }
1543
          break;
1544
        case 15: // VENDOR
1545
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1546
            this.vendor = new Vendor();
1547
            this.vendor.read(iprot);
1548
          } else { 
1549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1550
          }
1551
          break;
1552
        case 16: // SHIPPING_WAREHOUSE_ID
1553
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1554
            this.shippingWarehouseId = iprot.readI64();
1555
            setShippingWarehouseIdIsSet(true);
1556
          } else { 
1557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1558
          }
1559
          break;
1560
        case 17: // BILLING_WAREHOUSE_ID
1561
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1562
            this.billingWarehouseId = iprot.readI64();
1563
            setBillingWarehouseIdIsSet(true);
1564
          } else { 
1565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1566
          }
1567
          break;
1568
        case 18: // IS_AVAILABILITY_MONITORED
1569
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1570
            this.isAvailabilityMonitored = iprot.readBool();
1571
            setIsAvailabilityMonitoredIsSet(true);
1572
          } else { 
1573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1574
          }
1575
          break;
1576
        case 19: // TRANSFER_DELAY_IN_HOURS
1577
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1578
            this.transferDelayInHours = iprot.readI64();
1579
            setTransferDelayInHoursIsSet(true);
1580
          } else { 
1581
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1582
          }
1583
          break;
7330 amit.gupta 1584
        case 20: // STATE_ID
1585
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1586
            this.stateId = iprot.readI64();
1587
            setStateIdIsSet(true);
1588
          } else { 
1589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1590
          }
1591
          break;
5945 mandeep.dh 1592
        default:
1593
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1594
      }
1595
      iprot.readFieldEnd();
1596
    }
1597
    iprot.readStructEnd();
1598
    validate();
1599
  }
1600
 
1601
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1602
    validate();
1603
 
1604
    oprot.writeStructBegin(STRUCT_DESC);
1605
    oprot.writeFieldBegin(ID_FIELD_DESC);
1606
    oprot.writeI64(this.id);
1607
    oprot.writeFieldEnd();
1608
    if (this.displayName != null) {
1609
      oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
1610
      oprot.writeString(this.displayName);
1611
      oprot.writeFieldEnd();
1612
    }
1613
    if (this.location != null) {
1614
      oprot.writeFieldBegin(LOCATION_FIELD_DESC);
1615
      oprot.writeString(this.location);
1616
      oprot.writeFieldEnd();
1617
    }
1618
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
1619
    oprot.writeI64(this.addedOn);
1620
    oprot.writeFieldEnd();
1621
    oprot.writeFieldBegin(LAST_CHECKED_ON_FIELD_DESC);
1622
    oprot.writeI64(this.lastCheckedOn);
1623
    oprot.writeFieldEnd();
1624
    if (this.tinNumber != null) {
1625
      oprot.writeFieldBegin(TIN_NUMBER_FIELD_DESC);
1626
      oprot.writeString(this.tinNumber);
1627
      oprot.writeFieldEnd();
1628
    }
1629
    if (this.pincode != null) {
1630
      oprot.writeFieldBegin(PINCODE_FIELD_DESC);
1631
      oprot.writeString(this.pincode);
1632
      oprot.writeFieldEnd();
1633
    }
1634
    if (this.vendorString != null) {
1635
      oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
1636
      oprot.writeString(this.vendorString);
1637
      oprot.writeFieldEnd();
1638
    }
1639
    if (this.logisticsLocation != null) {
1640
      oprot.writeFieldBegin(LOGISTICS_LOCATION_FIELD_DESC);
1641
      oprot.writeI32(this.logisticsLocation.getValue());
1642
      oprot.writeFieldEnd();
1643
    }
1644
    if (this.billingType != null) {
1645
      oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);
1646
      oprot.writeI32(this.billingType.getValue());
1647
      oprot.writeFieldEnd();
1648
    }
1649
    if (this.warehouseType != null) {
1650
      oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
1651
      oprot.writeI32(this.warehouseType.getValue());
1652
      oprot.writeFieldEnd();
1653
    }
1654
    if (this.inventoryType != null) {
1655
      oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
1656
      oprot.writeI32(this.inventoryType.getValue());
1657
      oprot.writeFieldEnd();
1658
    }
1659
    if (this.vendor != null) {
1660
      oprot.writeFieldBegin(VENDOR_FIELD_DESC);
1661
      this.vendor.write(oprot);
1662
      oprot.writeFieldEnd();
1663
    }
1664
    oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
1665
    oprot.writeI64(this.shippingWarehouseId);
1666
    oprot.writeFieldEnd();
1667
    oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
1668
    oprot.writeI64(this.billingWarehouseId);
1669
    oprot.writeFieldEnd();
1670
    oprot.writeFieldBegin(IS_AVAILABILITY_MONITORED_FIELD_DESC);
1671
    oprot.writeBool(this.isAvailabilityMonitored);
1672
    oprot.writeFieldEnd();
1673
    oprot.writeFieldBegin(TRANSFER_DELAY_IN_HOURS_FIELD_DESC);
1674
    oprot.writeI64(this.transferDelayInHours);
1675
    oprot.writeFieldEnd();
7330 amit.gupta 1676
    oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
1677
    oprot.writeI64(this.stateId);
1678
    oprot.writeFieldEnd();
5945 mandeep.dh 1679
    oprot.writeFieldStop();
1680
    oprot.writeStructEnd();
1681
  }
1682
 
1683
  @Override
1684
  public String toString() {
1685
    StringBuilder sb = new StringBuilder("Warehouse(");
1686
    boolean first = true;
1687
 
1688
    sb.append("id:");
1689
    sb.append(this.id);
1690
    first = false;
1691
    if (!first) sb.append(", ");
1692
    sb.append("displayName:");
1693
    if (this.displayName == null) {
1694
      sb.append("null");
1695
    } else {
1696
      sb.append(this.displayName);
1697
    }
1698
    first = false;
1699
    if (!first) sb.append(", ");
1700
    sb.append("location:");
1701
    if (this.location == null) {
1702
      sb.append("null");
1703
    } else {
1704
      sb.append(this.location);
1705
    }
1706
    first = false;
1707
    if (!first) sb.append(", ");
1708
    sb.append("addedOn:");
1709
    sb.append(this.addedOn);
1710
    first = false;
1711
    if (!first) sb.append(", ");
1712
    sb.append("lastCheckedOn:");
1713
    sb.append(this.lastCheckedOn);
1714
    first = false;
1715
    if (!first) sb.append(", ");
1716
    sb.append("tinNumber:");
1717
    if (this.tinNumber == null) {
1718
      sb.append("null");
1719
    } else {
1720
      sb.append(this.tinNumber);
1721
    }
1722
    first = false;
1723
    if (!first) sb.append(", ");
1724
    sb.append("pincode:");
1725
    if (this.pincode == null) {
1726
      sb.append("null");
1727
    } else {
1728
      sb.append(this.pincode);
1729
    }
1730
    first = false;
1731
    if (!first) sb.append(", ");
1732
    sb.append("vendorString:");
1733
    if (this.vendorString == null) {
1734
      sb.append("null");
1735
    } else {
1736
      sb.append(this.vendorString);
1737
    }
1738
    first = false;
1739
    if (!first) sb.append(", ");
1740
    sb.append("logisticsLocation:");
1741
    if (this.logisticsLocation == null) {
1742
      sb.append("null");
1743
    } else {
1744
      sb.append(this.logisticsLocation);
1745
    }
1746
    first = false;
1747
    if (!first) sb.append(", ");
1748
    sb.append("billingType:");
1749
    if (this.billingType == null) {
1750
      sb.append("null");
1751
    } else {
1752
      sb.append(this.billingType);
1753
    }
1754
    first = false;
1755
    if (!first) sb.append(", ");
1756
    sb.append("warehouseType:");
1757
    if (this.warehouseType == null) {
1758
      sb.append("null");
1759
    } else {
1760
      sb.append(this.warehouseType);
1761
    }
1762
    first = false;
1763
    if (!first) sb.append(", ");
1764
    sb.append("inventoryType:");
1765
    if (this.inventoryType == null) {
1766
      sb.append("null");
1767
    } else {
1768
      sb.append(this.inventoryType);
1769
    }
1770
    first = false;
1771
    if (!first) sb.append(", ");
1772
    sb.append("vendor:");
1773
    if (this.vendor == null) {
1774
      sb.append("null");
1775
    } else {
1776
      sb.append(this.vendor);
1777
    }
1778
    first = false;
1779
    if (!first) sb.append(", ");
1780
    sb.append("shippingWarehouseId:");
1781
    sb.append(this.shippingWarehouseId);
1782
    first = false;
1783
    if (!first) sb.append(", ");
1784
    sb.append("billingWarehouseId:");
1785
    sb.append(this.billingWarehouseId);
1786
    first = false;
1787
    if (!first) sb.append(", ");
1788
    sb.append("isAvailabilityMonitored:");
1789
    sb.append(this.isAvailabilityMonitored);
1790
    first = false;
1791
    if (!first) sb.append(", ");
1792
    sb.append("transferDelayInHours:");
1793
    sb.append(this.transferDelayInHours);
1794
    first = false;
7330 amit.gupta 1795
    if (!first) sb.append(", ");
1796
    sb.append("stateId:");
1797
    sb.append(this.stateId);
1798
    first = false;
5945 mandeep.dh 1799
    sb.append(")");
1800
    return sb.toString();
1801
  }
1802
 
1803
  public void validate() throws org.apache.thrift.TException {
1804
    // check for required fields
1805
  }
1806
 
1807
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1808
    try {
1809
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1810
    } catch (org.apache.thrift.TException te) {
1811
      throw new java.io.IOException(te);
1812
    }
1813
  }
1814
 
1815
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1816
    try {
1817
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1818
      __isset_bit_vector = new BitSet(1);
1819
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1820
    } catch (org.apache.thrift.TException te) {
1821
      throw new java.io.IOException(te);
1822
    }
1823
  }
1824
 
1825
}
1826