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