Subversion Repositories SmartDukaan

Rev

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