| 20025 |
amit.gupta |
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.order;
|
|
|
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 BuyerInfo implements org.apache.thrift.TBase<BuyerInfo, BuyerInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BuyerInfo");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField BUYER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("buyerId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField ORGANISATION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("organisationName", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField REGISTERED_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("registeredAddress", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField REG_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("regId", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField CIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("cinNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)7);
|
| 20065 |
amit.gupta |
33 |
private static final org.apache.thrift.protocol.TField BUYER_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("buyerAddress", org.apache.thrift.protocol.TType.STRUCT, (short)8);
|
| 20025 |
amit.gupta |
34 |
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)9);
|
| 21844 |
amit.gupta |
35 |
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)10);
|
| 20025 |
amit.gupta |
36 |
|
|
|
37 |
private long buyerId; // required
|
|
|
38 |
private String organisationName; // required
|
|
|
39 |
private String registeredAddress; // required
|
|
|
40 |
private String regId; // required
|
|
|
41 |
private String cinNumber; // required
|
|
|
42 |
private String tin; // required
|
|
|
43 |
private long addressId; // required
|
| 20065 |
amit.gupta |
44 |
private WarehouseAddress buyerAddress; // required
|
| 20025 |
amit.gupta |
45 |
private long stateId; // required
|
| 21844 |
amit.gupta |
46 |
private String gstin; // required
|
| 20025 |
amit.gupta |
47 |
|
|
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
50 |
BUYER_ID((short)1, "buyerId"),
|
|
|
51 |
ORGANISATION_NAME((short)2, "organisationName"),
|
|
|
52 |
REGISTERED_ADDRESS((short)3, "registeredAddress"),
|
|
|
53 |
REG_ID((short)4, "regId"),
|
|
|
54 |
CIN_NUMBER((short)5, "cinNumber"),
|
|
|
55 |
TIN((short)6, "tin"),
|
|
|
56 |
ADDRESS_ID((short)7, "addressId"),
|
| 20065 |
amit.gupta |
57 |
BUYER_ADDRESS((short)8, "buyerAddress"),
|
| 21844 |
amit.gupta |
58 |
STATE_ID((short)9, "stateId"),
|
|
|
59 |
GSTIN((short)10, "gstin");
|
| 20025 |
amit.gupta |
60 |
|
|
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
62 |
|
|
|
63 |
static {
|
|
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
65 |
byName.put(field.getFieldName(), field);
|
|
|
66 |
}
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
71 |
*/
|
|
|
72 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
73 |
switch(fieldId) {
|
|
|
74 |
case 1: // BUYER_ID
|
|
|
75 |
return BUYER_ID;
|
|
|
76 |
case 2: // ORGANISATION_NAME
|
|
|
77 |
return ORGANISATION_NAME;
|
|
|
78 |
case 3: // REGISTERED_ADDRESS
|
|
|
79 |
return REGISTERED_ADDRESS;
|
|
|
80 |
case 4: // REG_ID
|
|
|
81 |
return REG_ID;
|
|
|
82 |
case 5: // CIN_NUMBER
|
|
|
83 |
return CIN_NUMBER;
|
|
|
84 |
case 6: // TIN
|
|
|
85 |
return TIN;
|
|
|
86 |
case 7: // ADDRESS_ID
|
|
|
87 |
return ADDRESS_ID;
|
| 20065 |
amit.gupta |
88 |
case 8: // BUYER_ADDRESS
|
|
|
89 |
return BUYER_ADDRESS;
|
| 20025 |
amit.gupta |
90 |
case 9: // STATE_ID
|
|
|
91 |
return STATE_ID;
|
| 21844 |
amit.gupta |
92 |
case 10: // GSTIN
|
|
|
93 |
return GSTIN;
|
| 20025 |
amit.gupta |
94 |
default:
|
|
|
95 |
return null;
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
101 |
* if it is not found.
|
|
|
102 |
*/
|
|
|
103 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
104 |
_Fields fields = findByThriftId(fieldId);
|
|
|
105 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
106 |
return fields;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
111 |
*/
|
|
|
112 |
public static _Fields findByName(String name) {
|
|
|
113 |
return byName.get(name);
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
private final short _thriftId;
|
|
|
117 |
private final String _fieldName;
|
|
|
118 |
|
|
|
119 |
_Fields(short thriftId, String fieldName) {
|
|
|
120 |
_thriftId = thriftId;
|
|
|
121 |
_fieldName = fieldName;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public short getThriftFieldId() {
|
|
|
125 |
return _thriftId;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public String getFieldName() {
|
|
|
129 |
return _fieldName;
|
|
|
130 |
}
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
// isset id assignments
|
|
|
134 |
private static final int __BUYERID_ISSET_ID = 0;
|
|
|
135 |
private static final int __ADDRESSID_ISSET_ID = 1;
|
| 20043 |
amit.gupta |
136 |
private static final int __STATEID_ISSET_ID = 2;
|
|
|
137 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 20025 |
amit.gupta |
138 |
|
|
|
139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
140 |
static {
|
|
|
141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
142 |
tmpMap.put(_Fields.BUYER_ID, new org.apache.thrift.meta_data.FieldMetaData("buyerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
144 |
tmpMap.put(_Fields.ORGANISATION_NAME, new org.apache.thrift.meta_data.FieldMetaData("organisationName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
146 |
tmpMap.put(_Fields.REGISTERED_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("registeredAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
148 |
tmpMap.put(_Fields.REG_ID, new org.apache.thrift.meta_data.FieldMetaData("regId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
150 |
tmpMap.put(_Fields.CIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("cinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
152 |
tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
154 |
tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 20065 |
amit.gupta |
156 |
tmpMap.put(_Fields.BUYER_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("buyerAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WarehouseAddress.class)));
|
| 20025 |
amit.gupta |
158 |
tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 21844 |
amit.gupta |
160 |
tmpMap.put(_Fields.GSTIN, new org.apache.thrift.meta_data.FieldMetaData("gstin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 20025 |
amit.gupta |
162 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
163 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BuyerInfo.class, metaDataMap);
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public BuyerInfo() {
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
public BuyerInfo(
|
|
|
170 |
long buyerId,
|
|
|
171 |
String organisationName,
|
|
|
172 |
String registeredAddress,
|
|
|
173 |
String regId,
|
|
|
174 |
String cinNumber,
|
|
|
175 |
String tin,
|
|
|
176 |
long addressId,
|
| 20065 |
amit.gupta |
177 |
WarehouseAddress buyerAddress,
|
| 21844 |
amit.gupta |
178 |
long stateId,
|
|
|
179 |
String gstin)
|
| 20025 |
amit.gupta |
180 |
{
|
|
|
181 |
this();
|
|
|
182 |
this.buyerId = buyerId;
|
|
|
183 |
setBuyerIdIsSet(true);
|
|
|
184 |
this.organisationName = organisationName;
|
|
|
185 |
this.registeredAddress = registeredAddress;
|
|
|
186 |
this.regId = regId;
|
|
|
187 |
this.cinNumber = cinNumber;
|
|
|
188 |
this.tin = tin;
|
|
|
189 |
this.addressId = addressId;
|
|
|
190 |
setAddressIdIsSet(true);
|
| 20065 |
amit.gupta |
191 |
this.buyerAddress = buyerAddress;
|
| 20025 |
amit.gupta |
192 |
this.stateId = stateId;
|
|
|
193 |
setStateIdIsSet(true);
|
| 21844 |
amit.gupta |
194 |
this.gstin = gstin;
|
| 20025 |
amit.gupta |
195 |
}
|
|
|
196 |
|
|
|
197 |
/**
|
|
|
198 |
* Performs a deep copy on <i>other</i>.
|
|
|
199 |
*/
|
|
|
200 |
public BuyerInfo(BuyerInfo other) {
|
|
|
201 |
__isset_bit_vector.clear();
|
|
|
202 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
203 |
this.buyerId = other.buyerId;
|
|
|
204 |
if (other.isSetOrganisationName()) {
|
|
|
205 |
this.organisationName = other.organisationName;
|
|
|
206 |
}
|
|
|
207 |
if (other.isSetRegisteredAddress()) {
|
|
|
208 |
this.registeredAddress = other.registeredAddress;
|
|
|
209 |
}
|
|
|
210 |
if (other.isSetRegId()) {
|
|
|
211 |
this.regId = other.regId;
|
|
|
212 |
}
|
|
|
213 |
if (other.isSetCinNumber()) {
|
|
|
214 |
this.cinNumber = other.cinNumber;
|
|
|
215 |
}
|
|
|
216 |
if (other.isSetTin()) {
|
|
|
217 |
this.tin = other.tin;
|
|
|
218 |
}
|
|
|
219 |
this.addressId = other.addressId;
|
| 20065 |
amit.gupta |
220 |
if (other.isSetBuyerAddress()) {
|
|
|
221 |
this.buyerAddress = new WarehouseAddress(other.buyerAddress);
|
| 20043 |
amit.gupta |
222 |
}
|
| 20025 |
amit.gupta |
223 |
this.stateId = other.stateId;
|
| 21844 |
amit.gupta |
224 |
if (other.isSetGstin()) {
|
|
|
225 |
this.gstin = other.gstin;
|
|
|
226 |
}
|
| 20025 |
amit.gupta |
227 |
}
|
|
|
228 |
|
|
|
229 |
public BuyerInfo deepCopy() {
|
|
|
230 |
return new BuyerInfo(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Override
|
|
|
234 |
public void clear() {
|
|
|
235 |
setBuyerIdIsSet(false);
|
|
|
236 |
this.buyerId = 0;
|
|
|
237 |
this.organisationName = null;
|
|
|
238 |
this.registeredAddress = null;
|
|
|
239 |
this.regId = null;
|
|
|
240 |
this.cinNumber = null;
|
|
|
241 |
this.tin = null;
|
|
|
242 |
setAddressIdIsSet(false);
|
|
|
243 |
this.addressId = 0;
|
| 20065 |
amit.gupta |
244 |
this.buyerAddress = null;
|
| 20025 |
amit.gupta |
245 |
setStateIdIsSet(false);
|
|
|
246 |
this.stateId = 0;
|
| 21844 |
amit.gupta |
247 |
this.gstin = null;
|
| 20025 |
amit.gupta |
248 |
}
|
|
|
249 |
|
|
|
250 |
public long getBuyerId() {
|
|
|
251 |
return this.buyerId;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
public void setBuyerId(long buyerId) {
|
|
|
255 |
this.buyerId = buyerId;
|
|
|
256 |
setBuyerIdIsSet(true);
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
public void unsetBuyerId() {
|
|
|
260 |
__isset_bit_vector.clear(__BUYERID_ISSET_ID);
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
/** Returns true if field buyerId is set (has been assigned a value) and false otherwise */
|
|
|
264 |
public boolean isSetBuyerId() {
|
|
|
265 |
return __isset_bit_vector.get(__BUYERID_ISSET_ID);
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
public void setBuyerIdIsSet(boolean value) {
|
|
|
269 |
__isset_bit_vector.set(__BUYERID_ISSET_ID, value);
|
|
|
270 |
}
|
|
|
271 |
|
|
|
272 |
public String getOrganisationName() {
|
|
|
273 |
return this.organisationName;
|
|
|
274 |
}
|
|
|
275 |
|
|
|
276 |
public void setOrganisationName(String organisationName) {
|
|
|
277 |
this.organisationName = organisationName;
|
|
|
278 |
}
|
|
|
279 |
|
|
|
280 |
public void unsetOrganisationName() {
|
|
|
281 |
this.organisationName = null;
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
/** Returns true if field organisationName is set (has been assigned a value) and false otherwise */
|
|
|
285 |
public boolean isSetOrganisationName() {
|
|
|
286 |
return this.organisationName != null;
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
public void setOrganisationNameIsSet(boolean value) {
|
|
|
290 |
if (!value) {
|
|
|
291 |
this.organisationName = null;
|
|
|
292 |
}
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public String getRegisteredAddress() {
|
|
|
296 |
return this.registeredAddress;
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
public void setRegisteredAddress(String registeredAddress) {
|
|
|
300 |
this.registeredAddress = registeredAddress;
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
public void unsetRegisteredAddress() {
|
|
|
304 |
this.registeredAddress = null;
|
|
|
305 |
}
|
|
|
306 |
|
|
|
307 |
/** Returns true if field registeredAddress is set (has been assigned a value) and false otherwise */
|
|
|
308 |
public boolean isSetRegisteredAddress() {
|
|
|
309 |
return this.registeredAddress != null;
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
public void setRegisteredAddressIsSet(boolean value) {
|
|
|
313 |
if (!value) {
|
|
|
314 |
this.registeredAddress = null;
|
|
|
315 |
}
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public String getRegId() {
|
|
|
319 |
return this.regId;
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
public void setRegId(String regId) {
|
|
|
323 |
this.regId = regId;
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void unsetRegId() {
|
|
|
327 |
this.regId = null;
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
/** Returns true if field regId is set (has been assigned a value) and false otherwise */
|
|
|
331 |
public boolean isSetRegId() {
|
|
|
332 |
return this.regId != null;
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public void setRegIdIsSet(boolean value) {
|
|
|
336 |
if (!value) {
|
|
|
337 |
this.regId = null;
|
|
|
338 |
}
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
public String getCinNumber() {
|
|
|
342 |
return this.cinNumber;
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public void setCinNumber(String cinNumber) {
|
|
|
346 |
this.cinNumber = cinNumber;
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void unsetCinNumber() {
|
|
|
350 |
this.cinNumber = null;
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
/** Returns true if field cinNumber is set (has been assigned a value) and false otherwise */
|
|
|
354 |
public boolean isSetCinNumber() {
|
|
|
355 |
return this.cinNumber != null;
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public void setCinNumberIsSet(boolean value) {
|
|
|
359 |
if (!value) {
|
|
|
360 |
this.cinNumber = null;
|
|
|
361 |
}
|
|
|
362 |
}
|
|
|
363 |
|
|
|
364 |
public String getTin() {
|
|
|
365 |
return this.tin;
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public void setTin(String tin) {
|
|
|
369 |
this.tin = tin;
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public void unsetTin() {
|
|
|
373 |
this.tin = null;
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
/** Returns true if field tin is set (has been assigned a value) and false otherwise */
|
|
|
377 |
public boolean isSetTin() {
|
|
|
378 |
return this.tin != null;
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
public void setTinIsSet(boolean value) {
|
|
|
382 |
if (!value) {
|
|
|
383 |
this.tin = null;
|
|
|
384 |
}
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
public long getAddressId() {
|
|
|
388 |
return this.addressId;
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void setAddressId(long addressId) {
|
|
|
392 |
this.addressId = addressId;
|
|
|
393 |
setAddressIdIsSet(true);
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
public void unsetAddressId() {
|
|
|
397 |
__isset_bit_vector.clear(__ADDRESSID_ISSET_ID);
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
/** Returns true if field addressId is set (has been assigned a value) and false otherwise */
|
|
|
401 |
public boolean isSetAddressId() {
|
|
|
402 |
return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public void setAddressIdIsSet(boolean value) {
|
|
|
406 |
__isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
|
|
|
407 |
}
|
|
|
408 |
|
| 20065 |
amit.gupta |
409 |
public WarehouseAddress getBuyerAddress() {
|
|
|
410 |
return this.buyerAddress;
|
| 20025 |
amit.gupta |
411 |
}
|
|
|
412 |
|
| 20065 |
amit.gupta |
413 |
public void setBuyerAddress(WarehouseAddress buyerAddress) {
|
|
|
414 |
this.buyerAddress = buyerAddress;
|
| 20025 |
amit.gupta |
415 |
}
|
|
|
416 |
|
| 20065 |
amit.gupta |
417 |
public void unsetBuyerAddress() {
|
|
|
418 |
this.buyerAddress = null;
|
| 20025 |
amit.gupta |
419 |
}
|
|
|
420 |
|
| 20065 |
amit.gupta |
421 |
/** Returns true if field buyerAddress is set (has been assigned a value) and false otherwise */
|
|
|
422 |
public boolean isSetBuyerAddress() {
|
|
|
423 |
return this.buyerAddress != null;
|
| 20025 |
amit.gupta |
424 |
}
|
|
|
425 |
|
| 20065 |
amit.gupta |
426 |
public void setBuyerAddressIsSet(boolean value) {
|
| 20043 |
amit.gupta |
427 |
if (!value) {
|
| 20065 |
amit.gupta |
428 |
this.buyerAddress = null;
|
| 20043 |
amit.gupta |
429 |
}
|
| 20025 |
amit.gupta |
430 |
}
|
|
|
431 |
|
|
|
432 |
public long getStateId() {
|
|
|
433 |
return this.stateId;
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void setStateId(long stateId) {
|
|
|
437 |
this.stateId = stateId;
|
|
|
438 |
setStateIdIsSet(true);
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
public void unsetStateId() {
|
|
|
442 |
__isset_bit_vector.clear(__STATEID_ISSET_ID);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
/** Returns true if field stateId is set (has been assigned a value) and false otherwise */
|
|
|
446 |
public boolean isSetStateId() {
|
|
|
447 |
return __isset_bit_vector.get(__STATEID_ISSET_ID);
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void setStateIdIsSet(boolean value) {
|
|
|
451 |
__isset_bit_vector.set(__STATEID_ISSET_ID, value);
|
|
|
452 |
}
|
|
|
453 |
|
| 21844 |
amit.gupta |
454 |
public String getGstin() {
|
|
|
455 |
return this.gstin;
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public void setGstin(String gstin) {
|
|
|
459 |
this.gstin = gstin;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public void unsetGstin() {
|
|
|
463 |
this.gstin = null;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
/** Returns true if field gstin is set (has been assigned a value) and false otherwise */
|
|
|
467 |
public boolean isSetGstin() {
|
|
|
468 |
return this.gstin != null;
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
public void setGstinIsSet(boolean value) {
|
|
|
472 |
if (!value) {
|
|
|
473 |
this.gstin = null;
|
|
|
474 |
}
|
|
|
475 |
}
|
|
|
476 |
|
| 20025 |
amit.gupta |
477 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
478 |
switch (field) {
|
|
|
479 |
case BUYER_ID:
|
|
|
480 |
if (value == null) {
|
|
|
481 |
unsetBuyerId();
|
|
|
482 |
} else {
|
|
|
483 |
setBuyerId((Long)value);
|
|
|
484 |
}
|
|
|
485 |
break;
|
|
|
486 |
|
|
|
487 |
case ORGANISATION_NAME:
|
|
|
488 |
if (value == null) {
|
|
|
489 |
unsetOrganisationName();
|
|
|
490 |
} else {
|
|
|
491 |
setOrganisationName((String)value);
|
|
|
492 |
}
|
|
|
493 |
break;
|
|
|
494 |
|
|
|
495 |
case REGISTERED_ADDRESS:
|
|
|
496 |
if (value == null) {
|
|
|
497 |
unsetRegisteredAddress();
|
|
|
498 |
} else {
|
|
|
499 |
setRegisteredAddress((String)value);
|
|
|
500 |
}
|
|
|
501 |
break;
|
|
|
502 |
|
|
|
503 |
case REG_ID:
|
|
|
504 |
if (value == null) {
|
|
|
505 |
unsetRegId();
|
|
|
506 |
} else {
|
|
|
507 |
setRegId((String)value);
|
|
|
508 |
}
|
|
|
509 |
break;
|
|
|
510 |
|
|
|
511 |
case CIN_NUMBER:
|
|
|
512 |
if (value == null) {
|
|
|
513 |
unsetCinNumber();
|
|
|
514 |
} else {
|
|
|
515 |
setCinNumber((String)value);
|
|
|
516 |
}
|
|
|
517 |
break;
|
|
|
518 |
|
|
|
519 |
case TIN:
|
|
|
520 |
if (value == null) {
|
|
|
521 |
unsetTin();
|
|
|
522 |
} else {
|
|
|
523 |
setTin((String)value);
|
|
|
524 |
}
|
|
|
525 |
break;
|
|
|
526 |
|
|
|
527 |
case ADDRESS_ID:
|
|
|
528 |
if (value == null) {
|
|
|
529 |
unsetAddressId();
|
|
|
530 |
} else {
|
|
|
531 |
setAddressId((Long)value);
|
|
|
532 |
}
|
|
|
533 |
break;
|
|
|
534 |
|
| 20065 |
amit.gupta |
535 |
case BUYER_ADDRESS:
|
| 20025 |
amit.gupta |
536 |
if (value == null) {
|
| 20065 |
amit.gupta |
537 |
unsetBuyerAddress();
|
| 20025 |
amit.gupta |
538 |
} else {
|
| 20065 |
amit.gupta |
539 |
setBuyerAddress((WarehouseAddress)value);
|
| 20025 |
amit.gupta |
540 |
}
|
|
|
541 |
break;
|
|
|
542 |
|
|
|
543 |
case STATE_ID:
|
|
|
544 |
if (value == null) {
|
|
|
545 |
unsetStateId();
|
|
|
546 |
} else {
|
|
|
547 |
setStateId((Long)value);
|
|
|
548 |
}
|
|
|
549 |
break;
|
|
|
550 |
|
| 21844 |
amit.gupta |
551 |
case GSTIN:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetGstin();
|
|
|
554 |
} else {
|
|
|
555 |
setGstin((String)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
| 20025 |
amit.gupta |
559 |
}
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public Object getFieldValue(_Fields field) {
|
|
|
563 |
switch (field) {
|
|
|
564 |
case BUYER_ID:
|
|
|
565 |
return Long.valueOf(getBuyerId());
|
|
|
566 |
|
|
|
567 |
case ORGANISATION_NAME:
|
|
|
568 |
return getOrganisationName();
|
|
|
569 |
|
|
|
570 |
case REGISTERED_ADDRESS:
|
|
|
571 |
return getRegisteredAddress();
|
|
|
572 |
|
|
|
573 |
case REG_ID:
|
|
|
574 |
return getRegId();
|
|
|
575 |
|
|
|
576 |
case CIN_NUMBER:
|
|
|
577 |
return getCinNumber();
|
|
|
578 |
|
|
|
579 |
case TIN:
|
|
|
580 |
return getTin();
|
|
|
581 |
|
|
|
582 |
case ADDRESS_ID:
|
|
|
583 |
return Long.valueOf(getAddressId());
|
|
|
584 |
|
| 20065 |
amit.gupta |
585 |
case BUYER_ADDRESS:
|
|
|
586 |
return getBuyerAddress();
|
| 20025 |
amit.gupta |
587 |
|
|
|
588 |
case STATE_ID:
|
|
|
589 |
return Long.valueOf(getStateId());
|
|
|
590 |
|
| 21844 |
amit.gupta |
591 |
case GSTIN:
|
|
|
592 |
return getGstin();
|
|
|
593 |
|
| 20025 |
amit.gupta |
594 |
}
|
|
|
595 |
throw new IllegalStateException();
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
599 |
public boolean isSet(_Fields field) {
|
|
|
600 |
if (field == null) {
|
|
|
601 |
throw new IllegalArgumentException();
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
switch (field) {
|
|
|
605 |
case BUYER_ID:
|
|
|
606 |
return isSetBuyerId();
|
|
|
607 |
case ORGANISATION_NAME:
|
|
|
608 |
return isSetOrganisationName();
|
|
|
609 |
case REGISTERED_ADDRESS:
|
|
|
610 |
return isSetRegisteredAddress();
|
|
|
611 |
case REG_ID:
|
|
|
612 |
return isSetRegId();
|
|
|
613 |
case CIN_NUMBER:
|
|
|
614 |
return isSetCinNumber();
|
|
|
615 |
case TIN:
|
|
|
616 |
return isSetTin();
|
|
|
617 |
case ADDRESS_ID:
|
|
|
618 |
return isSetAddressId();
|
| 20065 |
amit.gupta |
619 |
case BUYER_ADDRESS:
|
|
|
620 |
return isSetBuyerAddress();
|
| 20025 |
amit.gupta |
621 |
case STATE_ID:
|
|
|
622 |
return isSetStateId();
|
| 21844 |
amit.gupta |
623 |
case GSTIN:
|
|
|
624 |
return isSetGstin();
|
| 20025 |
amit.gupta |
625 |
}
|
|
|
626 |
throw new IllegalStateException();
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
@Override
|
|
|
630 |
public boolean equals(Object that) {
|
|
|
631 |
if (that == null)
|
|
|
632 |
return false;
|
|
|
633 |
if (that instanceof BuyerInfo)
|
|
|
634 |
return this.equals((BuyerInfo)that);
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public boolean equals(BuyerInfo that) {
|
|
|
639 |
if (that == null)
|
|
|
640 |
return false;
|
|
|
641 |
|
|
|
642 |
boolean this_present_buyerId = true;
|
|
|
643 |
boolean that_present_buyerId = true;
|
|
|
644 |
if (this_present_buyerId || that_present_buyerId) {
|
|
|
645 |
if (!(this_present_buyerId && that_present_buyerId))
|
|
|
646 |
return false;
|
|
|
647 |
if (this.buyerId != that.buyerId)
|
|
|
648 |
return false;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
boolean this_present_organisationName = true && this.isSetOrganisationName();
|
|
|
652 |
boolean that_present_organisationName = true && that.isSetOrganisationName();
|
|
|
653 |
if (this_present_organisationName || that_present_organisationName) {
|
|
|
654 |
if (!(this_present_organisationName && that_present_organisationName))
|
|
|
655 |
return false;
|
|
|
656 |
if (!this.organisationName.equals(that.organisationName))
|
|
|
657 |
return false;
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
boolean this_present_registeredAddress = true && this.isSetRegisteredAddress();
|
|
|
661 |
boolean that_present_registeredAddress = true && that.isSetRegisteredAddress();
|
|
|
662 |
if (this_present_registeredAddress || that_present_registeredAddress) {
|
|
|
663 |
if (!(this_present_registeredAddress && that_present_registeredAddress))
|
|
|
664 |
return false;
|
|
|
665 |
if (!this.registeredAddress.equals(that.registeredAddress))
|
|
|
666 |
return false;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
boolean this_present_regId = true && this.isSetRegId();
|
|
|
670 |
boolean that_present_regId = true && that.isSetRegId();
|
|
|
671 |
if (this_present_regId || that_present_regId) {
|
|
|
672 |
if (!(this_present_regId && that_present_regId))
|
|
|
673 |
return false;
|
|
|
674 |
if (!this.regId.equals(that.regId))
|
|
|
675 |
return false;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
boolean this_present_cinNumber = true && this.isSetCinNumber();
|
|
|
679 |
boolean that_present_cinNumber = true && that.isSetCinNumber();
|
|
|
680 |
if (this_present_cinNumber || that_present_cinNumber) {
|
|
|
681 |
if (!(this_present_cinNumber && that_present_cinNumber))
|
|
|
682 |
return false;
|
|
|
683 |
if (!this.cinNumber.equals(that.cinNumber))
|
|
|
684 |
return false;
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
boolean this_present_tin = true && this.isSetTin();
|
|
|
688 |
boolean that_present_tin = true && that.isSetTin();
|
|
|
689 |
if (this_present_tin || that_present_tin) {
|
|
|
690 |
if (!(this_present_tin && that_present_tin))
|
|
|
691 |
return false;
|
|
|
692 |
if (!this.tin.equals(that.tin))
|
|
|
693 |
return false;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
boolean this_present_addressId = true;
|
|
|
697 |
boolean that_present_addressId = true;
|
|
|
698 |
if (this_present_addressId || that_present_addressId) {
|
|
|
699 |
if (!(this_present_addressId && that_present_addressId))
|
|
|
700 |
return false;
|
|
|
701 |
if (this.addressId != that.addressId)
|
|
|
702 |
return false;
|
|
|
703 |
}
|
|
|
704 |
|
| 20065 |
amit.gupta |
705 |
boolean this_present_buyerAddress = true && this.isSetBuyerAddress();
|
|
|
706 |
boolean that_present_buyerAddress = true && that.isSetBuyerAddress();
|
|
|
707 |
if (this_present_buyerAddress || that_present_buyerAddress) {
|
|
|
708 |
if (!(this_present_buyerAddress && that_present_buyerAddress))
|
| 20025 |
amit.gupta |
709 |
return false;
|
| 20065 |
amit.gupta |
710 |
if (!this.buyerAddress.equals(that.buyerAddress))
|
| 20025 |
amit.gupta |
711 |
return false;
|
|
|
712 |
}
|
|
|
713 |
|
|
|
714 |
boolean this_present_stateId = true;
|
|
|
715 |
boolean that_present_stateId = true;
|
|
|
716 |
if (this_present_stateId || that_present_stateId) {
|
|
|
717 |
if (!(this_present_stateId && that_present_stateId))
|
|
|
718 |
return false;
|
|
|
719 |
if (this.stateId != that.stateId)
|
|
|
720 |
return false;
|
|
|
721 |
}
|
|
|
722 |
|
| 21844 |
amit.gupta |
723 |
boolean this_present_gstin = true && this.isSetGstin();
|
|
|
724 |
boolean that_present_gstin = true && that.isSetGstin();
|
|
|
725 |
if (this_present_gstin || that_present_gstin) {
|
|
|
726 |
if (!(this_present_gstin && that_present_gstin))
|
|
|
727 |
return false;
|
|
|
728 |
if (!this.gstin.equals(that.gstin))
|
|
|
729 |
return false;
|
|
|
730 |
}
|
|
|
731 |
|
| 20025 |
amit.gupta |
732 |
return true;
|
|
|
733 |
}
|
|
|
734 |
|
|
|
735 |
@Override
|
|
|
736 |
public int hashCode() {
|
|
|
737 |
return 0;
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
public int compareTo(BuyerInfo other) {
|
|
|
741 |
if (!getClass().equals(other.getClass())) {
|
|
|
742 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
int lastComparison = 0;
|
|
|
746 |
BuyerInfo typedOther = (BuyerInfo)other;
|
|
|
747 |
|
|
|
748 |
lastComparison = Boolean.valueOf(isSetBuyerId()).compareTo(typedOther.isSetBuyerId());
|
|
|
749 |
if (lastComparison != 0) {
|
|
|
750 |
return lastComparison;
|
|
|
751 |
}
|
|
|
752 |
if (isSetBuyerId()) {
|
|
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.buyerId, typedOther.buyerId);
|
|
|
754 |
if (lastComparison != 0) {
|
|
|
755 |
return lastComparison;
|
|
|
756 |
}
|
|
|
757 |
}
|
|
|
758 |
lastComparison = Boolean.valueOf(isSetOrganisationName()).compareTo(typedOther.isSetOrganisationName());
|
|
|
759 |
if (lastComparison != 0) {
|
|
|
760 |
return lastComparison;
|
|
|
761 |
}
|
|
|
762 |
if (isSetOrganisationName()) {
|
|
|
763 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.organisationName, typedOther.organisationName);
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
lastComparison = Boolean.valueOf(isSetRegisteredAddress()).compareTo(typedOther.isSetRegisteredAddress());
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
if (isSetRegisteredAddress()) {
|
|
|
773 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registeredAddress, typedOther.registeredAddress);
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
}
|
|
|
778 |
lastComparison = Boolean.valueOf(isSetRegId()).compareTo(typedOther.isSetRegId());
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
if (isSetRegId()) {
|
|
|
783 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regId, typedOther.regId);
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
lastComparison = Boolean.valueOf(isSetCinNumber()).compareTo(typedOther.isSetCinNumber());
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
if (isSetCinNumber()) {
|
|
|
793 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cinNumber, typedOther.cinNumber);
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
}
|
|
|
798 |
lastComparison = Boolean.valueOf(isSetTin()).compareTo(typedOther.isSetTin());
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
if (isSetTin()) {
|
|
|
803 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tin, typedOther.tin);
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
}
|
|
|
808 |
lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
if (isSetAddressId()) {
|
|
|
813 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
}
|
| 20065 |
amit.gupta |
818 |
lastComparison = Boolean.valueOf(isSetBuyerAddress()).compareTo(typedOther.isSetBuyerAddress());
|
| 20025 |
amit.gupta |
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
| 20065 |
amit.gupta |
822 |
if (isSetBuyerAddress()) {
|
|
|
823 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.buyerAddress, typedOther.buyerAddress);
|
| 20025 |
amit.gupta |
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
}
|
|
|
828 |
lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
if (isSetStateId()) {
|
|
|
833 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
}
|
| 21844 |
amit.gupta |
838 |
lastComparison = Boolean.valueOf(isSetGstin()).compareTo(typedOther.isSetGstin());
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
if (isSetGstin()) {
|
|
|
843 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstin, typedOther.gstin);
|
|
|
844 |
if (lastComparison != 0) {
|
|
|
845 |
return lastComparison;
|
|
|
846 |
}
|
|
|
847 |
}
|
| 20025 |
amit.gupta |
848 |
return 0;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
public _Fields fieldForId(int fieldId) {
|
|
|
852 |
return _Fields.findByThriftId(fieldId);
|
|
|
853 |
}
|
|
|
854 |
|
|
|
855 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
856 |
org.apache.thrift.protocol.TField field;
|
|
|
857 |
iprot.readStructBegin();
|
|
|
858 |
while (true)
|
|
|
859 |
{
|
|
|
860 |
field = iprot.readFieldBegin();
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
862 |
break;
|
|
|
863 |
}
|
|
|
864 |
switch (field.id) {
|
|
|
865 |
case 1: // BUYER_ID
|
|
|
866 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
867 |
this.buyerId = iprot.readI64();
|
|
|
868 |
setBuyerIdIsSet(true);
|
|
|
869 |
} else {
|
|
|
870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
871 |
}
|
|
|
872 |
break;
|
|
|
873 |
case 2: // ORGANISATION_NAME
|
|
|
874 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
875 |
this.organisationName = iprot.readString();
|
|
|
876 |
} else {
|
|
|
877 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
878 |
}
|
|
|
879 |
break;
|
|
|
880 |
case 3: // REGISTERED_ADDRESS
|
|
|
881 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
882 |
this.registeredAddress = iprot.readString();
|
|
|
883 |
} else {
|
|
|
884 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
885 |
}
|
|
|
886 |
break;
|
|
|
887 |
case 4: // REG_ID
|
|
|
888 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
889 |
this.regId = iprot.readString();
|
|
|
890 |
} else {
|
|
|
891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
892 |
}
|
|
|
893 |
break;
|
|
|
894 |
case 5: // CIN_NUMBER
|
|
|
895 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
896 |
this.cinNumber = iprot.readString();
|
|
|
897 |
} else {
|
|
|
898 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
899 |
}
|
|
|
900 |
break;
|
|
|
901 |
case 6: // TIN
|
|
|
902 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
903 |
this.tin = iprot.readString();
|
|
|
904 |
} else {
|
|
|
905 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
906 |
}
|
|
|
907 |
break;
|
|
|
908 |
case 7: // ADDRESS_ID
|
|
|
909 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
910 |
this.addressId = iprot.readI64();
|
|
|
911 |
setAddressIdIsSet(true);
|
|
|
912 |
} else {
|
|
|
913 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
914 |
}
|
|
|
915 |
break;
|
| 20065 |
amit.gupta |
916 |
case 8: // BUYER_ADDRESS
|
|
|
917 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
918 |
this.buyerAddress = new WarehouseAddress();
|
|
|
919 |
this.buyerAddress.read(iprot);
|
| 20025 |
amit.gupta |
920 |
} else {
|
|
|
921 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
922 |
}
|
|
|
923 |
break;
|
|
|
924 |
case 9: // STATE_ID
|
|
|
925 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
926 |
this.stateId = iprot.readI64();
|
|
|
927 |
setStateIdIsSet(true);
|
|
|
928 |
} else {
|
|
|
929 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
930 |
}
|
|
|
931 |
break;
|
| 21844 |
amit.gupta |
932 |
case 10: // GSTIN
|
|
|
933 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
934 |
this.gstin = iprot.readString();
|
|
|
935 |
} else {
|
|
|
936 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
937 |
}
|
|
|
938 |
break;
|
| 20025 |
amit.gupta |
939 |
default:
|
|
|
940 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
941 |
}
|
|
|
942 |
iprot.readFieldEnd();
|
|
|
943 |
}
|
|
|
944 |
iprot.readStructEnd();
|
|
|
945 |
validate();
|
|
|
946 |
}
|
|
|
947 |
|
|
|
948 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
949 |
validate();
|
|
|
950 |
|
|
|
951 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
952 |
oprot.writeFieldBegin(BUYER_ID_FIELD_DESC);
|
|
|
953 |
oprot.writeI64(this.buyerId);
|
|
|
954 |
oprot.writeFieldEnd();
|
|
|
955 |
if (this.organisationName != null) {
|
|
|
956 |
oprot.writeFieldBegin(ORGANISATION_NAME_FIELD_DESC);
|
|
|
957 |
oprot.writeString(this.organisationName);
|
|
|
958 |
oprot.writeFieldEnd();
|
|
|
959 |
}
|
|
|
960 |
if (this.registeredAddress != null) {
|
|
|
961 |
oprot.writeFieldBegin(REGISTERED_ADDRESS_FIELD_DESC);
|
|
|
962 |
oprot.writeString(this.registeredAddress);
|
|
|
963 |
oprot.writeFieldEnd();
|
|
|
964 |
}
|
|
|
965 |
if (this.regId != null) {
|
|
|
966 |
oprot.writeFieldBegin(REG_ID_FIELD_DESC);
|
|
|
967 |
oprot.writeString(this.regId);
|
|
|
968 |
oprot.writeFieldEnd();
|
|
|
969 |
}
|
|
|
970 |
if (this.cinNumber != null) {
|
|
|
971 |
oprot.writeFieldBegin(CIN_NUMBER_FIELD_DESC);
|
|
|
972 |
oprot.writeString(this.cinNumber);
|
|
|
973 |
oprot.writeFieldEnd();
|
|
|
974 |
}
|
|
|
975 |
if (this.tin != null) {
|
|
|
976 |
oprot.writeFieldBegin(TIN_FIELD_DESC);
|
|
|
977 |
oprot.writeString(this.tin);
|
|
|
978 |
oprot.writeFieldEnd();
|
|
|
979 |
}
|
|
|
980 |
oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
|
|
|
981 |
oprot.writeI64(this.addressId);
|
|
|
982 |
oprot.writeFieldEnd();
|
| 20065 |
amit.gupta |
983 |
if (this.buyerAddress != null) {
|
|
|
984 |
oprot.writeFieldBegin(BUYER_ADDRESS_FIELD_DESC);
|
|
|
985 |
this.buyerAddress.write(oprot);
|
| 20043 |
amit.gupta |
986 |
oprot.writeFieldEnd();
|
|
|
987 |
}
|
| 20025 |
amit.gupta |
988 |
oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
|
|
|
989 |
oprot.writeI64(this.stateId);
|
|
|
990 |
oprot.writeFieldEnd();
|
| 21844 |
amit.gupta |
991 |
if (this.gstin != null) {
|
|
|
992 |
oprot.writeFieldBegin(GSTIN_FIELD_DESC);
|
|
|
993 |
oprot.writeString(this.gstin);
|
|
|
994 |
oprot.writeFieldEnd();
|
|
|
995 |
}
|
| 20025 |
amit.gupta |
996 |
oprot.writeFieldStop();
|
|
|
997 |
oprot.writeStructEnd();
|
|
|
998 |
}
|
|
|
999 |
|
|
|
1000 |
@Override
|
|
|
1001 |
public String toString() {
|
|
|
1002 |
StringBuilder sb = new StringBuilder("BuyerInfo(");
|
|
|
1003 |
boolean first = true;
|
|
|
1004 |
|
|
|
1005 |
sb.append("buyerId:");
|
|
|
1006 |
sb.append(this.buyerId);
|
|
|
1007 |
first = false;
|
|
|
1008 |
if (!first) sb.append(", ");
|
|
|
1009 |
sb.append("organisationName:");
|
|
|
1010 |
if (this.organisationName == null) {
|
|
|
1011 |
sb.append("null");
|
|
|
1012 |
} else {
|
|
|
1013 |
sb.append(this.organisationName);
|
|
|
1014 |
}
|
|
|
1015 |
first = false;
|
|
|
1016 |
if (!first) sb.append(", ");
|
|
|
1017 |
sb.append("registeredAddress:");
|
|
|
1018 |
if (this.registeredAddress == null) {
|
|
|
1019 |
sb.append("null");
|
|
|
1020 |
} else {
|
|
|
1021 |
sb.append(this.registeredAddress);
|
|
|
1022 |
}
|
|
|
1023 |
first = false;
|
|
|
1024 |
if (!first) sb.append(", ");
|
|
|
1025 |
sb.append("regId:");
|
|
|
1026 |
if (this.regId == null) {
|
|
|
1027 |
sb.append("null");
|
|
|
1028 |
} else {
|
|
|
1029 |
sb.append(this.regId);
|
|
|
1030 |
}
|
|
|
1031 |
first = false;
|
|
|
1032 |
if (!first) sb.append(", ");
|
|
|
1033 |
sb.append("cinNumber:");
|
|
|
1034 |
if (this.cinNumber == null) {
|
|
|
1035 |
sb.append("null");
|
|
|
1036 |
} else {
|
|
|
1037 |
sb.append(this.cinNumber);
|
|
|
1038 |
}
|
|
|
1039 |
first = false;
|
|
|
1040 |
if (!first) sb.append(", ");
|
|
|
1041 |
sb.append("tin:");
|
|
|
1042 |
if (this.tin == null) {
|
|
|
1043 |
sb.append("null");
|
|
|
1044 |
} else {
|
|
|
1045 |
sb.append(this.tin);
|
|
|
1046 |
}
|
|
|
1047 |
first = false;
|
|
|
1048 |
if (!first) sb.append(", ");
|
|
|
1049 |
sb.append("addressId:");
|
|
|
1050 |
sb.append(this.addressId);
|
|
|
1051 |
first = false;
|
|
|
1052 |
if (!first) sb.append(", ");
|
| 20065 |
amit.gupta |
1053 |
sb.append("buyerAddress:");
|
|
|
1054 |
if (this.buyerAddress == null) {
|
| 20043 |
amit.gupta |
1055 |
sb.append("null");
|
|
|
1056 |
} else {
|
| 20065 |
amit.gupta |
1057 |
sb.append(this.buyerAddress);
|
| 20043 |
amit.gupta |
1058 |
}
|
| 20025 |
amit.gupta |
1059 |
first = false;
|
|
|
1060 |
if (!first) sb.append(", ");
|
|
|
1061 |
sb.append("stateId:");
|
|
|
1062 |
sb.append(this.stateId);
|
|
|
1063 |
first = false;
|
| 21844 |
amit.gupta |
1064 |
if (!first) sb.append(", ");
|
|
|
1065 |
sb.append("gstin:");
|
|
|
1066 |
if (this.gstin == null) {
|
|
|
1067 |
sb.append("null");
|
|
|
1068 |
} else {
|
|
|
1069 |
sb.append(this.gstin);
|
|
|
1070 |
}
|
|
|
1071 |
first = false;
|
| 20025 |
amit.gupta |
1072 |
sb.append(")");
|
|
|
1073 |
return sb.toString();
|
|
|
1074 |
}
|
|
|
1075 |
|
|
|
1076 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1077 |
// check for required fields
|
|
|
1078 |
}
|
|
|
1079 |
|
|
|
1080 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1081 |
try {
|
|
|
1082 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1083 |
} catch (org.apache.thrift.TException te) {
|
|
|
1084 |
throw new java.io.IOException(te);
|
|
|
1085 |
}
|
|
|
1086 |
}
|
|
|
1087 |
|
|
|
1088 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1089 |
try {
|
|
|
1090 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1091 |
__isset_bit_vector = new BitSet(1);
|
|
|
1092 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1093 |
} catch (org.apache.thrift.TException te) {
|
|
|
1094 |
throw new java.io.IOException(te);
|
|
|
1095 |
}
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
}
|
|
|
1099 |
|